I started with RTX_ex2 and got it running on an STM32F3Discovery board with uVision V5.10.0.2 Then I ported this example to a Makefile based project that builds with gcc 4.8 downloaded from here: launchpad.net/gcc-arm-embedded
I customized startup.S to initialize and start RTX before calling main on an osThread and got the same program running.
Next I modified RTX_Conf_CM.c so OS_TIMERS = 1 and I added a one-shot timer that calls a function after 5 seconds. This works fine in the uVision project but the one built w/ gcc crashes as soon as the timer goes off.
Unfortunately I have not been able to get gdb working so I don't know where the problem is. I suspect that I am not correctly initializing RTX in my gcc version. Does anybody have an idea of where I might have gone wrong? Another working Makefile/gcc based program using RTX would also be very helpful.
Thanks, Marc