After upgrade firmware disappeared main.py

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
duma
Posts: 4
Joined: Wed Sep 06, 2017 2:30 pm

After upgrade firmware disappeared main.py

Post by duma » Wed Sep 13, 2017 1:57 pm

Hello, everyone! I am just started to use BrainPad and bumped with the problem. After upgrade firmware disappeared main.py and README. There is just boot.py. The device was formatted before that. I tried different firmware on the micropython.org NUCLEO_F401RE-20170912-v1.9.2-87-gda8c4c26 and previous releases, but the same. The problem with my board or, may be with main.c?

rpi_nerd
Posts: 35
Joined: Sat Jul 29, 2017 2:05 pm

Re: After upgrade firmware disappeared main.py

Post by rpi_nerd » Wed Sep 13, 2017 5:33 pm

When you do a firmware update, I believe any existing files that you had on the device (such as main.py) get erased. I know that at least for the esp8266 firmware there is no main.py by default.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: After upgrade firmware disappeared main.py

Post by dhylands » Wed Sep 13, 2017 11:36 pm

I think it will depend on exactly how the device is flashed.

The way that the flash is laid out, the filesystem is in the middle of the flash image. On my Nucleo board, if I flash from my linux build using:

Code: Select all

make BOARD=NUCLEO_F401RE deploy-stlink
then my filsystem is preserved. Other flashing tools may give various results depending on the exact file format and options used.

duma
Posts: 4
Joined: Wed Sep 06, 2017 2:30 pm

Re: After upgrade firmware disappeared main.py

Post by duma » Thu Sep 14, 2017 2:53 pm

Thank you! Will try to adjust my current firmware

Post Reply