Rebooting Esp32 during running after return statement

madhusudan_jadhav
Posts: 28
Joined: Fri Mar 10, 2023 9:05 am

Rebooting Esp32 during running after return statement

Postby madhusudan_jadhav » Wed Apr 12, 2023 8:06 am

  1. �[0;33m--- idf_monitor on \\.\COM1 115200 ---�[0m
  2. --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
  3. ����x����������x�x������Jâ•—j%    â•‘%=}9YM� Attempting to open NVS partition
  4. I (707) MIBAIO_NVS: Flash Opened Successfully
  5. Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
  6.  
  7. Core  0 register dump:
  8. PC      : 0x40001277  PS      : 0x00060830  A0      : 0x801830ea  A1      : 0x3ffbbb80
  9. A2      : 0x00000000  A3      : 0x3ffb6d2d  A4      : 0x00000000  A5      : 0x00000000
  10. A6      : 0x00000001  A7      : 0x0000cdcd  A8      : 0x8009305b  A9      : 0x3ffbbb30
  11. A10     : 0x3ffc4510  A11     : 0x3ffc4510  A12     : 0x00060820  A13     : 0x00060823
  12. A14     : 0x00000001  A15     : 0x0000cdcd  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
  13. EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff
  14.  
  15.  
  16. Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 0x400952e5:0x3ffbbc80
  17. 0x401830e7: get_uncached_log_level at E:/esp-idf-v5.0.1/components/log/log.c:278
  18.  (inlined by) s_log_level_get_and_unlock at E:/esp-idf-v5.0.1/components/log/log.c:154
  19.  
  20. 0x401832c2: esp_log_writev at E:/esp-idf-v5.0.1/components/log/log.c:195
  21.  
  22. 0x40097519: esp_log_write at E:/esp-idf-v5.0.1/components/log/log.c:210
  23.  
  24. 0x400d813d: app_main at E:/esp-idf-v5.0.1/workspace/MiTask/main/main.c:55 (discriminator 2)
  25.  
  26. 0x40182aef: main_task at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2)
  27.  
  28. 0x400952e5: vPortTaskWrapper at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154
  29.  
  30.  
  31.  
  32.  
  33.  
  34. ELF file SHA256: 2bf0f4b9330fea73
  35.  
  36. Rebooting...
  37. ets Jul 29 2019 12:21:46
  38.  
  39. rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  40. configsip: 0, SPIWP:0xee
  41. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  42. mode:DIO, clock div:2
  43. load:0x3fff0030,len:6944
  44. load:0x40078000,len:15500
  45. load:0x40080400,len:3844
  46. 0x40080400: _init at ??:?
  47.  
  48. entry 0x4008064c
  49. I (27) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
  50. I (27) boot: compile time 13:13:43
  51. I (27) boot: chip revision: v3.0
  52. I (31) boot.esp32: SPI Speed      : 40MHz
  53. I (35) boot.esp32: SPI Mode       : DIO
  54. I (40) boot.esp32: SPI Flash Size : 8MB
  55. I (45) boot: Enabling RNG early entropy source...
  56. I (50) boot: Partition Table:
  57. I (53) boot: ## Label            Usage          Type ST Offset   Length
  58. I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  59. I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  60. I (76) boot:  2 factory          factory app      00 00 00010000 00177000
  61. I (83) boot: End of partition table
  62. I (87) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=265c4h (157124) map
  63. I (153) esp_image: segment 1: paddr=000365ec vaddr=3ffbdb60 size=06744h ( 26436) load
  64. I (163) esp_image: segment 2: paddr=0003cd38 vaddr=40080000 size=032e0h ( 13024) load
  65. I (169) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=b47d8h (739288) map
  66. I (436) esp_image: segment 4: paddr=000f4800 vaddr=400832e0 size=1b658h (112216) load
  67. I (498) boot: Loaded app from partition at offset 0x10000
  68. I (498) boot: Disabling RNG early entropy source...
  69. I (510) cpu_start: Pro cpu up.
  70. I (510) cpu_start: Starting app cpu, entry point is 0x4008143c
  71. 0x4008143c: call_start_cpu1 at E:/esp-idf-v5.0.1/components/esp_system/port/cpu_start.c:142
  72.  
  73. I (497) cpu_start: App cpu up.
  74. I (526) cpu_start: Pro cpu start user code
  75. I (526) cpu_start: cpu freq: 160000000 Hz
  76. I (526) cpu_start: Application information:
  77. I (531) cpu_start: Project name:     app-template
  78. I (537) cpu_start: App version:      v5.0.1-dirty
  79. I (542) cpu_start: Compile time:     Apr 12 2023 13:12:56
  80. I (548) cpu_start: ELF file SHA256:  2bf0f4b9330fea73...
  81. I (554) cpu_start: ESP-IDF:          v5.0.1-dirty
  82. I (559) cpu_start: Min chip rev:     v0.0
  83. I (564) cpu_start: Max chip rev:     v3.99
  84. I (569) cpu_start: Chip rev:         v3.0
  85. I (574) heap_init: Initializing. RAM available for dynamic allocation:
  86. I (581) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  87. I (587) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  88. I (593) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  89. I (599) heap_init: At 3FFCB698 len 00014968 (82 KiB): DRAM
  90. I (605) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  91. I (612) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  92. I (618) heap_init: At 4009E938 len 000016C8 (5 KiB): IRAM
  93. I (626) spi_flash: detected chip: generic
  94. I (629) spi_flash: flash io: dio
  95. W (633) spi_flash: Detected size(16384k) larger than the size in the binary image header(8192k). Using the size in the binary image header.
  96. I (647) cpu_start: Starting scheduler on PRO CPU.
  97. I (0) cpu_start: Starting scheduler on APP CPU.
  98. I (657) MIBAIO_NVS: Checking NVS Flash
  99. I (707) MIBAIO_NVS: Attempting to open NVS partition
  100. I (707) MIBAIO_NVS: Flash Opened Successfully
  101. Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
  102.  
  103. Core  0 register dump:
  104. PC      : 0x40001277  PS      : 0x00060830  A0      : 0x801830ea  A1      : 0x3ffbbb80
  105. A2      : 0x00000000  A3      : 0x3ffb6d2d  A4      : 0x00000000  A5      : 0x00000000
  106. A6      : 0x00000001  A7      : 0x0000cdcd  A8      : 0x8009305b  A9      : 0x3ffbbb30
  107. A10     : 0x3ffc4510  A11     : 0x3ffc4510  A12     : 0x00060820  A13     : 0x00060823
  108. A14     : 0x00000001  A15     : 0x0000cdcd  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
  109. EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff
  110.  
  111.  
  112. Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 0x400952e5:0x3ffbbc80
  113. 0x401830e7: get_uncached_log_level at E:/esp-idf-v5.0.1/components/log/log.c:278
  114.  (inlined by) s_log_level_get_and_unlock at E:/esp-idf-v5.0.1/components/log/log.c:154
  115.  
  116. 0x401832c2: esp_log_writev at E:/esp-idf-v5.0.1/components/log/log.c:195
  117.  
  118. 0x40097519: esp_log_write at E:/esp-idf-v5.0.1/components/log/log.c:210
  119.  
  120. 0x400d813d: app_main at E:/esp-idf-v5.0.1/workspace/MiTask/main/main.c:55 (discriminator 2)
  121.  
  122. 0x40182aef: main_task at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2)
  123.  
  124. 0x400952e5: vPortTaskWrapper at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154
  125.  
  126.  
  127.  
  128.  
  129.  
  130. ELF file SHA256: 2bf0f4b9330fea73
  131.  
  132. Rebooting...
  133. ets Jul 29 2019 12:21:46
  134.  
  135. rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  136. configsip: 0, SPIWP:0xee
  137. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  138. mode:DIO, clock div:2
  139. load:0x3fff0030,len:6944
  140. load:0x40078000,len:15500
  141. load:0x40080400,len:3844
  142. 0x40080400: _init at ??:?
  143.  
  144. entry 0x4008064c
  145. I (27) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
  146. I (27) boot: compile time 13:13:43
  147. I (27) boot: chip revision: v3.0
  148. I (31) boot.esp32: SPI Speed      : 40MHz
  149. I (35) boot.esp32: SPI Mode       : DIO
  150. I (40) boot.esp32: SPI Flash Size : 8MB
  151. I (45) boot: Enabling RNG early entropy source...
  152. I (50) boot: Partition Table:
  153. I (53) boot: ## Label            Usage          Type ST Offset   Length
  154. I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  155. I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  156. I (76) boot:  2 factory          factory app      00 00 00010000 00177000
  157. I (83) boot: End of partition table
  158. I (87) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=265c4h (157124) map
  159. I (153) esp_image: segment 1: paddr=000365ec vaddr=3ffbdb60 size=06744h ( 26436) load
  160. I (163) esp_image: segment 2: paddr=0003cd38 vaddr=40080000 size=032e0h ( 13024) load
  161. I (169) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=b47d8h (739288) map
  162. I (436) esp_image: segment 4: paddr=000f4800 vaddr=400832e0 size=1b658h (112216) load
  163. I (498) boot: Loaded app from partition at offset 0x10000
  164. I (498) boot: Disabling RNG early entropy source...
  165. I (510) cpu_start: Pro cpu up.
  166. I (510) cpu_start: Starting app cpu, entry point is 0x4008143c
  167. 0x4008143c: call_start_cpu1 at E:/esp-idf-v5.0.1/components/esp_system/port/cpu_start.c:142
  168.  
  169. I (497) cpu_start: App cpu up.
  170. I (526) cpu_start: Pro cpu start user code
  171. I (526) cpu_start: cpu freq: 160000000 Hz
  172. I (526) cpu_start: Application information:
  173. I (531) cpu_start: Project name:     app-template
  174. I (537) cpu_start: App version:      v5.0.1-dirty
  175. I (542) cpu_start: Compile time:     Apr 12 2023 13:12:56
  176. I (548) cpu_start: ELF file SHA256:  2bf0f4b9330fea73...
  177. I (554) cpu_start: ESP-IDF:          v5.0.1-dirty
  178. I (559) cpu_start: Min chip rev:     v0.0
  179. I (564) cpu_start: Max chip rev:     v3.99
  180. I (569) cpu_start: Chip rev:         v3.0
  181. I (574) heap_init: Initializing. RAM available for dynamic allocation:
  182. I (581) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  183. I (587) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  184. I (593) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  185. I (599) heap_init: At 3FFCB698 len 00014968 (82 KiB): DRAM
  186. I (605) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  187. I (612) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  188. I (618) heap_init: At 4009E938 len 000016C8 (5 KiB): IRAM
  189. I (626) spi_flash: detected chip: generic
  190. I (629) spi_flash: flash io: dio
  191. W (633) spi_flash: Detected size(16384k) larger than the size in the binary image header(8192k). Using the size in the binary image header.
  192. I (647) cpu_start: Starting scheduler on PRO CPU.
  193. I (0) cpu_start: Starting scheduler on APP CPU.
  194. I (657) MIBAIO_NVS: Checking NVS Flash
  195. I (707) MIBAIO_NVS: Attempting to open NVS partition
  196. I (707) MIBAIO_NVS: Flash Opened Successfully
  197. Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
  198.  
  199. Core  0 register dump:
  200. PC      : 0x40001277  PS      : 0x00060830  A0      : 0x801830ea  A1      : 0x3ffbbb80
  201. A2      : 0x00000000  A3      : 0x3ffb6d2d  A4      : 0x00000000  A5      : 0x00000000
  202. A6      : 0x00000001  A7      : 0x0000cdcd  A8      : 0x8009305b  A9      : 0x3ffbbb30
  203. A10     : 0x3ffc4510  A11     : 0x3ffc4510  A12     : 0x00060820  A13     : 0x00060823
  204. A14     : 0x00000001  A15     : 0x0000cdcd  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
  205. EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff
  206.  
  207.  
  208. Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 0x400952e5:0x3ffbbc80
  209. 0x401830e7: get_uncached_log_level at E:/esp-idf-v5.0.1/components/log/log.c:278
  210.  (inlined by) s_log_level_get_and_unlock at E:/esp-idf-v5.0.1/components/log/log.c:154
  211.  
  212. 0x401832c2: esp_log_writev at E:/esp-idf-v5.0.1/components/log/log.c:195
  213.  
  214. 0x40097519: esp_log_write at E:/esp-idf-v5.0.1/components/log/log.c:210
  215.  
  216. 0x400d813d: app_main at E:/esp-idf-v5.0.1/workspace/MiTask/main/main.c:55 (discriminator 2)
  217.  
  218. 0x40182aef: main_task at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2)
  219.  
  220. 0x400952e5: vPortTaskWrapper at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154
  221.  
  222.  
  223.  
  224.  
  225.  
  226. ELF file SHA256: 2bf0f4b9330fea73
  227.  
  228. Rebooting...
  229. ets Jul 29 2019 12:21:46
  230.  
  231. rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  232. configsip: 0, SPIWP:0xee
  233. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  234. mode:DIO, clock div:2
  235. load:0x3fff0030,len:6944
  236. load:0x40078000,len:15500
  237. load:0x40080400,len:3844
  238. 0x40080400: _init at ??:?
  239.  
  240. entry 0x4008064c
  241. I (27) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
  242. I (27) boot: compile time 13:13:43
  243. I (27) boot: chip revision: v3.0
  244. I (31) boot.esp32: SPI Speed      : 40MHz
  245. I (35) boot.esp32: SPI Mode       : DIO
  246. I (40) boot.esp32: SPI Flash Size : 8MB
  247. I (45) boot: Enabling RNG early entropy source...
  248. I (50) boot: Partition Table:
  249. I (53) boot: ## Label            Usage          Type ST Offset   Length
  250. I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  251. I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  252. I (76) boot:  2 factory          factory app      00 00 00010000 00177000
  253. I (83) boot: End of partition table
  254. I (87) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=265c4h (157124) map
  255. I (153) esp_image: segment 1: paddr=000365ec vaddr=3ffbdb60 size=06744h ( 26436) load
  256. I (163) esp_image: segment 2: paddr=0003cd38 vaddr=40080000 size=032e0h ( 13024) load
  257. I (169) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=b47d8h (739288) map
  258. I (436) esp_image: segment 4: paddr=000f4800 vaddr=400832e0 size=1b658h (112216) load
  259. I (498) boot: Loaded app from partition at offset 0x10000
  260. I (498) boot: Disabling RNG early entropy source...
  261. I (510) cpu_start: Pro cpu up.
  262. I (510) cpu_start: Starting app cpu, entry point is 0x4008143c
  263. 0x4008143c: call_start_cpu1 at E:/esp-idf-v5.0.1/components/esp_system/port/cpu_start.c:142
  264.  
  265. I (497) cpu_start: App cpu up.
  266. I (526) cpu_start: Pro cpu start user code
  267. I (526) cpu_start: cpu freq: 160000000 Hz
  268. I (526) cpu_start: Application information:
  269. I (531) cpu_start: Project name:     app-template
  270. I (537) cpu_start: App version:      v5.0.1-dirty
  271. I (542) cpu_start: Compile time:     Apr 12 2023 13:12:56
  272. I (548) cpu_start: ELF file SHA256:  2bf0f4b9330fea73...
  273. I (554) cpu_start: ESP-IDF:          v5.0.1-dirty
  274. I (559) cpu_start: Min chip rev:     v0.0
  275. I (564) cpu_start: Max chip rev:     v3.99
  276. I (569) cpu_start: Chip rev:         v3.0
  277. I (574) heap_init: Initializing. RAM available for dynamic allocation:
  278. I (581) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  279. I (587) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  280. I (593) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  281. I (599) heap_init: At 3FFCB698 len 00014968 (82 KiB): DRAM
  282. I (605) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  283. I (612) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  284. I (618) heap_init: At 4009E938 len 000016C8 (5 KiB): IRAM
  285. I (626) spi_flash: detected chip: generic
  286. I (629) spi_flash: flash io: dio
  287. W (633) spi_flash: Detected size(16384k) larger than the size in the binary image header(8192k). Using the size in the binary image header.
  288. I (647) cpu_start: Starting scheduler on PRO CPU.
  289. I (0) cpu_start: Starting scheduler on APP CPU.
  290. I (657) MIBAIO_NVS: Checking NVS Flash
  291. I (707) MIBAIO_NVS: Attempting to open NVS partition
  292. I (707) MIBAIO_NVS: Flash Opened Successfully
  293. Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
  294.  
  295. Core  0 register dump:
  296. PC      : 0x40001277  PS      : 0x00060830  A0      : 0x801830ea  A1      : 0x3ffbbb80
  297. A2      : 0x00000000  A3      : 0x3ffb6d2d  A4      : 0x00000000  A5      : 0x00000000
  298. A6      : 0x00000001  A7      : 0x0000cdcd  A8      : 0x8009305b  A9      : 0x3ffbbb30
  299. A10     : 0x3ffc4510  A11     : 0x3ffc4510  A12     : 0x00060820  A13     : 0x00060823
  300. A14     : 0x00000001  A15     : 0x0000cdcd  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
  301. EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff
  302.  
  303.  
  304. Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 0x400952e5:0x3ffbbc80
  305. 0x401830e7: get_uncached_log_level at E:/esp-idf-v5.0.1/components/log/log.c:278
  306.  (inlined by) s_log_level_get_and_unlock at E:/esp-idf-v5.0.1/components/log/log.c:154
  307.  
  308. 0x401832c2: esp_log_writev at E:/esp-idf-v5.0.1/components/log/log.c:195
  309.  
  310. 0x40097519: esp_log_write at E:/esp-idf-v5.0.1/components/log/log.c:210
  311.  
  312. 0x400d813d: app_main at E:/esp-idf-v5.0.1/workspace/MiTask/main/main.c:55 (discriminator 2)
  313.  
  314. 0x40182aef: main_task at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2)
  315.  
  316. 0x400952e5: vPortTaskWrapper at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154
  317.  
  318.  
  319.  
  320.  
  321.  
  322. ELF file SHA256: 2bf0f4b9330fea73
  323.  
  324. Rebooting...
  325. ets Jul 29 2019 12:21:46
  326.  
  327. rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  328. configsip: 0, SPIWP:0xee
  329. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  330. mode:DIO, clock div:2
  331. load:0x3fff0030,len:6944
  332. load:0x40078000,len:15500
  333. load:0x40080400,len:3844
  334. 0x40080400: _init at ??:?
  335.  
  336. entry 0x4008064c
  337. I (27) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
  338. I (27) boot: compile time 13:13:43
  339. I (27) boot: chip revision: v3.0
  340. I (31) boot.esp32: SPI Speed      : 40MHz
  341. I (35) boot.esp32: SPI Mode       : DIO
  342. I (40) boot.esp32: SPI Flash Size : 8MB
  343. I (45) boot: Enabling RNG early entropy source...
  344. I (50) boot: Partition Table:
  345. I (53) boot: ## Label            Usage          Type ST Offset   Length
  346. I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  347. I (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  348. I (76) boot:  2 factory          factory app      00 00 00010000 00177000
  349. I (83) boot: End of partition table
  350. I (87) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=265c4h (157124) map
  351. I (153) esp_image: segment 1: paddr=000365ec vaddr=3ffbdb60 size=06744h ( 26436) load
  352. I (163) esp_image: segment 2: paddr=0003cd38 vaddr=40080000 size=032e0h ( 13024) load
  353. I (169) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=b47d8h (739288) map
  354. I (436) esp_image: segment 4: paddr=000f4800 vaddr=400832e0 size=1b658h (112216) load
  355. I (498) boot: Loaded app from partition at offset 0x10000
  356. I (498) boot: Disabling RNG early entropy source...
  357. I (510) cpu_start: Pro cpu up.
  358. I (510) cpu_start: Starting app cpu, entry point is 0x4008143c
  359. 0x4008143c: call_start_cpu1 at E:/esp-idf-v5.0.1/components/esp_system/port/cpu_start.c:142
  360.  
  361. I (497) cpu_start: App cpu up.
  362. I (526) cpu_start: Pro cpu start user code
  363. I (526) cpu_start: cpu freq: 160000000 Hz
  364. I (526) cpu_start: Application information:
  365. I (531) cpu_start: Project name:     app-template
  366. I (537) cpu_start: App version:      v5.0.1-dirty
  367. I (542) cpu_start: Compile time:     Apr 12 2023 13:12:56
  368. I (548) cpu_start: ELF file SHA256:  2bf0f4b9330fea73...
  369. I (554) cpu_start: ESP-IDF:          v5.0.1-dirty
  370. I (559) cpu_start: Min chip rev:     v0.0
  371. I (564) cpu_start: Max chip rev:     v3.99
  372. I (569) cpu_start: Chip rev:         v3.0
  373. I (574) heap_init: Initializing. RAM available for dynamic allocation:
  374. I (581) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  375. I (587) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  376. I (593) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  377. I (599) heap_init: At 3FFCB698 len 00014968 (82 KiB): DRAM
  378. I (605) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  379. I (612) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  380. I (618) heap_init: At 4009E938 len 000016C8 (5 KiB): IRAM
  381. I (626) spi_flash: detected chip: generic
  382. I (629) spi_flash: flash io: dio
  383. W (633) spi_flash: Detected size(16384k) larger than the size in the binary image header(8192k). Using the size in the binary image header.
  384. I (647) cpu_start: Starting scheduler on PRO CPU.
  385. I (0) cpu_start: Starting scheduler on APP CPU.
  386. I (657) MIBAIO_NVS: Checking NVS Flash
  387. I (707) MIBAIO_NVS: Attempting to open NVS partition
  388. I (707) MIBAIO_NVS: Flash Opened Successfully
  389. Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
  390.  
  391. Core  0 register dump:
  392. PC      : 0x40001277  PS      : 0x00060830  A0      : 0x801830ea  A1      : 0x3ffbbb80
  393. A2      : 0x00000000  A3      : 0x3ffb6d2d  A4      : 0x00000000  A5      : 0x00000000
  394. A6      : 0x00000001  A7      : 0x0000cdcd  A8      : 0x8009305b  A9      : 0x3ffbbb30
  395. A10     : 0x3ffc4510  A11     : 0x3ffc4510  A12     : 0x00060820  A13     : 0x00060823
  396. A14     : 0x00000001  A15     : 0x0000cdcd  SAR     : 0x00000019  EXCCAUSE: 0x0000001c
  397. EXCVADDR: 0x00000000  LBEG    : 0x4000c349  LEND    : 0x4000c36b  LCOUNT  : 0xffffffff
  398.  
  399.  
  400. Backtrace: 0x40001274:0x3ffbbb80 0x401830e7:0x3ffbbb90 0x401832c2:0x3ffbbbb0 0x40097519:0x3ffbbbe0 0x400d813d:0x3ffbbc30 0x40182aef:0x3ffbbc50 0x400952e5:0x3ffbbc80
  401. 0x401830e7: get_uncached_log_level at E:/esp-idf-v5.0.1/components/log/log.c:278
  402.  (inlined by) s_log_level_get_and_unlock at E:/esp-idf-v5.0.1/components/log/log.c:154
  403.  
  404. 0x401832c2: esp_log_writev at E:/esp-idf-v5.0.1/components/log/log.c:195
  405.  
  406. 0x40097519: esp_log_write at E:/esp-idf-v5.0.1/components/log/log.c:210
  407.  
  408. 0x400d813d: app_main at E:/esp-idf-v5.0.1/workspace/MiTask/main/main.c:55 (discriminator 2)
  409.  
  410. 0x40182aef: main_task at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/port_common.c:131 (discriminator 2)
  411.  
  412. 0x400952e5: vPortTaskWrapper at E:/esp-idf-v5.0.1/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:154
  413.  
  414.  
  415.  
  416.  
  417.  
  418. ELF file SHA256: 2bf0f4b9330fea73
  419.  
  420. Rebooting...
  421. ets Jul 29 2019 12:21:46
  422.  
  423. rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  424. configsip: 0, SPIWP:0xee
  425. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  426. mode:DIO, clock div:2
  427. load:0x3fff0030,len:6944
  428. load:0x40078000,len:15500
  429.  

a2800276
Posts: 75
Joined: Sat Jan 23, 2016 1:59 pm

Re: Rebooting Esp32 during running after return statement

Postby a2800276 » Wed Apr 12, 2023 10:47 am

Because of:
EXCVADDR: 0x00000000
it looks like you are referencing a NULL pointer. Maybe tell us what's at: line
main.c:55
(from the stack trace) or possibly post the whole main function.

It would be less unwieldy if you shorten the log to only contain a single reboot cycle. Also, it's hard for us to guess at your problem, it would be easier to help if you describe your problem.

MicroController
Posts: 1390
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Rebooting Esp32 during running after return statement

Postby MicroController » Thu Apr 13, 2023 10:04 pm

Maybe tell us what's at: line

main.c:55
My guess: ESP_LOGI( NULL, ... )

Who is online

Users browsing this forum: MSN [Bot], odelot and 74 guests