3 years, 8 months ago.

why is not working RTOS? controller STM32F407VET6

/media/uploads/nikantovik/2018-01-25_10-28-29.png

https://www.ebay.com/itm/STM32F407VET6-STM32-Cortex-M4-Development-Board-NRF2410-FMSG-SD-Card/322626104658?hash=item4b1e03ad52:g:bloAAOSwRlJZeyaP

4 Answers

3 years, 5 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.

3 years, 3 months ago.

Hi, did somebody get this working? I want to try Mbed on this board too...

Thanks, BR ;)

3 years, 8 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 Nik Fedorov 26 Jan 2018

The 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 Johannes Stratmann 26 Jan 2018

everything works except the library RTOS

https://os.mbed.com/handbook/RTOS - this example does not work

posted by Nik Fedorov 26 Jan 2018

how 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);
posted by Johannes Stratmann 26 Jan 2018

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 Nik Fedorov 26 Jan 2018
3 years, 8 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.