I have a board with the STM32F103C8T6 mcu from ebay, it can be found for $3 as STM32 minimum system board, it's basically a clone of Maple Mini. I have been trying for two days but I can't get it working. It's working fine with the standard peripheral library provided by ST, but when I try Chibios it just keeps restarting.
I use stm32flash utility to load the firmware through UART, I don't have any ST-LINK or any debugger unfortunatelly
The source code is here: https://github.com/ludekstepan/stm32-playground
It's based on Maple Mini demo (I have tried almost every demo for the STM32F1xx) I tried to remove everything that could cause a problem, I have tried different clock options, but nothing seems to work.
The OS boots properly, the LED is lit for one second and then the whole system restarts. By observation and trying different timeouts, I came to a conclusion that the system restarts when quitting the sleep routine. But I can't tell more.
I feel like I have tried everything and I feel very desperate
Perhaps someone can have a look at my code and see if there is an obvious mistake. Thank you!