esptool:
esptool.py --port COM7 flash_id
esptool.py --port COM7 flash_erase
esptool.py --port COM7 write_flash 0x100 firmware.bin
Remove GPIO ground
rshell --buffer-size=30 -p COM7 --baud 115200
C:\Users\robin\Desktop\esp-idf-3\examples\build-GENERIC_SPIRAM>rshell --buffer-size=30 -p COM7 --baud 115200
Using buffer-size of 30
Connecting to COM7 (buffer-size 30)...
Trying to connect to REPL ... connected
Testing if ubinascii.unhexlify exists ... Y
Retrieving root directories ... /boot.py/
Setting time ... Nov 20, 2020 20:24:56
Evaluating board_name ... pyboard
Retrieving time epoch ... Jan 01, 2000
Welcome to rshell. Use the exit command to exit rshell.
C:\Users\robin\Desktop\esp-idf-3\examples\build-GENERIC_SPIRAM> ls /pyboard
boot.py
C:\Users\robin\Desktop\esp-idf-3\examples\build-GENERIC_SPIRAM>
Hoooooorrraaayyyyyyyyyyyyyyyyyyyyyyyy.
Thank you David and Jimmo.
As you can tell, I'm absolutely over the moooooooon.
That was a 'standard build'.
Now to progress on to the build with CAM modules.
BUT
Only after I have written this up with the audience of a tyro.
Thank you again
Robin
Cross compiling Micropython from GITHUb source -errors
-
- Posts: 29
- Joined: Fri Jul 26, 2019 9:40 pm
Re: Cross compiling Micropython from GITHUb source -errors
I can compile esp32 micropython firmware V4 using a raspberry pi 4.
This was tested with a recent buster full install.
Additional dependency required: libffi-dev
This script creates directories ~/myesp32build and ~/.espressif
This was tested with a recent buster full install.
Additional dependency required: libffi-dev
This script creates directories ~/myesp32build and ~/.espressif
Code: Select all
## directory to contain the build
#
mkdir ~/myesp32build
cd ~/myesp32build
##create venv environment for build
#
python3 -m venv build-venv-p3
#
## get idf sources and checkout at 4.1 checkpoint
## see https://github.com/micropython/micropython/blob/master/ports/esp32/Makefile
#
git clone --recursive https://github.com/espressif/esp-idf.git
cd ~/myesp32build/esp-idf
git checkout 4c81978a3e2220674a432a588292a4c860eef27b #v4 esp idf compatible with micropython
#
## clone espidf submodules
#
git submodule update --recursive --init
## install latest build toolchain for armel from espressiv download site
#
cd ~/myesp32build/esp-idf/
./install.sh
#
## get micropython + deps
#
cd ~/myesp32build
git clone --recursive https://github.com/micropython/micropython.git
git clone --recursive https://github.com/micropython/micropython-lib.git
cd ~/myesp32build/micropython
git submodule update --init --recursive
cd ~/myesp32build/micropython-lib
git submodule update --init --recursive
#
### build script for each build begins here
. ~/myesp32build/esp-idf/export.sh
source ~/myesp32build/build-venv-p3/bin/activate
pip3 install -r ~/myesp32build/esp-idf/requirements.txt
cd ~/myesp32build/micropython/mpy-cross
make clean
make -j3
############ESP32 build-GENERIC
#
cd ~/myesp32build/micropython/ports/esp32
make clean
make clean-frozen
make submodules
make -j3
ls -la build-GENERIC/firmware*