Requesting Manual Flashing procedure
I am using Lopy1 for microwebseerver based project (firmware version 1.10.2.b1)for months it was good ,
after updating firmware to 1.16.0.b I am getting memory error on ruining the sample code of microwebserver.
- RAM: 512KB
- External flash 4MB
Firmware Upgrading tool automatically upgrade the firmware to latest it doesn't allow user to select firmware.
1)How to solve memory error ?
- Is it possible to clean the memory ?
3)Has the latest firmware consumed more space of my memory ...if so how to
downgrade my firmware
Thanks will try and come back to you,
@shiva-shankar For building your own firmware, best is to clone the repository at https://github.com/pycom/pycom-micropython-sigfox and follow the instructions in README.md.
For embedding your code into flash, just copy your python files into
and build the firmware. A linux environment is recommended for building.
appreciate your response,the memory error is happening during import i will try mpy method also can point me some procedure or articles for implementing frozen approach.
2)I have succeeded firmware downgrade but I am getting memory error again.
about 1) Depends on the time you get the memory error. If it is during import of a module, pre-compiling the module can help. That converts a .py file into a .mpy file, which requires less memory during import. The tool to do so is mpy-cross. You have to compile it oyurself from the repository. I have pre-compiled versions for Linux and Windows here: https://github.com/robert-hh/Shared-Stuff
Files mpy-cross_pycom_linux and mpy-cross_pycom.exe
If you get memory errors at runtime, frorzen byetcode does the trick. That however requires to build the whole firmware yourself. Doing that, you can embed your code into flash memory, at which time it does not consume RAM any more.
about 2) There is nothing like cleaning memory
about 3) https://forum.pycom.io/topic/517/downgrading-firmware-advanced-users/22