ESP32 & LoRaWAN

Amir_El
Posts: 17
Joined: Thu Nov 19, 2020 3:55 pm

ESP32 & LoRaWAN

Postby Amir_El » Tue Jun 22, 2021 2:32 pm

Hello Everyone, i'm using the esp32-ttn library that is based on the LMIChttps://github.com/manuelbl/ttn-esp32/b ... n/main.cpp. i saw that it works for other people but for me, I get a
memory error which I would be grateful if anyone could help me to understand what is the reason for it and how to solve it.

Thank you in advances

Code: Select all

Executing "C:\ESP\tools\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe c:\ESP\esp-idf\tools/idf_monitor.py -p COM5 -b 115200 
--toolchain-prefix xtensa-esp32-elf- c:\esp\firmware\larya_v1\build\Larya_V1.elf -m 'C:\ESP\tools\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe' 'c:\ESP\esp-idf\tools\idf.py' '-p' 'COM5'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM5 instead...
--- idf_monitor on \\.\COM5 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7012
load:0x40078000,len:13212
load:0x40080400,len:4568
0x40080400: _init at ??:?

entry 0x400806f4
I (29) boot: ESP-IDF v4.2 2nd stage bootloader
I (29) boot: compile time 13:26:47
I (29) boot: chip revision: 1
I (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (39) boot.esp32: SPI Speed      : 40MHz
I (43) boot.esp32: SPI Mode       : DIO
I (48) boot.esp32: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (58) boot: Partition Table:
I (61) boot: ## Label            Usage          Type ST Offset   Length
I (69) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (76) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 00100000
I (91) boot: End of partition table
I (95) boot_comm: chip revision: 1, min. application chip revision: 0
I (102) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x094ac ( 38060) map
I (126) esp_image: segment 1: paddr=0x000194d4 vaddr=0x3ffb0000 size=0x021cc (  8652) load
I (130) esp_image: segment 2: paddr=0x0001b6a8 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at C:/ESP/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (133) esp_image: segment 3: paddr=0x0001bab4 vaddr=0x40080404 size=0x04564 ( 17764) load
I (149) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x1ed34 (126260) map
0x400d0020: _stext at ??:?

I (198) esp_image: segment 5: paddr=0x0003ed5c vaddr=0x40084968 size=0x07798 ( 30616) load
0x40084968: lock_status_fetch at C:/ESP/esp-idf/components/driver/spi_bus_lock.c:253
 (inlined by) bg_exit_core at C:/ESP/esp-idf/components/driver/spi_bus_lock.c:502
 (inlined by) spi_bus_lock_bg_exit at C:/ESP/esp-idf/components/driver/spi_bus_lock.c:724

I (219) boot: Loaded app from partition at offset 0x10000
I (219) boot: Disabling RNG early entropy source...
I (219) cpu_start: Pro cpu up.
I (223) cpu_start: Application information:
I (228) cpu_start: Project name:     Larya_V1
I (233) cpu_start: App version:      1
I (237) cpu_start: Compile time:     Jun 22 2021 15:54:22
I (243) cpu_start: ELF file SHA256:  c6b9210eb31dc66e...
I (249) cpu_start: ESP-IDF:          v4.2
I (254) cpu_start: Starting app cpu, entry point is 0x400817c0
0x400817c0: call_start_cpu1 at C:/ESP/esp-idf/components/esp32/cpu_start.c:287

I (0) cpu_start: App cpu up.
I (265) heap_init: Initializing. RAM available for dynamic allocation:
I (271) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (277) heap_init: At 3FFB2F00 len 0002D100 (180 KiB): DRAM
I (284) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (290) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (296) heap_init: At 4008C100 len 00013F00 (79 KiB): IRAM
I (303) cpu_start: Pro cpu start user code
I (321) spi_flash: detected chip: generic
I (322) spi_flash: flash io: dio
I (322) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
assertion "false && "item should have been present in cache"" failed: file "C:/ESP/esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp", line 102, function: void nvs::HashList::erase(size_t, bool)

abort() was called at PC 0x400df26f on core 0
0x400df26f: __assert_func at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:62 (discriminator 8)


Backtrace:0x40085207:0x3ffb4a30 0x400858a5:0x3ffb4a50 0x40089362:0x3ffb4a70 0x400df26f:0x3ffb4ae0 0x400da286:0x3ffb4b10 0x400da90f:0x3ffb4b30 0x400db2f2:0x3ffb4b70 0x400db496:0x3ffb4bf0 0x400db814:0x3ffb4c30 0x400d92b0:0x3ffb4ca0 0x400da021:0x3ffb4d00 0x400da08f:0x3ffb4d20 0x400d8e6e:0x3ffb4d40 0x400d8e8e:0x3ffb4d60 0x400d349e:0x3ffb4d80 0x400d1fce:0x3ffb4dd0 0x400858ad:0x3ffb4e00
0x40085207: panic_abort at C:/ESP/esp-idf/components/esp_system/panic.c:330

0x400858a5: esp_system_abort at C:/ESP/esp-idf/components/esp_system/system_api.c:106

0x40089362: abort at C:/ESP/esp-idf/components/newlib/abort.c:46

0x400df26f: __assert_func at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:62 (discriminator 8)

0x400da286: nvs::HashList::erase(unsigned int, bool) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp:102

0x400da90f: nvs::Page::eraseEntryAndSpan(unsigned int) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_page.cpp:409

0x400db2f2: nvs::Page::mLoadEntryTable() at C:/ESP/esp-idf/components/nvs_flash/src/nvs_page.cpp:679

0x400db496: nvs::Page::load(unsigned int) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_page.cpp:89

0x400db814: nvs::PageManager::load(unsigned int, unsigned int) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_pagemanager.cpp:29

0x400d92b0: nvs::Storage::init(unsigned int, unsigned int) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_storage.cpp:93

0x400da021: nvs::NVSPartitionManager::init_custom(char const*, unsigned int, unsigned int) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_partition_manager.cpp:67

0x400da08f: nvs::NVSPartitionManager::init_partition(char const*) at C:/ESP/esp-idf/components/nvs_flash/src/nvs_partition_manager.cpp:48

0x400d8e6e: nvs_flash_init_partition at C:/ESP/esp-idf/components/nvs_flash/src/nvs_api.cpp:150

0x400d8e8e: nvs_flash_init at C:/ESP/esp-idf/components/nvs_flash/src/nvs_api.cpp:155

0x400d349e: app_main at C:\ESP\Firmware\Larya_V1\build/../main/main.cpp:77

0x400d1fce: main_task at C:/ESP/esp-idf/components/esp32/cpu_start.c:600 (discriminator 2)

0x400858ad: vPortTaskWrapper at C:/ESP/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: c6b9210eb31dc66e

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7012
load:0x40078000,len:13212
load:0x40080400,len:4568
0x40080400: _init at ??:?

entry 0x400806f4

Who is online

Users browsing this forum: No registered users and 170 guests