Page 2 of 2

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Posted: Sat Nov 03, 2018 9:05 am
by rino
I just wrote an article about how to flash a Nucleo-64 STM32F401 board starting from the .dfu binary and using the ST morpho pins: ... stm32f401/

Sorry it's in Italian

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Posted: Mon Dec 03, 2018 1:26 pm
by boochow
The easiest way to deploy MicroPython to Mbed-ready boards is to drag and drop a firmware binary onto Mbed filesystem folder.
I made an archive page which has firmware binaries built on December 1, 2018 from MicroPython mainline source code. ... bed-boards
(I have tested only 3 boards: 401RE, L432KC, and IOT01A.)

They are zipped files so you should download the file for your board then unzip it to get the binary file.
Drag and drop the binary file onto the folder which would open when you connect the board to your PC with USB.

These binary files are simply converted from ELF files using objdump like this:

Code: Select all

arm-none-eabi-objcopy -O binary build-STM32F769DISC/firmware.elf upy-f746disco.bin
What this method is inferior to the official deploy method is that this method will erase all of the internal files saved in flash memory area.
This is unavoidable because the internal filesystem block is placed between ISR and TEXT area and the format of raw binary file provides no means to skip writing the specific memory area.

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Posted: Tue Jan 08, 2019 7:28 pm
by nilo
thanks for creating the "bin" file for the iot1a, you make life easier.
I got the REPL working. since I just downloaded your binary files
I do not have the "" and "". how do I run a script?
like writing a script inside, reset the board to run the script.
any comments will be highly appreciated, sorry for bothering you I'm a newbie.

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Posted: Wed Jan 09, 2019 11:55 am
by boochow
@nilo the IoT1A board has two USB ports, USB-STLink on the top right corner and USB-OTG on the top center.
You can access the files through USB-OTG port only. USB-STLink port is dedicated to Mbed.

Please note that ( i ) you always have to connect the USB-STLink port to power your board and ( ii ) the USB-OTG port is a micro USB connector which is soldered in upside-down position.

Re: [NUCLEO-F401RE] procedure to upload the MicroPython image

Posted: Mon Jan 14, 2019 6:15 pm
by nilo
thanks a lot, everything is working now (using 2 microUSB's). This is the quickest MicroPython implementation on the IOT1A.
now I just have have to find drivers for all the sensors on this board. I got the VL53L0X drivers from desiphu working too.