Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soft AP example crashing on setting config (GIT8266O-624) #1047

Open
1 task done
dawidchyrzynski opened this issue Feb 3, 2021 · 2 comments
Open
1 task done

Soft AP example crashing on setting config (GIT8266O-624) #1047

dawidchyrzynski opened this issue Feb 3, 2021 · 2 comments

Comments

@dawidchyrzynski
Copy link

dawidchyrzynski commented Feb 3, 2021

Environment

  • Development Kit: Custom PCB with ESP8266 chip
  • IDF version: 8189b9a (v3.3)
  • Development Env: Make
  • Operating System: Ubuntu
  • Power Supply: 3.3V

Problem Description

esp_wifi_set_config method returns 0x1 error code.

Expected Behavior

Working soft AP example.

Actual Behavior

Reboots loop due to error check.

Steps to repropduce

  1. Build simple_wifi example in softAP mode
  2. Run the example

Code to reproduce this issue

https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/examples/wifi/getting_started/softAP/main/softap_example_main.c

Debug Logs

14:10:41.119 -> �[0;32mI (72) qio_mode: Enabling default flash chip QIO�[0m
14:10:41.119 -> D (73) boot: bootloader initialize SPI flash clock and I/O
14:10:41.119 -> D (73) boot: magic e9
14:10:41.119 -> D (74) boot: segments 03
14:10:41.119 -> D (76) boot: spi_mode 00
14:10:41.119 -> D (78) boot: spi_speed 00
14:10:41.119 -> D (81) boot: spi_size 03
14:10:41.119 -> �[0;32mI (84) boot: SPI Speed      : 40MHz�[0m
14:10:41.119 -> �[0;32mI (88) boot: SPI Mode       : QIO�[0m
14:10:41.161 -> �[0;32mI (92) boot: SPI Flash Size : 2MB�[0m
14:10:41.161 -> D (95) boot: mapped partition table 0x8000 at 0x40208000
14:10:41.161 -> D (100) flash_parts: partition table verified, 3 entries
14:10:41.161 -> �[0;32mI (106) boot: Partition Table:�[0m
14:10:41.161 -> �[0;32mI (109) boot: ## Label            Usage          Type ST Offset   Length�[0m
14:10:41.161 -> D (116) boot: load partition table entry 0x3ffffe14
14:10:41.161 -> D (121) boot: type=1 subtype=2
14:10:41.161 -> �[0;32mI (124) boot:  0 nvs              WiFi data        01 02 00009000 00006000�[0m
14:10:41.161 -> D (131) boot: load partition table entry 0x3ffffe14
14:10:41.219 -> D (136) boot: type=1 subtype=1
14:10:41.219 -> �[0;32mI (139) boot:  1 phy_init         RF data          01 01 0000f000 00001000�[0m
14:10:41.219 -> D (146) boot: load partition table entry 0x3ffffe14
14:10:41.219 -> D (151) boot: type=0 subtype=0
14:10:41.219 -> �[0;32mI (154) boot:  2 factory          factory app      00 00 00010000 000f0000�[0m
14:10:41.219 -> �[0;32mI (162) boot: End of partition table�[0m
14:10:41.219 -> D (165) boot: Trying partition index -1 offs 0x10000 size 0xf0000
14:10:41.219 -> D (171) esp_image: reading image header @ 0x10000
14:10:41.253 -> D (175) esp_image: image header: 0xe9 0x05 0x02 0x01 4021111c
14:10:41.253 -> V (181) esp_image: loading segment header 0 at offset 0x10008
14:10:41.253 -> V (186) esp_image: segment data length 0x3e09c data starts 0x10010
14:10:41.253 -> �[0;32mI (193) esp_image: segment 0: paddr=0x00010010 vaddr=0x40210010 size=0x3e09c (254108) map�[0m
14:10:41.353 -> V (287) esp_image: loading segment header 1 at offset 0x4e0ac
14:10:41.353 -> V (287) esp_image: segment data length 0xa580 data starts 0x4e0b4
14:10:41.353 -> �[0;32mI (288) esp_image: segment 1: paddr=0x0004e0b4 vaddr=0x4024e0ac size=0x0a580 ( 42368) map�[0m
14:10:41.353 -> V (310) esp_image: loading segment header 2 at offset 0x58634
14:10:41.353 -> V (311) esp_image: segment data length 0x558 data starts 0x5863c
14:10:41.353 -> �[0;32mI (311) esp_image: segment 2: paddr=0x0005863c vaddr=0x3ffe8000 size=0x00558 (  1368) load�[0m
14:10:41.353 -> V (320) esp_image: loading segment header 3 at offset 0x58b94
14:10:41.386 -> V (325) esp_image: segment data length 0xa30 data starts 0x58b9c
14:10:41.386 -> �[0;32mI (331) esp_image: segment 3: paddr=0x00058b9c vaddr=0x40100000 size=0x00a30 (  2608) load�[0m
14:10:41.386 -> V (340) esp_image: loading segment header 4 at offset 0x595cc
14:10:41.386 -> V (345) esp_image: segment data length 0x5a08 data starts 0x595d4
14:10:41.386 -> �[0;32mI (351) esp_image: segment 4: paddr=0x000595d4 vaddr=0x40100a30 size=0x05a08 ( 23048) load�[0m
14:10:41.386 -> V (368) esp_image: image start 0x00010000 end of last section 0x0005efdc
14:10:41.420 -> �[0;32mI (368) boot: Loaded app from partition at offset 0x10000�[0m
14:10:41.453 -> �[0;32mI (389) system_api: Base MAC address is not set, read default base MAC address from EFUSE�[0m
14:10:41.453 -> �[0;32mI (393) system_api: Base MAC address is not set, read default base MAC address from EFUSE�[0m
14:10:41.553 -> phy_version: 1159.0, 85b471e, Apr 21 2020, 17:03:08, RTOS new
14:10:41.553 -> �[0;32mI (448) phy_init: phy ver: 1159_0�[0m
14:10:41.553 -> �[0;32mI (450) reset_reason: RTC reset 2 wakeup 0 store 4, reason is 2�[0m
14:10:41.553 -> �[0;32mI (453) simple wifi: ESP_WIFI_MODE_AP�[0m
14:10:41.553 -> ESP_ERROR_CHECK failed: esp_err_t 0x1 (ERROR) at 0x40225950
14:10:41.553 -> file: "main.c" line 105
14:10:41.553 -> func: wifi_init_softap
14:10:41.553 -> expression: esp_wifi_set_config(ESP_IF_WIFI_AP, &wifi_config)

Other items if possible

@github-actions github-actions bot changed the title Soft AP example crashing on setting config Soft AP example crashing on setting config (GIT8266O-624) Feb 3, 2021
@dawidchyrzynski
Copy link
Author

I found that setting auth mode to WIFI_AUTH_OPEN resolves the problem. Starting AP with password results in crash.

@Olewojt
Copy link

Olewojt commented Jul 16, 2024

Check out my answer to #1252, it applies here too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants