Closed LkySlevin closed 1 year ago
in VScode it starts writing to address 0x00010000, however, NodeMCU starts at 0x00000000
Spot on! NodeMCU PyFlasher is an app to flash self-contained firmware binaries. Hence, it expects binaries that already contain a bootloader and partitions bin such that it can write it to 0x0000. PlattformIO on the other hand flashes the individual binaries separately, each to its correct address as per the partitions definition.
-> to build self-contained binaries see e.g. https://github.com/marcelstoer/docker-nodemcu-build/blob/master/build-esp32#L80-L85 or https://github.com/ThingPulse/icon64-word-clock/blob/master/aggregate_bin.sh
Setup: I have an ESP32 firebeetle board with Chip ESP32-D0WD (revision v1.0). I usually use VScode - PlattformIO to build/flash my board, which works fine. For a colleague I wanted to test NodeMCU-PyFLash for him to upload my bin-files without any hussle.
Problem: However, no matter what setting I use DIO/DOUT/QIO, after flashing my serial port shows constantly
This is the console output from NodeMCU-PyFlash:
and this is the output from VScode:
What I noted is that in VScode it starts writing to address 0x00010000, however, NodeMCU starts at 0x00000000. I assume this is the problem, but how can I make sure to avoid this and get my code running properly?