NVDS MAGIC FAILED issue with latest esp-idf
Posted: Wed Feb 22, 2017 11:19 pm
Hi all,
I am having trouble with using the ble GATT_Server and GATT_Client examples with the latest esp-idf (commits after 61c7bd3).
No matter what i try i always seem to get the error "NVDS MAGIC FAILED".
I have tried:
Erasing the esp32 flash using: "make erase_flash"
Cleaning the project then rebuilding: "make clean" then "make flash -j8" and also "make clean" then "make flash"
Deleting the repository then getting a fresh clone, doing "make menuconfig" then "make flash -j8"
Below is a dump of the uart output:
As soon as I go back to commit 61c7bd3 this error doesn't happen, all i have to do is go back to this commit, then do "make menuconfig", "make clean" then "make flash -j8" and the example starts up correctly.
Please let me know if there is any other information i can provide.
I am having trouble with using the ble GATT_Server and GATT_Client examples with the latest esp-idf (commits after 61c7bd3).
No matter what i try i always seem to get the error "NVDS MAGIC FAILED".
I have tried:
Erasing the esp32 flash using: "make erase_flash"
Cleaning the project then rebuilding: "make clean" then "make flash -j8" and also "make clean" then "make flash"
Deleting the repository then getting a fresh clone, doing "make menuconfig" then "make flash -j8"
Below is a dump of the uart output:
Code: Select all
rst:0x10 (RTCWDT_RTC_RESET),boot:0x16 (SPI_FAST_FLASH_BOOT)<\r><\n>
configsip: 0, SPIWP:0x00<\r><\n>
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<\r><\n>
mode:DIO, clock div:2<\r><\n>
load:0x3fff0008,len:8<\r><\n>
load:0x3fff0010,len:3488<\r><\n>
load:0x40078000,len:7636<\r><\n>
ho 0 tail 12 room 4<\r><\n>
load:0x40080000,len:252<\r><\n>
entry 0x40080034<\r><\n>
<27>[0;32mI (46) boot: ESP-IDF v2.0-rc1-114-gc057f06 2nd stage bootloader<27>[0m<\r><\n>
<27>[0;32mI (47) boot: compile time 12:14:13<27>[0m<\r><\n>
<27>[0;32mI (47) boot: Enabling RNG early entropy source...<27>[0m<\r><\n>
<27>[0;32mI (67) boot: SPI Speed : 40MHz<27>[0m<\r><\n>
<27>[0;32mI (80) boot: SPI Mode : DIO<27>[0m<\r><\n>
<27>[0;32mI (92) boot: SPI Flash Size : 4MB<27>[0m<\r><\n>
<27>[0;32mI (105) boot: Partition Table:<27>[0m<\r><\n>
<27>[0;32mI (116) boot: ## Label Usage Type ST Offset Length<27>[0m<\r><\n>
<27>[0;32mI (139) boot: 0 nvs WiFi data 01 02 00009000 00006000<27>[0m<\r><\n>
<27>[0;32mI (162) boot: 1 phy_init RF data 01 01 0000f000 00001000<27>[0m<\r><\n>
<27>[0;32mI (185) boot: 2 factory factory app 00 00 00010000 00100000<27>[0m<\r><\n>
<27>[0;32mI (208) boot: End of partition table<27>[0m<\r><\n>
<27>[0;32mI (221) boot: Disabling RNG early entropy source...<27>[0m<\r><\n>
<27>[0;32mI (238) boot: Loading app partition at offset 00010000<27>[0m<\r><\n>
<27>[0;32mI (1276) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) <27>[0m<\r><\n>
<27>[0;32mI (1277) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x2ad44 (175428) map<27>[0m<\r><\n>
<27>[0;32mI (1293) boot: segment 2: paddr=0x0004ad54 vaddr=0x3ffc0000 size=0x01dc0 ( 7616) load<27>[0m<\r><\n>
<27>[0;32mI (1323) boot: segment 3: paddr=0x0004cb1c vaddr=0x40080000 size=0x00400 ( 1024) load<27>[0m<\r><\n>
<27>[0;32mI (1347) boot: segment 4: paddr=0x0004cf24 vaddr=0x40080400 size=0x120f4 ( 73972) load<27>[0m<\r><\n>
<27>[0;32mI (1408) boot: segment 5: paddr=0x0005f020 vaddr=0x400c0000 size=0x00000 ( 0) load<27>[0m<\r><\n>
<27>[0;32mI (1409) boot: segment 6: paddr=0x0005f028 vaddr=0x00000000 size=0x00fe0 ( 4064) <27>[0m<\r><\n>
<27>[0;32mI (1431) boot: segment 7: paddr=0x00060010 vaddr=0x400d0018 size=0x62370 (402288) map<27>[0m<\r><\n>
<27>[0;32mI (1459) heap_alloc_caps: Initializing. RAM available for dynamic allocation:<27>[0m<\r><\n>
<27>[0;32mI (1481) heap_alloc_caps: At 3FFCB880 len 00014780 (81 KiB): DRAM<27>[0m<\r><\n>
<27>[0;32mI (1502) heap_alloc_caps: At 3FFE8000 len 00018000 (96 KiB): D/IRAM<27>[0m<\r><\n>
<27>[0;32mI (1524) heap_alloc_caps: At 400924F4 len 0000DB0C (54 KiB): IRAM<27>[0m<\r><\n>
<27>[0;32mI (1544) cpu_start: Pro cpu up.<27>[0m<\r><\n>
<27>[0;32mI (1556) cpu_start: Starting app cpu, entry point is 0x40080b04<27>[0m<\r><\n>
<27>[0;32mI (0) cpu_start: App cpu up.<27>[0m<\r><\n>
<27>[0;32mI (1588) cpu_start: Pro cpu start user code<27>[0m<\r><\n>
<27>[0;32mI (1649) cpu_start: Starting scheduler on PRO CPU.<27>[0m<\r><\n>
BTDM CONTROLLER VERSION: 010101<\r><\n>
btip start<\r><\n>
copy .data from 4000d890 to 3ffae6I , lencpu_018rt<\r> Set .bsg schedrom 3ffb8PP PU.<27>[0m<\r>f70, len 00007f70<\r><\n>
BTDM ROM VERSION 0101<\r><\n>
BD_ADDR: 24:0A:C4:04:79:DA<\r><\n>
NVDS MAGIC FAILED<\r><\n>
RF Init OK with coex<\r><\n>
Please let me know if there is any other information i can provide.