{"action":"created","issue":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/83","repository_url":"https://api.github.com/repos/espressif/arduino-esp32","labels_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/83/comments","events_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/83/events","html_url":"https://github.com/espressif/arduino-esp32/issues/83","id":193882319,"number":83,"title":"Wifi Examples Building, Hanging","user":{"login":"forthlightning","id":11639744,"avatar_url":"https://avatars.githubusercontent.com/u/11639744?v=3","gravatar_id":"","url":"https://api.github.com/users/forthlightning","html_url":"https://github.com/forthlightning","followers_url":"https://api.github.com/users/forthlightning/followers","following_url":"https://api.github.com/users/forthlightning/following{/other_user}","gists_url":"https://api.github.com/users/forthlightning/gists{/gist_id}","starred_url":"https://api.github.com/users/forthlightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forthlightning/subscriptions","organizations_url":"https://api.github.com/users/forthlightning/orgs","repos_url":"https://api.github.com/users/forthlightning/repos","events_url":"https://api.github.com/users/forthlightning/events{/privacy}","received_events_url":"https://api.github.com/users/forthlightning/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-06T20:57:58Z","updated_at":"2016-12-07T01:16:09Z","closed_at":null,"body":"I am trying to run the wifi examples, they build and upload fine but the program hangs after initial boot. I've tried WiFiClient, WiFiClientBasic, WiFiEvents, and WiFiScan and they all result in similar output as below:\r\n\r\n```\r\nets Jun  8 2016 00:22:57\r\nrst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)\r\nconfigsip: 0, SPIWP:0x00\r\nclk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00\r\nmode:DIO, clock div:2\r\nload:0x3ffc0008,len:0\r\nload:0x3ffc0008,len:1964\r\nload:0x40078000,len:3668\r\nload:0x40080000,len:260\r\nentry 0x40080034\r\nI (571) heap_alloc_caps: Initializing heap allocator:\r\nI (571) heap_alloc_caps: Region 19: 3FFC1268 len 0001ED98 tag 0\r\nI (573) heap_alloc_caps: Region 25: 3FFE8000 len 00018000 tag 1\r\nI (583) cpu_start: Pro cpu up.\r\nI (588) cpu_start: Single core mode\r\nI (595) cpu_start: Pro cpu start user code\r\nI (619) rtc: rtc v160 Nov 22 2016 19:00:05\r\nI (630) rtc: XTAL 40M\r\nW (706) cpu_start: failed to load RF calibration data, falling back to full calibration\r\nI (2149) phy: phy_version: 258, Nov 29 2016, 15:51:07, 0, 2\r\nI (2304) cpu_start: Starting scheduler on PRO CPU.\r\ntcpip_task_hdlxxx : 3ffc4ccc, prio:18,stack:2048\r\nI (2312) wifi: frc2_timer_task_hdl:3ffc67dc, prio:22, stack:2048\r\nI (2321) wifi: pp_task_hdl : 3ffc904c, prio:23, stack:8192\r\n```\r\n\r\nThis may be unrelated but I have also been seeing this line recently\r\n\r\n`\r\nW (706) cpu_start: failed to load RF calibration data, falling back to full calibration\r\n`\r\n\r\nFor reference I have freshly pulled esp-idf and arduino-esp32"},"comment":{"url":"https://api.github.com/repos/espressif/arduino-esp32/issues/comments/265326071","html_url":"https://github.com/espressif/arduino-esp32/issues/83#issuecomment-265326071","issue_url":"https://api.github.com/repos/espressif/arduino-esp32/issues/83","id":265326071,"user":{"login":"forthlightning","id":11639744,"avatar_url":"https://avatars.githubusercontent.com/u/11639744?v=3","gravatar_id":"","url":"https://api.github.com/users/forthlightning","html_url":"https://github.com/forthlightning","followers_url":"https://api.github.com/users/forthlightning/followers","following_url":"https://api.github.com/users/forthlightning/following{/other_user}","gists_url":"https://api.github.com/users/forthlightning/gists{/gist_id}","starred_url":"https://api.github.com/users/forthlightning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forthlightning/subscriptions","organizations_url":"https://api.github.com/users/forthlightning/orgs","repos_url":"https://api.github.com/users/forthlightning/repos","events_url":"https://api.github.com/users/forthlightning/events{/privacy}","received_events_url":"https://api.github.com/users/forthlightning/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T01:16:09Z","updated_at":"2016-12-07T01:16:09Z","body":"I did some digging and it looks like when you set `config_autostart_arduino=N` in `make menuconfig` it is overwritten and changed to `#config_autostart_arduino is not set`\r\n\r\nSo when esp32-hal.h is included config_autostart_arduino is not defined, and is defined as 1.\r\n\r\nI think this is causing the default app_main() in the ESP32 core to be defined instead of the users."}}
{"actor":{"display_login":"forthlightning"}}