GPY full flash erase
-
@robert-hh Thnx for that. Suppose I wanted to edit uping what extra software do I need on my Windows PC to do that? Filezilla & Atom seem to show me only a limited part of the total flash memory. I would like to move towards being able to include my boot.py in the firmware in case LittleFS is not the great saviour of reformatted/removed/randomly-syntax-errored user programs most people seem to think it is.
-
@kjm If you want to include code into the firmware as so called "frozen bytecode", you must set up the firmware build environment. That is based on Linux. For building, you can use a virtual machine. There are some hints that WSL (Windows Subsystem for Linux = Linux inside Windows) works too. Only flashing requires then the native machine. These are two big steps, a) setting up and dealing with a virtual machine, b) setting up the firmware build environment. a) is relatively straightforward, b) is more tricky, even if well documented.
P.S.: boot.py and main.py are, as it is now, always executed from the file system. Of course you can change the code of mptask.c to let them start from the flash. But there are already two files, _boot.py and _main.py, which just do that. -
@robert-hh I've got a ubuntu VM running under windows, would it be able to flash a GPY? If so, can you link me to a guide for b) setting up the firmware build environment?
-
@kjm You can use that to build the firmware package. The actual flashing must be done on Windows, since the VM's usually have issues with USB devices. For builing, follow the instructions in the README.me here:
https://github.com/pycom/pycom-micropython-sigfox
and here:
https://github.com/pycom/pycom-micropython-sigfox/tree/Dev/esp32
and the links therein.
Follow the instructions carefully. My favorite pitfalls are:- you forgot to set environment variables
- you forgot the command "git submodule update --init"
- you selected the wrong branch. It is Dev for micropython and idf_v3.2 for the esp-idf. That changes from time to time.
-
I don't think pycom would refuse to promote pybytes as there entry into service business.
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