esp32c3 arduino ide ota problem

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

esp32c3 arduino ide ota problem

Postby maggymtac » Sat Oct 09, 2021 6:30 am

Dear,

I try many times OTA (server works fine) but i get theses traces after get file on my esp32-c3 (2Mb):

Code: Select all

08:25:05.091 -> 
08:25:05.091 -> abort() was called at PC 0x40381399 on core 0
08:25:05.091 -> Core  0 register dump:
08:25:05.091 -> MEPC    : 0x4202147e  RA      : 0x40387ec0  SP      : 0x3fcc2880  GP      : 0x3fc8fa00  
08:25:05.091 -> TP      : 0x3fc9d358  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130  
08:25:05.091 -> S0/FP   : 0x00000004  S1      : 0x3fcc28e4  A0      : 0x3fcc28ac  A1      : 0x3fcc28e2  
08:25:05.091 -> A2      : 0x00000000  A3      : 0x3fcc28d9  A4      : 0x00000001  A5      : 0x3fc98000  
08:25:05.091 -> A6      : 0x7a797877  A7      : 0x76757473  S2      : 0x00000010  S3      : 0x00000000  
08:25:05.124 -> S4      : 0x00010000  S5      : 0x00001000  S6      : 0x00000000  S7      : 0x00000000  
08:25:05.124 -> S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
08:25:05.124 -> T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938  
08:25:05.124 -> MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000007  MTVAL   : 0x00000000  
08:25:05.124 -> MHARTID : 0x00000000  
08:25:05.124 -> 
08:25:05.124 -> Stack memory:
08:25:05.124 -> 3fcc2880: 0x7fffffff 0x00000000 0x3fcc28e0 0x4038dd1c 0x00000000 0x3fc932b4 0x00000000 0x3fc91b94
08:25:05.124 -> 3fcc28a0: 0x3fcc28e4 0x3fc91bb0 0x3fcc28e0 0x726f6261 0x20292874 0x20736177 0x6c6c6163 0x61206465
08:25:05.190 -> 3fcc28c0: 0x43502074 0x34783020 0x31383330 0x20393933 0x63206e6f 0x2065726f 0x00000030 0x42010000
08:25:05.190 -> 3fcc28e0: 0x00000030 0x38333034 0x39393331 0x40381a00 0x00001000 0x3fcc2df4 0x3fc92cfc 0x4038139c
08:25:05.190 -> 3fcc2900: 0x00000000 0x00000010 0x3fc9b130 0x3fc90e1c 0x7fffffff 0x00001800 0x3fc9b810 0x4038246e
08:25:05.190 -> 3fcc2920: 0x7fffffff 0x00000000 0x00001000 0x00000000 0x00000010 0x3fcc2df4 0x3fc92cfc 0x4201c070
08:25:05.190 -> 3fcc2940: 0x3fcbffcc 0x00000020 0x3fc92cfc 0x42010666 0x3fcc2cc0 0x00000000 0x3fc92cfc 0x4200f93e
08:25:05.223 -> 3fcc2960: 0x3fcc2cc0 0x00001000 0x3fc92cfc 0x4200fb74 0x0013fad0 0x0013fad0 0x3fcc2cc0 0x3fcc2b90
08:25:05.223 -> 3fcc2980: 0x0013fad0 0x00000001 0x3fc92ca4 0x4200d92a 0x3c1116e4 0x00000000 0x000003e8 0x00000000
08:25:05.223 -> 3fcc29a0: 0x00000000 0x00000000 0x00000000 0x80011c3a 0x7fffffff 0x00000000 0x00000000 0x42011c8a
08:25:05.223 -> 3fcc29c0: 0x3fcc2d00 0x3fcc2cc0 0x00000064 0x4200e930 0x3fcc2d00 0x000000c8 0x00000000 0x3fc92ca4
08:25:05.223 -> 3fcc29e0: 0x00000000 0x3fcc2cc0 0x3fcc2bd4 0x4200de88 0x000000f8 0xa5a5a5a5 0xa5a5a5a5 0x3c111220
08:25:05.257 -> 3fcc2a00: 0x3fcbb0e4 0x0000004f 0x00000040 0x25a5a5a5 0x3fcbeca8 0x0000002f 0x00000020 0x25a5a5a5
08:25:05.257 -> 3fcc2a20: 0x00000000 0x00000000 0x00000000 0x25a5a5a5 0x00000000 0x00000000 0x00000000 0x0da5006c
08:25:05.257 -> 3fcc2a40: 0x00000000 0x00000000 0x00000000 0x08a5a5a5 0x00000000 0x00000000 0x00000000 0x25a5a5a5
08:25:05.257 -> 3fcc2a60: 0x00000000 0x00000000 0x00000000 0x25a5a5a5 0x00000000 0x00000000 0x00000000 0x25a5a5a5
08:25:05.257 -> 3fcc2a80: 0x00000000 0x00000000 0x00000000 0x25a5a5a5 0x00000000 0x00000000 0x00000000 0x25a5a5a5
08:25:05.323 -> 3fcc2aa0: 0x00000000 0x00000000 0x00000000 0x07a5a5a5 0x00000000 0x00000000 0x00000000 0x25a5a5a5
08:25:05.323 -> 3fcc2ac0: 0x00000000 0x00000000 0x00000000 0x07000030 0x00000000 0x00000000 0x00000000 0x4038d9f0
08:25:05.323 -> 3fcc2ae0: 0x00000000 0x00000000 0x00000000 0x4038246e 0x00000000 0x00000000 0x00000000 0x00001800
08:25:05.323 -> 3fcc2b00: 0x00000000 0x00000000 0x00000000 0x073825bc 0x00000000 0x00000000 0x00000000 0x00000050
08:25:05.323 -> 3fcc2b20: 0x00000000 0x00000000 0x00000000 0x40382712 0x00000000 0x00000030 0x3fcc2c00 0x4038dd4c
08:25:05.357 -> 3fcc2b40: 0x00000000 0x00000030 0x3fcc2c90 0x4201175c 0x00000000 0x00000000 0x00000000 0x0c011700
08:25:05.357 -> 3fcc2b60: 0x00000000 0x00000000 0x00000000 0x06c92600 0x4200d402 0x00000000 0x00000000 0x00000000
08:25:05.357 -> 3fcc2b80: 0x00000000 0x00000050 0x4200d402 0x00000000 0x3fcbffcc 0x0000002f 0x00000020 0x4038dd5a
08:25:05.357 -> 3fcc2ba0: 0x4200d402 0x00000000 0x4200d402 0x00000000 0x00000000 0x3fcc2d00 0x3fc92ca4 0x3fc92600
08:25:05.357 -> 3fcc2bc0: 0x3fc929d4 0x00000050 0x00000001 0x4200dfe0 0x00000000 0x00000000 0x00000000 0x3fcc2cc0
08:25:05.390 -> 3fcc2be0: 0x2e323931 0x2e383631 0x36312e30 0x8c388a00 0x00000050 0xffffffff 0x1f40f500 0x00000001
08:25:05.390 -> 3fcc2c00: 0x3fcbb07c 0x0000002f 0x00000022 0x0038a788 0x70747468 0x00000000 0x00000000 0x843883d6
08:25:05.390 -> 3fcc2c20: 0x3fcbde30 0x000001af 0x00000000 0x00000002 0x3fcbafac 0x0000001f 0x00000011 0x00000000
08:25:05.390 -> 3fcc2c40: 0x00000000 0x00000000 0x00000000 0x80011824 0x3fcac598 0x00000001 0x000000c8 0x0013fad0
08:25:05.390 -> 3fcc2c60: 0x00000000 0x00000000 0x3fcc000a 0x00000000 0x00000000 0x00000000 0x80cc2d00 0x00000000
08:25:05.390 -> 
08:25:05.390 -> 
08:25:05.423 -> 
08:25:05.423 -> ELF file SHA256: 0000000000000000
08:25:05.423 -> 
08:25:05.423 -> Rebooting...
08:25:05.456 -> ESP-ROM:esp32c3-api1-20210207
08:25:05.456 -> Build:Feb  7 2021
08:25:05.456 -> rst:0xc (RTC_SW_CPU_RST),boot:0xe (SPI_FAST_FLASH_BOOT)
08:25:05.456 -> Saved PC:0x40382008
08:25:05.456 -> SPIWP:0xee
08:25:05.456 -> mode:DIO, clock div:1
08:25:05.456 -> load:0x3fcd6100,len:0x1428
08:25:05.456 -> load:0x403ce000,len:0xc04
08:25:05.456 -> load:0x403d0000,len:0x292c
08:25:05.456 -> entry 0x403ce000
08:25:05.456 -> I (35) boot: ESP-IDF v4.4-dev-2313-gc69f0ec32 2nd stage bootloader
08:25:05.456 -> I (35) boot: compile time 12:10:14
08:25:05.456 -> I (35) boot: chip revision: 3
08:25:05.456 -> I (35) boot_comm: chip revision: 3, min. bootloader chip revision: 0
08:25:05.456 -> I (41) qio_mode: Enabling default flash chip QIO
08:25:05.489 -> I (46) boot.esp32c3: SPI Speed      : 80MHz
08:25:05.489 -> I (50) boot.esp32c3: SPI Mode       : QIO
08:25:05.489 -> I (53) boot.esp32c3: SPI Flash Size : 2MB
08:25:05.489 -> I (57) boot: Enabling RNG early entropy source...
08:25:05.489 -> I (62) boot: Partition Table:
08:25:05.489 -> I (64) boot: ## Label            Usage          Type ST Offset   Length
08:25:05.489 -> I (71) boot:  0 nvs              WiFi data        01 02 00009000 00005000
08:25:05.489 -> I (77) boot:  1 otadata          OTA data         01 00 0000e000 00002000
08:25:05.489 -> I (84) boot:  2 app0             OTA app          00 10 00010000 00140000
08:25:05.522 -> I (90) boot:  3 spiffs           Unknown data     01 82 00150000 000b0000
08:25:05.522 -> I (97) boot: End of partition table
08:25:05.522 -> I (100) boot_comm: chip revision: 3, min. application chip revision: 0
08:25:05.522 -> I (106) esp_image: segment 0: paddr=00010020 vaddr=3c110020 size=26860h (157792) map
08:25:05.556 -> I (136) esp_image: segment 1: paddr=00036888 vaddr=3fc8f200 size=033f0h ( 13296) load
08:25:05.556 -> I (138) esp_image: segment 2: paddr=00039c80 vaddr=40380000 size=06398h ( 25496) load
08:25:05.556 -> I (144) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=106c38h (1076280) map
08:25:05.722 -> I (299) esp_image: segment 4: paddr=00146c60 vaddr=40386398 size=08e28h ( 36392) load
08:25:05.722 -> I (305) esp_image: segment 5: paddr=0014fa90 vaddr=50000000 size=00010h (    16) load
08:25:05.722 -> I (310) boot: Loaded app from partition at offset 0x10000
08:25:05.722 -> I (310) boot: Disabling RNG early entropy source...

I set board.txt:

Code: Select all

esp32c3.name=ESP32C3 Dev Module
esp32c3.vid.0=0x303a
esp32c3.pid.0=0x1001

esp32c3.upload.tool=esptool_py
###esp32c3.upload.maximum_size=1310720
###esp32c3.upload.maximum_data_size=327680
esp32c3.upload.maximum_size=1929216
esp32c3.upload.maximum_data_size=102400

esp32c3.menu.PartitionScheme.minimal_j=Minimal_J (1.9MB APP/100KB SPIFFS)
esp32c3.menu.PartitionScheme.minimal_j.build.partitions=minimal_j

esp32c3.menu.FlashSize.2M_J=2MB_J (16Mb)
esp32c3.menu.FlashSize.2M_J.build.flash_size=2MB
esp32c3.menu.FlashSize.2M_J.build.partitions=minimal_j
Partitions csv file:

Code: Select all

# Name,   Type, SubType, Offset,   Size, Flags
nvs,      data, nvs,     0x9000,   0x5000,
otadata,  data, ota,     0xe000,   0x2000,
app0,     app,  ota_0,   0x10000,  0x1D7000,
spiffs,   data, spiffs,  0x1E7000, 0x19000,
Thank you for your help.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 arduino ide ota problem

Postby chegewara » Thu Oct 21, 2021 11:47 pm

You need at least 2 app partitions to perform OTA, either 2x OTA or OTA + factory.

Who is online

Users browsing this forum: No registered users and 31 guests