{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/1774","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/1774/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/1774/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/1774/events","html_url":"https://github.com/espressif/esp-idf/issues/1774","id":308554487,"number":1774,"title":"[TW#19695] Smart config example fails to connect to wlan","user":{"login":"eflukx","id":996191,"avatar_url":"https://avatars1.githubusercontent.com/u/996191?v=4","gravatar_id":"","url":"https://api.github.com/users/eflukx","html_url":"https://github.com/eflukx","followers_url":"https://api.github.com/users/eflukx/followers","following_url":"https://api.github.com/users/eflukx/following{/other_user}","gists_url":"https://api.github.com/users/eflukx/gists{/gist_id}","starred_url":"https://api.github.com/users/eflukx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eflukx/subscriptions","organizations_url":"https://api.github.com/users/eflukx/orgs","repos_url":"https://api.github.com/users/eflukx/repos","events_url":"https://api.github.com/users/eflukx/events{/privacy}","received_events_url":"https://api.github.com/users/eflukx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-03-26T12:38:39Z","updated_at":"2018-04-07T12:54:12Z","closed_at":"2018-04-03T06:53:56Z","author_association":"NONE","body":"The `smart_config` example (using esp-idf commit 8478823) runs and install fine. The correct SSID and PASSWORD is received, but after that connecting to wlan seems to fail with output below.\r\nI tried it on two ESP32 modules, both have same result. (The `simple_wifi` example works fine on both modules.)\r\n\r\n```\r\nI (305) cpu_start: Pro cpu up.\r\nI (308) cpu_start: Starting app cpu, entry point is 0x40080f74\r\n0x40080f74: call_start_cpu1 at /home/eflukx/code/esp32/esp-idf/components/esp32/./cpu_start.c:225\r\n\r\nI (0) cpu_start: App cpu up.\r\nI (319) heap_init: Initializing. RAM available for dynamic allocation:\r\nI (326) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM\r\nI (332) heap_init: At 3FFB9090 len 00026F70 (155 KiB): DRAM\r\nI (338) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM\r\nI (344) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM\r\nI (351) heap_init: At 4008E858 len 000117A8 (69 KiB): IRAM\r\nI (357) cpu_start: Pro cpu start user code\r\nI (151) cpu_start: Starting scheduler on PRO CPU.\r\nI (0) cpu_start: Starting scheduler on APP CPU.\r\nI (194) wifi: wifi firmware version: c202b34\r\nI (194) wifi: config NVS flash: enabled\r\nI (194) wifi: config nano formating: disabled\r\nI (194) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE\r\nI (204) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE\r\nI (224) wifi: Init dynamic tx buffer num: 32\r\nI (224) wifi: Init data frame dynamic rx buffer num: 32\r\nI (224) wifi: Init management frame dynamic rx buffer num: 32\r\nI (224) wifi: Init static tx buffer num: 16\r\nI (234) wifi: wifi driver task: 3ffc7018, prio:23, stack:4096\r\nI (234) wifi: Init static rx buffer num: 10\r\nI (244) wifi: Init dynamic rx buffer num: 32\r\nI (244) wifi: wifi power manager task: 0x3ffcbc58 prio: 21 stack: 2560\r\nI (314) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0\r\nI (314) wifi: mode : sta (24:0a:c4:8d:e6:58)\r\nI (364) smartconfig: SC version: V2.7.1\r\nI (5184) wifi: ic_enable_sniffer\r\nI (5184) sc: SC_STATUS_FINDING_CHANNEL\r\nI (6294) smartconfig: TYPE: ESPTOUCH\r\nI (6294) smartconfig: T|AP MAC: d8:50:e6:88:88:88\r\nI (6294) sc: SC_STATUS_GETTING_SSID_PSWD\r\nI (7944) smartconfig: T|pswd: m************t\r\nI (7944) smartconfig: T|ssid: i********Q\r\nI (7944) smartconfig: T|bssid: d8:50:e6:88:88:88\r\nI (7944) wifi: ic_disable_sniffer\r\nI (7944) sc: SC_STATUS_LINK\r\nI (7954) sc: SSID:i********Q\r\nI (7954) sc: PASSWORD:m************t\r\nW (7974) wifi: lmac stop, discard packet\r\nI (8094) wifi: n:4 0, o:1 0, ap:255 255, sta:4 0, prof:1\r\nI (8744) wifi: state: init -> auth (b0)\r\nW (8754) wifi: lmac stop, discard packet\r\nI (9754) wifi: state: auth -> init (2)\r\nI (9754) wifi: n:4 0, o:4 0, ap:255 255, sta:4 0, prof:1\r\nW (9754) wifi: lmac stop, discard packet\r\nI (9874) wifi: n:4 0, o:4 0, ap:255 255, sta:4 0, prof:1\r\nI (9874) wifi: state: init -> auth (b0)\r\nW (9874) wifi: lmac stop, discard packet\r\nI (10874) wifi: state: auth -> init (2)\r\nI (10874) wifi: n:4 0, o:4 0, ap:255 255, sta:4 0, prof:1\r\nW (10874) wifi: lmac stop, discard packet\r\nI (10994) wifi: n:4 0, o:4 0, ap:255 255, sta:4 0, prof:1\r\nI (10994) wifi: state: init -> auth (b0)\r\nW (10994) wifi: lmac stop, discard packet\r\n\r\n**snip** (--etc etc etc--)\r\n```"},"comment":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/comments/379467297","html_url":"https://github.com/espressif/esp-idf/issues/1774#issuecomment-379467297","issue_url":"https://api.github.com/repos/espressif/esp-idf/issues/1774","id":379467297,"user":{"login":"perll","id":12204597,"avatar_url":"https://avatars2.githubusercontent.com/u/12204597?v=4","gravatar_id":"","url":"https://api.github.com/users/perll","html_url":"https://github.com/perll","followers_url":"https://api.github.com/users/perll/followers","following_url":"https://api.github.com/users/perll/following{/other_user}","gists_url":"https://api.github.com/users/perll/gists{/gist_id}","starred_url":"https://api.github.com/users/perll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perll/subscriptions","organizations_url":"https://api.github.com/users/perll/orgs","repos_url":"https://api.github.com/users/perll/repos","events_url":"https://api.github.com/users/perll/events{/privacy}","received_events_url":"https://api.github.com/users/perll/received_events","type":"User","site_admin":false},"created_at":"2018-04-07T12:54:12Z","updated_at":"2018-04-07T12:54:12Z","author_association":"NONE","body":"Sir,\n\ngood news (almost there!)\n\nTests results from the last 9h:\n\n*Scenario*:\n4 esp wroom32 running,  at same time,  for 9 hours.\nOnly 1 processor stopped.\n***\n\n*It was connected to a 5.1V 850mA source.*\n\nEach processor, sending 12 (one beacon mac address) bytes by HTTP_REQUEST,\nplus HTTP header.\n\n*** Reason :\n\nHTTP/1.1 200 OK\n\nate: Sat, 07 Apr 2018 12:I (99163i4:34 )  MATTC_DEMORT:\n@initialise_wifi has been detected.sk\n\nBacktrace: 0x40090050:0x3ffd4710 0x40090227:0x3ffd4730\n0x40090240:0x3ffd4750 0x4008d93b:0x3ffd4770 0x4008f184:0x3ffd4790\n0x4008f13a:0x2820456d\n0x40090050: invoke_abort at\n/home/raimundo/esp/esp-idf/components/esp32/./panic.c:648\n\n0x40090227: abort at\n/home/raimundo/esp/esp-idf/components/esp32/./panic.c:648\n\n0x40090240: *vApplicationStackOverflowHook* at\n/home/raimundo/esp/esp-idf/components/esp32/./panic.c:648\n\n0x4008d93b: *vTaskSwitchContext* at\n/home/raimundo/esp/esp-idf/components/freertos/./tasks.c:3529\n\n0x4008f184: _frxt_dispatch at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:406\n\n0x4008f13a: _frxt_int_exit at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:206\n\n\n*Rebooting*...\nets Jun  8 2016 00:22:57\n\nrst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)\nconfigsip: 0, SPIWP:0xee\nclk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00\nmode:DIO, clock div:2\nload:0x3fff0018,len:4\nload:0x3fff001c,len:5664\nho 0 tail 12 room 4\nload:0x40078000,len:0\nload:0x40078000,len:13912\nentry 0x40078fd8\nI (30) boot: ESP-IDF v3.1-dev-601-gda27816-dirty 2nd stage bootloader\nI (30) boot: compile time 00:29:53\nI (32) boot: Enabling RNG early entropy source...\nI (37) boot: SPI Speed      : 40MHz\nI (41) boot: SPI Mode       : DIO\nI (45) boot: SPI Flash Size : 4MB\nI (49) boot: Partition Table:\nI (53) boot: ## Label            Usage          Type ST Offset   Length\nI (60) boot:  0 nvs              WiFi data        01 02 00009000 00006000\nI (68) boot:  1 phy_init         RF data          01 01 0000f000 00001000\nI (75) boot:  2 factory          factory app      00 00 00010000 00180000\nI (83) boot: End of partition table\nI (87) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x35dec\n(220652) map\nI (172) esp_image: segment 1: paddr=0x00045e14 vaddr=0x3ffc0000\nsize=0x03548 ( 13640) load\nI (178) esp_image: segment 2: paddr=0x00049364 vaddr=0x40080000\nsize=0x00400 (  1024) load\n0x40080000: _iram_start at\n/home/raimundo/esp/esp-idf/components/freertos/./xtensa_vectors.S:1685\n\nI (179) esp_image: segment 3: paddr=0x0004976c vaddr=0x40080400\nsize=0x068a4 ( 26788) load\nI (199) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018\nsize=0xae7d4 (714708) map\n0x400d0018: _stext at ??:?\n\nI (447) esp_image: segment 5: paddr=0x000fe7f4 vaddr=0x40086ca4\nsize=0x0bba8 ( 48040) load\n0x40086ca4: r_rwble_isr at ??:?\n\nI (467) esp_image: segment 6: paddr=0x0010a3a4 vaddr=0x400c0000\nsize=0x00000 (     0) load\nI (478) boot: Loaded app from partition at offset 0x10000\nI (478) boot: Disabling RNG early entropy source...\nI (479) cpu_start: Pro cpu up.\nI (483) cpu_start: Starting app cpu, entry point is 0x40080f94\n0x40080f94: call_start_cpu1 at\n/home/raimundo/esp/esp-idf/components/esp32/./cpu_start.c:225\n\nI (474) cpu_start: App cpu up.\nI (493) heap_init: Initializing. RAM available for dynamic allocation:\nI (500) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM\nI (506) heap_init: At 3FFD0788 len 0000F878 (62 KiB): DRAM\nI (512) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM\nI (519) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM\nI (525) heap_init: At 4009284C len 0000D7B4 (53 KiB): IRAM\nI (531) cpu_start: Pro cpu start user code\nI (214) cpu_start: Starting scheduler on PRO CPU.\nI (0) cpu_start: Starting scheduler on APP CPU.\nI (263) BTDM_INIT: BT controller compile version [8c18895]\n\nI (263) system_api: Base MAC address is not set, read default base MAC\naddress from BLK0 of EFUSE\nI (343) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0\nI (613) GATTC_DEMO: REG_EVT\nI (613) GATTC_DEMO: scan start success\nI (613) wifi: wifi firmware version: c202b34\nI (613) wifi: config NVS flash: enabled\nI (613) wifi: config nano formating: disabled\nI (613) system_api: Base MAC address is not set, read default base MAC\naddress from BLK0 of EFUSE\nI (623) system_api: Base MAC address is not set, read default base MAC\naddress from BLK0 of EFUSE\nI (653) wifi: Init dynamic tx buffer num: 32\nI (653) wifi: Init data frame dynamic rx buffer num: 32\nI (653) wifi: Init management frame dynamic rx buffer num: 32\nI (663) wifi: wifi driver task: 3ffd2a8c, prio:23, stack:4096\nI (663) wifi: Init static rx buffer num: 10\nI (663) wifi: Init dynamic rx buffer num: 32\nI (673) wifi: wifi power manager task: 0x3ffdddcc prio: 21 stack: 2560\nI (683) WIFI...: Setting WiFi configuration SSID REG...\nI (693) wifi: mode : sta (30:ae:a4:05:78:c4)\nxPortGetFreeHeapSize :69824\nI (803) GATTC_DEMO: ac 23 3f 23 91 7a\nI (803) GATTC_DEMO: searched Adv Data Len 29, Scan Response Len 0\nI (803) GATTC_DEMO: searched Device Name Len 0\nI (813) GATTC_DEMO:\n\n\n\n*NEXT REBOOT FOUND:*\n\n\nHTTP/1.1 200 OK\nGuru Meditation Error: Core  1 panic'ed (StoreProhibited)\n. Exception was unhandled.\nCore 1 register dump:\nPC      : 0x4008f22e  PS      : 0x00050033  A0      : 0x4008f137  A1      :\n0x3ffd4780\n0x4008f22e: *vPortYieldFromInt* at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:595\n\n0x4008f137: _frxt_int_exit at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:206\n\nA2      : 0x0000000a  A3      : 0x00000000  A4      : 0x000001f8  A5      :\n0x3ffc0be0\nA6      : 0x00000001  A7      : 0x80000001  A8      : 0x40082509  A9      :\n0x00000001\n0x40082509: _xt_lowint1 at\n/home/raimundo/esp/esp-idf/components/freertos/./xtensa_vectors.S:1098\n\nA10     : 0x00060021  A11     : 0x00000000  A12     : 0x8008d47a  A13     :\n0x3ffc0bd0\nA14     : 0x3ffc0c18  A15     : 0x00000001  SAR     : 0x00000017  EXCCAUSE:\n0x0000001d\nEXCVADDR: 0x0000000a  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  :\n0x00000000\n\nBacktrace: 0x4008f22e:0x3ffd4780 0x4008f134:0x3ffd4790\n0x4008f22e: *vPortYieldFromInt* at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:595\n\n0x4008f134: _frxt_int_exit at\n/home/raimundo/esp/esp-idf/components/freertos/./portasm.S:205\n\n\n*Rebooting*...\nets Jun  8 2016 00:22:57\n\n\n\n*NEXT REBOOT FOUND:*\n\nI (822723) GATTC_DEMO:\nabort() was called at PC 0x40082d4b on core 0\n0x40082d4b: lock_init_generic at\n/home/raimundo/esp/esp-idf/components/newlib/./locks.c:81\n\n\nBacktrace: 0x40090050:0x3ffc0140 0x40090227:0x3ffc0160\n0x40082d4b:0x3ffc0180 0x40082d6c:0x3ffc01a0 0x40082eb1:0x3ffc01d0\n0x400d971f:0x3ffc01f0 0x400d54a9:0x3ffc04b0 0x400d5438:0x3ffc0500\n0x4008dc97:0x3ffc0530 0x4008cfe1:0x3ffc0550 0x40088e8a:0x3ffc0570\n0x40088639:0x3ffc05c0 0x4008b639:0x3ffc05e0 0x40082561:0x3ffc0610\n0x4000c3eb:0x00000000\n0x40090050: invoke_abort at\n/home/raimundo/esp/esp-idf/components/esp32/./panic.c:648\n\n0x40090227: abort at\n/home/raimundo/esp/esp-idf/components/esp32/./panic.c:648\n\n0x40082d4b: lock_init_generic at\n/home/raimundo/esp/esp-idf/components/newlib/./locks.c:81\n\n0x40082d6c: lock_acquire_generic at\n/home/raimundo/esp/esp-idf/components/newlib/./locks.c:132\n\n0x40082eb1: _lock_acquire_recursive at\n/home/raimundo/esp/esp-idf/components/newlib/./locks.c:169\n\n0x400d971f: _vfiprint*f_r at\n/Users/ivan/e/newlib*_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/vfprintf.c:859\n(discriminator 9)\n\n0x400d54a9:* fiprintf at /Users/ivan/e/newlib_xtensa-2.2.0-bin*\n/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdio/../../../.././newlib/libc/stdio/fiprintf.c:49\n\n0x400d5438: __assert_f*unc at /Users/ivan/e/*\nnewlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/stdlib/../../../.././newlib/libc/stdlib/assert.c:58\n\n0x4008dc97: vPortCPUAcquireMutexIntsDisabledInternal at\n/home/raimundo/esp/esp-idf/components/freertos/./tasks.c:3529\n (inlined by) vPortCPUAcquireMutexIntsDisabled at\n/home/raimundo/esp/esp-idf/components/freertos/./portmux_impl.h:98\n (inlined by) vTaskEnterCritical at\n/home/raimundo/esp/esp-idf/components/freertos/./tasks.c:4216\n\n0x4008cfe1: xQueueGenericSendFromISR at\n/home/raimundo/esp/esp-idf/components/freertos/./queue.c:2037\n\n0x40088e8a: pp_post at ??:?\n\n0x40088639: lmacPostTxComplete at ??:?\n\n0x4008b639: wDev_ProcessFiq at ??:?\n\n0x40082561: _xt_lowint1 at\n/home/raimundo/esp/esp-idf/components/freertos/./xtensa_vectors.S:1105\n\n\nRebooting...\nets Jun  8 2016 00:22:57\n\n\n\nOn Fri, Apr 6, 2018 at 11:07 PM, TimXia <notifications@github.com> wrote:\n\n> @perll <https://github.com/perll> The issue is caused by the bug of WiFi\n> and BLE coexistence. I suggest to update with the latest IDF which improves\n> the stability of WiFi and BLE coexistence.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/espressif/esp-idf/issues/1774#issuecomment-379424803>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/ALo6NQW0BiR5xIG06u0Ko-8qlVjUyfIgks5tmB97gaJpZM4S7C7o>\n> .\n>\n"}}
{"actor":{"display_login":"perll"}}