stm32duino FreeRTOS and adafruit stm32 feather
Posted: Mon Dec 12, 2022 11:43 pm
Well, things were pretty interesting. Generally speaking STM32DUINO FreeRTOS works on this board, but not when USB is connected.
After flashing any STM32DUINO FreeRTOS example to the board, it seems it got stuck in the "main task" and not switching to any of the tasks created. However, in an accident I found that if my USB was not plugged in properly it works.
Here is what I observed:
1. flash the blink example of STM32DUINO FreeRTOS to it.
2. If the USB is connected to a Windows PC, the LED will NOT blink. (I did not run any app on the PC to open the port)
3. If the USB is connected to a power adapter, not a PC, the LED will blink.
4. With a power wire only USB cable, connecting to PC, the LED blinks as well.
5. I did try to use a STLink to trace the code, it seems it is running the "main task" forever, just not switching to the other tasks.
I am wondering if the USB connection made the timer tick wrong or something else?
Any suggestions?
After flashing any STM32DUINO FreeRTOS example to the board, it seems it got stuck in the "main task" and not switching to any of the tasks created. However, in an accident I found that if my USB was not plugged in properly it works.
Here is what I observed:
1. flash the blink example of STM32DUINO FreeRTOS to it.
2. If the USB is connected to a Windows PC, the LED will NOT blink. (I did not run any app on the PC to open the port)
3. If the USB is connected to a power adapter, not a PC, the LED will blink.
4. With a power wire only USB cable, connecting to PC, the LED blinks as well.
5. I did try to use a STLink to trace the code, it seems it is running the "main task" forever, just not switching to the other tasks.
I am wondering if the USB connection made the timer tick wrong or something else?
Any suggestions?