Search found 185 matches
- Tue Aug 23, 2022 4:26 am
- Forum: General discussion
- Topic: Single pin Hardware serial
- Replies: 11
- Views: 7031
Re: Single pin Hardware serial
It seems like I'm not able to set the register bit with the USART2->CR2 |= 1 << 15; command
the CR2 register looks empty before and after writing the value.
...
Perhaps the USART peripheral clock is not enabled yet where you were trying to do that.
Try setting the CR2 flag after the Serial2 ...
- Fri Aug 19, 2022 6:05 am
- Forum: Projects
- Topic: building STM32 with CMake
- Replies: 24
- Views: 78809
Re: building STM32 with CMake
Just be careful about the paths, the path separator in Windows is "\", not "/", so it has to be escaped ("C:\\Users\\...").
I'm the opposite to ag123. I use Windows all the time, and Linux only under protest.
I often have trouble with things that are maybe more at home under Linux, but which ...
- Fri Aug 19, 2022 5:31 am
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: Blue pill with external EEPROM
- Replies: 20
- Views: 28334
Re: Blue pill with external EEPROM
That is probably a clue that you should try to recreate the problem with something much smaller. Just try to write something to the EEPROM and read it back maybe.
- Tue Aug 16, 2022 9:00 pm
- Forum: General discussion
- Topic: Newbie question
- Replies: 7
- Views: 3428
Re: Newbie question
Greetings,
I also suggest that you try the official ST core. I lifted up the code in your first post, and for me it compiles with no complaint using the official core. Code size and ram usage is more than you reported, but should not be an issue on a typical blue pill board. Exact numbers will no ...
I also suggest that you try the official ST core. I lifted up the code in your first post, and for me it compiles with no complaint using the official core. Code size and ram usage is more than you reported, but should not be an issue on a typical blue pill board. Exact numbers will no ...
- Fri Aug 12, 2022 7:41 pm
- Forum: General discussion
- Topic: Power management on stm32 blue pill
- Replies: 7
- Views: 7970
Re: Power management on stm32 blue pill
@ag123
Blue pill (as most other boards) has 3.3V LDO, so supplying it with 5V from boost converter isn't a problem.
But supplying 3.3V LDO with Li-ion/Li-po battery isn't a good idea. LDOs have a voltage drop of 0.4-1V and Li-ion batteries work in 3-4.2V range, so you won't get stable 3.3V.
I ...
- Thu Jul 14, 2022 8:34 pm
- Forum: General discussion
- Topic: calculation time fixcomma for si5351
- Replies: 11
- Views: 7200
Re: calculation time fixcomma for si5351
I was thinking about this some more, wondering what calculations that library could be doing that cause you concern. From what I can see, it does various integer calculations, some of which involve uint64_t variables (nothing that looks too heavy to me).
I was wondering what benchmarks might have ...
I was wondering what benchmarks might have ...
- Tue Jul 12, 2022 11:22 am
- Forum: General discussion
- Topic: calculation time fixcomma for si5351
- Replies: 11
- Views: 7200
Re: calculation time fixcomma for si5351
So results are:Independent of 100k or 400k fpr I2C the execution time stais at 4,4 ms, per transfer of the new data to si5351
...
I still think you are “barking up the wrong tree” here.
Do you have some way to check that the I2C clock frequency actually changed according to what you tried to ...
- Sun Jul 03, 2022 1:23 am
- Forum: General discussion
- Topic: calculation time fixcomma for si5351
- Replies: 11
- Views: 7200
Re: calculation time fixcomma for si5351
ad 2: void setup()
{ Wire.begin();
Wire.setClock(400000);
...
How does the timing you measure change if you use a different I2C clock? Say:
Wire.setClock(100000);
The answer to that could let you work out how much of the time is just down loading the required values into the SI5351.
If ...
- Tue May 31, 2022 4:05 am
- Forum: General discussion
- Topic: Linux serial_posix vs. Windows serial_w32
- Replies: 37
- Views: 16820
Re: Linux serial_posix vs. Windows serial_w32
Both getEpochTime() and inReference are uint32_t, so what is that statement trying to achieve?
Maybe forget using abs???
Code: Select all
return (getEpochTime() > inReference ) ? getEpochTime() - inReference : inReference - getEpochTime();
- Wed May 18, 2022 11:42 am
- Forum: General discussion
- Topic: Unwanted ISR call from timer ??
- Replies: 7
- Views: 5026
Re: Unwanted ISR call from timer ??
Thanks for your response.
Note: an alternative solution would be to call setPreloadEnable(false); in order to disable the preload feature (the buffer)
I tried inserting that just before the call to setOverflow() and I can see that it turns off ARPE in CR1, so that the change to ARR takes ...
Note: an alternative solution would be to call setPreloadEnable(false); in order to disable the preload feature (the buffer)
I tried inserting that just before the call to setOverflow() and I can see that it turns off ARPE in CR1, so that the change to ARR takes ...