espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.33k stars 7.2k forks source link

Issue with Creating single Flash-able image from binary for esp-launchpad. (IDFGH-13556) #14445

Open MR-VENOM opened 2 weeks ago

MR-VENOM commented 2 weeks ago

Answers checklist.

General issue report

I wanted to create a single app image for my project the partitions table is as follows

factory, app, factory, 0x010000, 4150K, model, data, spiffs, , 3750K, nvs, data, nvs, , 16K, fr, data, , , 128K,

I used the command esptool.py --chip $esp32s3 merge_bin -o $main.bin "@flash_args

But when the generated file is flashed The program is not running properly. what should be done to fix this issue ?

adwait-esp commented 2 weeks ago

@MR-VENOM, did you tried flashing this same file with esptools.py? What address is this merged binary expected to be flashed at?

MR-VENOM commented 1 week ago

@adwait-esp Sorry for the late reply... The address to be flashed is 0x0 and the merged bin never worked for me but flashing with esptool.py with below command works fine :

python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset --no-stub --port /dev/ttyACM1 write_flash --flash_mode dio --flash_size 8MB --flash_freq 80m 0x0 bootloader/bootloader.bin 0x10000 ai-module.bin 0x8000 partition_table/partition-table.bin 0x41e000 srmodels/srmodels.bin