Problems with examples and timings #1346
Replies: 3 comments 2 replies
-
|
I did recently refactor the STM32F1 RCC system, maybe I messed something up. |
Beta Was this translation helpful? Give feedback.
-
|
Hello :) Thank you for the quick reply. I did try the USB code with 2025q4 and q3, but I might have had other problems happening then, that were unrelated. I'll try it out ASAP. |
Beta Was this translation helpful? Give feedback.
-
|
Good morning, I can confirm the bug was introduced in develop, 2025q4 timings are working as expected, in develop it's like it's 10x slower, 100ms = 1s so defintely something to do with the clocking! I do have the same problem with an stm32f3 (stm32f302cbt6), custom board (it's called AIOC, https://github.com/skuep/AIOC) which I'm thinking of porting to modm, using develop the timings are slowed 10x, and I'm unable to build the same project in 2025q4, I get loads of RCC related errors in board.hpp I created for this board I defined, probably due to the old RCC setup, I need to change the board.hpp in order to test it with 2025q4, but, I do get the same sympton than the stm32f1 in develop. Kind regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm starting with modm, so I started with the examples, I have a bluepill laying around, so I built the blink example, and all seemed working fine.
Right after, I tried the generic/usb example, the CDC one, built, flashed but USB was never recognized. To discard hardware issues I flashed some tinyusb examples I had around, and with latest (0.20) sure enough, it all works well.
I proceeded to try and figure out what's wrong, and setup a blinking led to debug, and noticed it wasn't blinking with the correct time (every 1 second toggle), if was taking loads of time, something like 10 seconds for each toggle, sure enough, switched to 100ms and it was blinking at 1 second (1 sec toggle), a really quick gdb showed the clock was indeed configured at 72MHz, so I assume it must be systick, which I guess it's probably at 4Hz ?
Anyway, all I did was git clone latest (develop), cd into modm/examples/blue_pill_f103/blink ; lbuild build ; scons build ; scons program and this behaviour remains.
Am I doing something wrong (or is this expected ?) or is this a bug and should open an issue ?
Kind regards,
Beta Was this translation helpful? Give feedback.
All reactions