error loading PHY init data
Posted: Wed Mar 15, 2017 1:45 pm
HI,
I've been facing some problems with the NVS recently. I've been trying to implementa a Flash log to save some required events. Somehow I have reached a point where the NVS partition was full so the app was stucked and somehow nvs partition end corrupted. So, I erased the full flash. From then, I'm getting errors similar to this one:
(1102) cpu_start: Pro cpu up.
I (1103) cpu_start: Single core mode
I (1104) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (1117) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (1137) heap_alloc_caps: At 3FFC18C0 len 0001E740 (121 KiB): DRAM
I (1158) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1180) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1201) heap_alloc_caps: At 4009B804 len 000047FC (17 KiB): IRAM
check b=0x3ffae2ac size=7496 ok
check b=0x3ffafff4 size=0 ok
check b=0x3ffc18cc size=124712 ok
check b=0x3ffdfff4 size=0 ok
check b=0x3ffe044c size=15272 ok
check b=0x3ffe3ff4 size=0 ok
check b=0x3ffe435c size=113816 ok
check b=0x3ffffff4 size=0 ok
check b=0x4009b810 size=18404 ok
I (1300) cpu_start: Pro cpu start user code
V (1354) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1355) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1393) intr_alloc: Connected src 56 to int 2 (cpu 0)
V (1443) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1500) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1574) intr_alloc: Connected src 16 to int 3 (cpu 0)
I (1622) cpu_start: Starting scheduler on PRO CPU.
D (1677) nvs: nvs_flash_init_custom start=9 count=6
I (1689) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1691) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1700) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1709) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1719) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1728) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0
I (1738) gpio: GPIO[32]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0
I (1747) gpio: GPIO[33]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0
I (1757) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
I (1766) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
V (1775) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1775) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1775) intr_alloc: Connected src 22 to int 12 (cpu 0)
D (1795) nvs: nvs_open user_params 1
...
I (2046) emac: mac version 1137a
V (2049) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2063) intr_alloc: Connected src 38 to int 13 (cpu 0)
D (2069) nvs: nvs_open misc 1
D (2075) nvs: nvs_get_str_or_blob log
I (2079) wifi: wifi firmware version: 0b5b6e7
I (2083) wifi: config NVS flash: enabled
I (2087) wifi: config nano formating: disabled
D (2091) nvs: nvs_open nvs.net80211 1
D (2099) nvs: nvs_get opmode 1
D (2102) nvs: nvs_get country 1
D (2105) nvs: nvs_get_str_or_blob sta.ssid
D (2109) nvs: nvs_get_str_or_blob sta.mac
D (2113) nvs: nvs_get sta.authmode 1
D (2117) nvs: nvs_get_str_or_blob sta.pswd
D (2121) nvs: nvs_get_str_or_blob sta.pmk
D (2125) nvs: nvs_get sta.chan 1
D (2129) nvs: nvs_get auto.conn 1
D (2132) nvs: nvs_get bssid.set 1
D (2135) nvs: nvs_get_str_or_blob sta.bssid
D (2140) nvs: nvs_get sta.phym 1
D (2143) nvs: nvs_get sta.phybw 1
D (2146) nvs: nvs_get_str_or_blob sta.apsw
D (2150) nvs: nvs_get_str_or_blob sta.apinfo
D (2155) nvs: nvs_get_str_or_blob ap.ssid
D (2159) nvs: nvs_get_str_or_blob ap.mac
D (2163) nvs: nvs_get_str_or_blob ap.passwd
D (2167) nvs: nvs_get_str_or_blob ap.pmk
D (2171) nvs: nvs_get ap.chan 1
D (2174) nvs: nvs_get ap.authmode 1
D (2178) nvs: nvs_get ap.hidden 1
D (2181) nvs: nvs_get ap.max.conn 1
D (2185) nvs: nvs_get bcn.interval 2
D (2188) nvs: nvs_get ap.phym 1
D (2192) nvs: nvs_get ap.phybw 1
D (2195) nvs: nvs_get ap.sndchan 1
D (2199) nvs: nvs_set_blob sta.mac 6
D (2203) nvs: nvs_set_blob ap.mac 6
I (2206) wifi: Init dynamic tx buffer num: 32
I (2210) wifi: wifi driver task: 3ffca360, prio:23, stack:3584
I (2215) wifi: Init static rx buffer num: 10
I (2219) wifi: Init dynamic rx buffer num: 0
I (2223) wifi: Init rx ampdu len mblock:7
I (2227) wifi: Init lldesc rx ampdu entry mblock:4
I (2232) wifi: wifi power manager task: 0x3ffcf8ac prio: 21 stack: 2560
I (2439) uart: queue free spaces: 10
V (2439) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2439) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2439) intr_alloc: Connected src 36 to int 17 (cpu 0)
V (2570) intr_alloc: esp_intr_free: Disabling int, killing handler
I (2671) uart: queue free spaces: 10
V (2671) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2671) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2671) intr_alloc: Connected src 36 to int 17 (cpu 0)
...
E (3911) modbusd: Emergency function failed
D (3916) nvs: nvs_set_blob log_slot_0b 143
D (3920) nvs: nvs_get priv_next_log 2
D (3923) nvs: nvs_set priv_next_log 2 12
V (4055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (4055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (4058) intr_alloc: Connected src 50 to int 18 (cpu 0)
I (5927) emac: emac start !!!
I (5927) emac: emac reseting ....
I (5927) emac: emac reset done
...
I (5929) emac: emac start success !!!
V (5932) event: enter default callback
V (5939) event: exit default callback
I (10944) wifi: wifi timer task: 3ffd5b2c, prio:22, stack:3584
D (10944) phy_init: loading PHY init data from application binary
D (10945) nvs: nvs_open phy 0
D (10952) nvs: nvs_get cal_version 4
V (10955) phy_init: phy_get_rf_cal_version: 329
D (10960) nvs: nvs_get_str_or_blob cal_mac
D (10964) nvs: nvs_get_str_or_blob cal_data
D (10969) nvs: nvs_close 6
V (10971) phy_init: register_chipv7_phy, init_data=0x3f417968, cal_data=0x3ffd5cb8, mode=0
abort() was called at PC 0x40081841
Guru Meditation Error: Core 0 panic'ed (abort)
I've been trying to modify the PHY configuration in menuconfig ( I think I've tried all available combinations) but I'm not able to solve this one.
I've been facing some problems with the NVS recently. I've been trying to implementa a Flash log to save some required events. Somehow I have reached a point where the NVS partition was full so the app was stucked and somehow nvs partition end corrupted. So, I erased the full flash. From then, I'm getting errors similar to this one:
(1102) cpu_start: Pro cpu up.
I (1103) cpu_start: Single core mode
I (1104) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (1117) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (1137) heap_alloc_caps: At 3FFC18C0 len 0001E740 (121 KiB): DRAM
I (1158) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1180) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1201) heap_alloc_caps: At 4009B804 len 000047FC (17 KiB): IRAM
check b=0x3ffae2ac size=7496 ok
check b=0x3ffafff4 size=0 ok
check b=0x3ffc18cc size=124712 ok
check b=0x3ffdfff4 size=0 ok
check b=0x3ffe044c size=15272 ok
check b=0x3ffe3ff4 size=0 ok
check b=0x3ffe435c size=113816 ok
check b=0x3ffffff4 size=0 ok
check b=0x4009b810 size=18404 ok
I (1300) cpu_start: Pro cpu start user code
V (1354) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1355) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1393) intr_alloc: Connected src 56 to int 2 (cpu 0)
V (1443) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1500) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1574) intr_alloc: Connected src 16 to int 3 (cpu 0)
I (1622) cpu_start: Starting scheduler on PRO CPU.
D (1677) nvs: nvs_flash_init_custom start=9 count=6
I (1689) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1691) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1700) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1709) gpio: GPIO[14]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1719) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1728) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0
I (1738) gpio: GPIO[32]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0
I (1747) gpio: GPIO[33]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0
I (1757) gpio: GPIO[36]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
I (1766) gpio: GPIO[39]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
V (1775) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (1775) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (1775) intr_alloc: Connected src 22 to int 12 (cpu 0)
D (1795) nvs: nvs_open user_params 1
...
I (2046) emac: mac version 1137a
V (2049) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2063) intr_alloc: Connected src 38 to int 13 (cpu 0)
D (2069) nvs: nvs_open misc 1
D (2075) nvs: nvs_get_str_or_blob log
I (2079) wifi: wifi firmware version: 0b5b6e7
I (2083) wifi: config NVS flash: enabled
I (2087) wifi: config nano formating: disabled
D (2091) nvs: nvs_open nvs.net80211 1
D (2099) nvs: nvs_get opmode 1
D (2102) nvs: nvs_get country 1
D (2105) nvs: nvs_get_str_or_blob sta.ssid
D (2109) nvs: nvs_get_str_or_blob sta.mac
D (2113) nvs: nvs_get sta.authmode 1
D (2117) nvs: nvs_get_str_or_blob sta.pswd
D (2121) nvs: nvs_get_str_or_blob sta.pmk
D (2125) nvs: nvs_get sta.chan 1
D (2129) nvs: nvs_get auto.conn 1
D (2132) nvs: nvs_get bssid.set 1
D (2135) nvs: nvs_get_str_or_blob sta.bssid
D (2140) nvs: nvs_get sta.phym 1
D (2143) nvs: nvs_get sta.phybw 1
D (2146) nvs: nvs_get_str_or_blob sta.apsw
D (2150) nvs: nvs_get_str_or_blob sta.apinfo
D (2155) nvs: nvs_get_str_or_blob ap.ssid
D (2159) nvs: nvs_get_str_or_blob ap.mac
D (2163) nvs: nvs_get_str_or_blob ap.passwd
D (2167) nvs: nvs_get_str_or_blob ap.pmk
D (2171) nvs: nvs_get ap.chan 1
D (2174) nvs: nvs_get ap.authmode 1
D (2178) nvs: nvs_get ap.hidden 1
D (2181) nvs: nvs_get ap.max.conn 1
D (2185) nvs: nvs_get bcn.interval 2
D (2188) nvs: nvs_get ap.phym 1
D (2192) nvs: nvs_get ap.phybw 1
D (2195) nvs: nvs_get ap.sndchan 1
D (2199) nvs: nvs_set_blob sta.mac 6
D (2203) nvs: nvs_set_blob ap.mac 6
I (2206) wifi: Init dynamic tx buffer num: 32
I (2210) wifi: wifi driver task: 3ffca360, prio:23, stack:3584
I (2215) wifi: Init static rx buffer num: 10
I (2219) wifi: Init dynamic rx buffer num: 0
I (2223) wifi: Init rx ampdu len mblock:7
I (2227) wifi: Init lldesc rx ampdu entry mblock:4
I (2232) wifi: wifi power manager task: 0x3ffcf8ac prio: 21 stack: 2560
I (2439) uart: queue free spaces: 10
V (2439) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2439) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2439) intr_alloc: Connected src 36 to int 17 (cpu 0)
V (2570) intr_alloc: esp_intr_free: Disabling int, killing handler
I (2671) uart: queue free spaces: 10
V (2671) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (2671) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (2671) intr_alloc: Connected src 36 to int 17 (cpu 0)
...
E (3911) modbusd: Emergency function failed
D (3916) nvs: nvs_set_blob log_slot_0b 143
D (3920) nvs: nvs_get priv_next_log 2
D (3923) nvs: nvs_set priv_next_log 2 12
V (4055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): checking args
V (4055) intr_alloc: esp_intr_alloc_intrstatus (cpu 0): Args okay. Resulting flags 0xE
D (4058) intr_alloc: Connected src 50 to int 18 (cpu 0)
I (5927) emac: emac start !!!
I (5927) emac: emac reseting ....
I (5927) emac: emac reset done
...
I (5929) emac: emac start success !!!
V (5932) event: enter default callback
V (5939) event: exit default callback
I (10944) wifi: wifi timer task: 3ffd5b2c, prio:22, stack:3584
D (10944) phy_init: loading PHY init data from application binary
D (10945) nvs: nvs_open phy 0
D (10952) nvs: nvs_get cal_version 4
V (10955) phy_init: phy_get_rf_cal_version: 329
D (10960) nvs: nvs_get_str_or_blob cal_mac
D (10964) nvs: nvs_get_str_or_blob cal_data
D (10969) nvs: nvs_close 6
V (10971) phy_init: register_chipv7_phy, init_data=0x3f417968, cal_data=0x3ffd5cb8, mode=0
abort() was called at PC 0x40081841
Guru Meditation Error: Core 0 panic'ed (abort)
I've been trying to modify the PHY configuration in menuconfig ( I think I've tried all available combinations) but I'm not able to solve this one.