I've tried the example threading code and it works. The mbed version was the actual mbed-dev (MBED_LIBRARY_VERSION 158), target mcu is BLUEPILL_F103C8. You will get an error because of an undefined target in ./mbed-os/targets/TARGET_STM/mbed_rtx4.h.
The F103C8 and F103RB differ only in Flashsize, so setting it to both target is ok,
change:
#elif defined(TARGET_STM32F103RB)
to:
#elif defined(TARGET_STM32F103RB) || defined(TARGET_STM32F103C8)
For testing I have exported the sample to gnuarmeclipse, the threads are running.
@Wim:
the nucleo with F103RB has only more flash, ram size 20 kB is the same. In fact, the C8 are also RB and have 128 kB flash, openOCD or stm32flash can write the whole flash.
I can successfully start a single thread (plus the main thread). I am now attempting to start another thread (i.e. 2
Thread
s + the main thread) but the second call tostart
just hangs forever.The call to
a.start
returns 0 but the call tob.start
never returns. I'm using an STM32F103C8 "blue pill" board.-Scott