Hi everyone, this is probably a stupidly simple thing to fix but it’s doing my head in and have spent hours going through this forum and others looking for a solution.
I’ve inherited a ESP-IDF project that is working and am porting over to platformio. I can get the code to compile in platformio (thank you to this community for help here!)
Now I’m trying to upload and get the following error (renaming project to protect anonymity):
esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x8000 for file: /Users/pinchy/Documents/PlatformIO/Projects/project/.pio/build/project/partitions.bin
I’m using a partitions table:
nvs, data, nvs, , 0x6000
phy_init, data, phy, , 0x1000
factory, app, factory, , 1M
have also tried the following table:
nvs, data, nvs, , 0x6000
phy_init, data, phy, , 0x1000
factory, app, factory, 0x10000, 1M
And here’s my platformio.ini
file:
[env:project]
boards_dir = boards
board = project
platform = https://github.com/platformio/platform-espressif32.git
framework = espidf
board_build.embed_files = src/error.mp3
board_build.partitions = partitions.csv
build_flags ="-D CONFIG_PARTITION_TABLE_OFFSET=0x10000"
And here’s the esptool.py
call:
"/Users/pinchy/.platformio/penv/bin/python" "/Users/pinchy/.platformio/packages/tool-esptoolpy/esptool.py" --chip esp32 --port "/dev/cu.usbserial-FTAR8L7D" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /Users/pinchy/Documents/PlatformIO/Projects/project/.pio/build/project/bootloader.bin 0x8000 /Users/pinchy/Documents/PlatformIO/Projects/project/.pio/build/project/partitions.bin 0x10000 .pio/build/project/firmware.bin
I can see that although I’ve been trying various arguments in platformio.ini
, the esptool is still loading the bootloader at 0x8000
(default) rather than what I want it to; 0x10000
.
any ideas what I’m doing wrong?