Requesting Manual Flashing procedure
-
Hi,
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.
Lopy1 Memory- 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 -
@shiva-shankar
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 -
@robert-hh
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. -
@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
<your_path>/pycom-micorpython-sigfox/esp32/frozen
and build the firmware. A linux environment is recommended for building. -
@robert-hh
Thanks will try and come back to you,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login