This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
openocd works, debugging works, but... I get the same freezes on chThdSleepMilliseconds. I even tried standard VL_Discovery demo, but I get the same trouble using both st-util and openocd!!! Now I think that it is arm-none-eabi-gdb bug. So I cant claim st-util for this issue...
Okay, I think this is definitely a toolchain problem. Don't worry, this happened often. I know over ten people myself which did had strange problem like yours which were caused by their compiler toolchain (CodeSourcery is a real problem to work properly with ChibiOS). The problem can be solved VERY easily. Just use this toolchain here. It even comes with precompiled binaries for Windows, Linux and Mac OSX. The toolchain works out of the box for 100% sure. Just make sure that you are definitely using the "new" toolchain. Uninstall the old or make sure that it's out of your PATH or what ever your OS uses.
Giovanni wrote:Probably this depends on the FPU settings, in the Makefiles is automatic but in IAR project you have to enable disable the FPU both the compiler settings AND correctly defining CORTEX_USE_FPU.
If the two mismatch then the port crashes.
Giovanni
What IDE are you using? You might want to check your FPU settings.
I use Eclipse. Chibios 2.4.3 Under Windows the same code compiles and debugs well, using Atollic gdb server + CodeSourcery toolchain... make file from VL-Discovery demo
Last edited by DeusExMachina on Wed Feb 20, 2013 10:08 am, edited 1 time in total.
Did you check your Makefile setting? What MCU do you use? Might it be that you have the FPU turned on but the MCU dosen't have any? Also, try to disable it for a simple test if it's turned on anyways.
Tectu wrote:Did you check your Makefile setting? What MCU do you use? Might it be that you have the FPU turned on but the MCU dosen't have any? Also, try to disable it for a simple test if it's turned on anyways.
~ Tectu
Yes, it is regular VL-discovery demo with regullar STM32F100VLdiscovery... So no FPU settings in makefile present