Compiler error with mbed framework

I am trying to run my first program on the nucleo f429zl board. I am using the platformio ide. I have not been able to compile the following blinky program:

#include "mbed.h"

DigitalOut myled(LED1);

int main() {
    while(1) {
        myled = 1;
        myled = 0;

with the following .ini file

platform = ststm32
board = nucleo_f429zi
framework = mbed

After a clean, I get a few of these warnings

#warning toolchain.h has been replaced by mbed_toolchain.h, pl
ease update to mbed_toolchain.h [since mbed-os-5.3]

and this warning

0: syntax error

with this error terminating compilation:

collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\nucleo_f429zi\firmware.elf] Error 1

However, here’s the kicker. I get similar warnings when compiling under the nucleo_f401re environment, but the compilation succeeds.

This is my first time posting, so excuse my lack of standardization if any exists. Is there anything I can do to fix this?

Hi @nickbeckwith!
Looks like nucleo_f429zi requires an up-to-date toolchain version. Could please try an instruction described here?

1 Like

@valeros thank you for the response! That does work.