Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 11 months ago.
why is not working RTOS? controller STM32F407VET6
4 Answers
6 years, 9 months ago.
It seems that the issue has been fixed. To test the code above on an STM32F407VET6 black board I set Seeed Arch Max
as target for the online compiler. Since the LEDs on this boards are connected rather to +3.3V than to GND they did blink reversely.
6 years, 7 months ago.
Hi, did somebody get this working? I want to try Mbed on this board too...
Thanks, BR ;)
As I said it worked for me. Have a look at
https://os.mbed.com/users/hudakz/code/STM32F407VET6_Hello/
https://os.mbed.com/users/hudakz/code/STM32F407VET6_Blinky_RTOS/
for more info.
6 years, 11 months ago.
Are you asking why the mbed RTOS is not working on a non-mbed board?
https://os.mbed.com/platforms/Seeed-Arch-Max/
the same processor )) ! should work!!!
posted by 26 Jan 2018The Seed-Arch-Max uses also the 512 kB flash mcu but the linke file for a 'G' with 1 M is used, same when you use the DISCO_F407VG as a replacement. But with the Seed-Arch-Max you can try to use the online compiler.
posted by 26 Jan 2018everything works except the library RTOS
https://os.mbed.com/handbook/RTOS - this example does not work
posted by 26 Jan 2018how do you use it, in online compiler or CLI? I can recommend CLI and using the DISCO mcu, that is marked as mbed5 target and includes the (more recent) rtos.
Also be aware that LED1/LED2 are not correct when you use a hardware different the Seed/Disco board. For your board you need
DigitalOut led1(PA_6); DigitalOut led2(PA_7);
I use in online compiler.
#include "mbed.h" #include "rtos.h" DigitalOut led1(PA_6); DigitalOut led2(PA_7); Thread thread; void led2_thread() { while (true) { led2 = !led2; Thread::wait(1000); } } int main() { thread.start(led2_thread); while (true) { led1 = !led1; Thread::wait(500); } }
but the LEDs do not blink
posted by 26 Jan 20186 years, 11 months ago.
I'm also interested in using this board with mbed. As a start, you can use the hardware DISCO_F407VG. But this board has no integrated mbed HDK and so it is not labeled mbed compatible and is not available in the online compiler. Instead, you can use mbed-cli and an external debug probe. The DISCO board uses a 'G' version of the MCU with 1024 kB flash, the 'E' board has 'only' 512 kB. But this board is cheap and becomes popular like the bluepill, so I think mbed support is a good idea. I have started already a configuration for this board and will write a pull request for this.