![mbed programming nucleo f401re mbed programming nucleo f401re](https://hubtronics.in/image/cache/data/stm32f429i-disco-600x600h.jpg)
I changed the source so output on the serial terminal is generated, reporting if the button is pressed or not. Next, I wanted to try out the buttons, and created a new project based on the template “Read the board user button state”. Pc.printf("This program runs since %d seconds.\n", i++) The source of my first application looks like this: I first hat rev 78 and after updating to the latest rev (rev 83) the wait function works as expected ( ) UPDATE:įix: you need to update the mbed library in the online compiler. Therefore, I replaced “wait(1)” by “wait_ms(1000)”, which seems to work as expected. I found the function “wait(float sec)” seems to be broken or at least buggy, because no further messages are printed. Now press the RESET button on your board and you should see a first message (“Hello World”) appearing in the HTerm software. Now you need to open a serial terminal software like HTerm ( ), select the COM port your Nucleo has been assigned to (check your Windows “Device manager”, select “Ports”), baud rate is 9600 and click “Connect”. Copy the “Nucleo_p.bin” file to this USB storage. Connect your Nucleo board with USB to your PC and a USB flash storage device is detected. Click “Compile” and you are offered to download a “Nucleo_p.bin” file. I selected the template “Display a message on PC using UART”. You can start from scratch or select one of the many already available templates to start with. If you switch now to the Compiler page, you can create a new project with “New” in the top left corner and in the pop up window you can select supported platforms (ST Nucleo F401RE). Visit the boards web page ( ) and klick on “Add to Compiler” on the right side. In order to write source code for the Nucleo board, you have to add the board to the compiler environment. After registration you find “Compiler” in the top right corner of your browser, which brings you to a web based IDE to write source code for your development board. Next, using the online compiler of mbed, you need to register on the mbed web page ( ), find the “Sign in / Register” button in the top right corner. Scroll down to the point “Firmware update required”, follow the link and the instructions, it is really easy and straight forward. for various hardware how to perform in-application-programming of a firmware. Starting with Windowsįirst, I started using Windows, because while checking the Nucleo web page I found the recommendation to update the firmware of the chip to the latest version using some Windows based flashing tool ( ). Any STM32L4 based board (best would be NUCLEO or Discovery one) 1x miniUSB. Since the Nucleo board is advertised with “mbed enabled”, I thought let’s check that.