ESP8285, OTA binary file is to big

dlut
Posts: 1
Joined: Tue Aug 03, 2021 4:56 pm

ESP8285, OTA binary file is to big

Postby dlut » Tue Aug 03, 2021 5:22 pm

Hello, I have problem to flash my binary file to device (SONOFF RF R2 V01) Esp 8266 with 1MB flash memory. In my program I use MQTT, OTA(via http), WIFI, GPIO.

When I traing to flash:

Code: Select all

LD build/main.elf
/opt/xtensa-lx106-elf-gcc/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld: address 0x4028b92c of /home/dlut/GIT/esp8266_rtos_tamplate/build/main.elf section `.flash.rodata' is not within region `iram0_2_seg'
/opt/xtensa-lx106-elf-gcc/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld: address 0x4028b92c of /home/dlut/GIT/esp8266_rtos_tamplate/build/main.elf section `.flash.rodata' is not within region `iram0_2_seg'
collect2: error: ld returned 1 exit status
make: *** [/home/dlut/esp/ESP8266_RTOS_SDK/make/project.mk:510: /home/dlut/GIT/esp8266_rtos_tamplate/build/main.elf] Error 1



My partition table is:

Code: Select all

nvs,      data, nvs,     0x9000,   0x4000
otadata,  data, ota,     0xd000,   0x2000
phy_init, data, phy,     0xf000,   0x1000
ota_0,    0,    ota_0,   0x10000,  0x78000
ota_1,    0,    ota_1,   0x88000, 0x78000


Size of binary file:

Code: Select all

❯ ls -la  build/main.bin
-rw-r--r-- 1 dlut users 457120 Aug  3 10:26 build/main.bin



It is posible to use OTA on esp8285?

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: ESP8285, OTA binary file is to big

Postby Her Mary » Fri Aug 06, 2021 4:47 pm

Maybe you should try 2MB flash.

Who is online

Users browsing this forum: No registered users and 186 guests