Flash Wipy with own build
profra last edited by profra
I am trying to build own image for Wipy 2 and I have to flash binaries on another machine.
I have found these binaries after build... see the picture.
BUT I can not find information where to burn it (on which addresses).
Will be there someone who will help me with the right info?
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 appimg.bin
Charly86 last edited by
appimg.bin bootloader\bootloader.bin lib\partitions.bin
@charly86 I think the easiest way is to do it OTA (as long as the version on the device is recent enough to support it). Connect via FTP, and upload the
/flash/sys/, wait until done, and reboot.
Alternatively, on the command-line, I have successfully used (on macOs):
python2.7 /Applications/Pycom\ Firmware\ Update.app/Contents/Resources/src/bin/updater.py -s 57600 -t LoPy_868-1.7.8.b1.tar.gz -p /dev/cu.usbmodemPy343431
This required the P23-GND short on boot. I believe there's a new method now if you use a Pytrack or Pysense with a recent firmware that allows you to do it without it.
Charly86 last edited by Charly86
I'm trying do do the same thing with custom Lopy with Lora Class C enabled.
Firmware is generated from a linux clouded VM and my desktop PC is on windows.
The precise command line to launch and order would be help full. (I know it's with esptool but don't know the params).
Best solution would be firmware updater allow to select custom files ;-)
@profra There is a signature added to wipy.bin which is used to verify the integrity of the image.
@jcaron It is a bit unclear to me the difference between appimg.bin and wipy.bin. I did compare both files and they are "identical"... in other words, the appimg.bin is bigger than wipy.bin by 32 bytes ... what does it mean, what does it say?
@profra Note that there is a small catch when using it, the OTA update (via FTP) alternates between two locations while the upgrader always use the same location, so if you switch from one to the other you may end up with a version different from what you expect.
@jcaron Good tip, I did not know it, many thanks.
If you have Wi-Fi set up, you can also upload the appimg.bin via FTP to /flash/sys and reboot.
@robert-hh You did me Christmas :-) I am going to go to our cottage now (with notebook and modules... have to do it under WSL) and I have the entertaining for nights... thank you very much.
BOOT_OFFSET = 0x1000 # for bootloader.bin PART_OFFSET = 0x8000 # for partitions.bin APP_OFFSET = 0x10000 # for appimg.bin
The file wipy.bin will not be flashed. It's a part of appimg.bin.
If you run on the machine you used for builing the command:
make V=1 BOARD=WIPY flash
You can the esptool.py call used for flashing. Even if that fails, you can take the syntax from the log.