Page 1 of 1

After upgrade firmware disappeared main.py

Posted: Wed Sep 13, 2017 1:57 pm
by duma
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?

Re: After upgrade firmware disappeared main.py

Posted: Wed Sep 13, 2017 5:33 pm
by rpi_nerd
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.

Re: After upgrade firmware disappeared main.py

Posted: Wed Sep 13, 2017 11:36 pm
by dhylands
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.

Re: After upgrade firmware disappeared main.py

Posted: Thu Sep 14, 2017 2:53 pm
by duma
Thank you! Will try to adjust my current firmware