platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
856 stars 571 forks source link

WiFiProv fails running on espressif32@6.6.0 #1351

Closed autoexpect closed 2 months ago

autoexpect commented 2 months ago

Code: https://github.com/espressif/arduino-esp32/blob/2.0.14/libraries/WiFiProv/examples/WiFiProv/WiFiProv.ino

[env:esp32dev]
platform = espressif32 @ 6.6.0
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.partitions = partitions.csv
# ESP-IDF Partition Table
# Name,   Type, SubType, Offset,  Size,   Flags
nvs,      data, nvs,     0x9000,  24K,
phy_init, data, phy,     0xf000,  4K,
factory,  app,  factory, 0x10000, 3M,
coredump, data, coredump,,        64K
--- Terminal on /dev/cu.usbserial-0001 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
Begin Provisioning using BLE
E (64) wifi_prov_scheme_ble: bt_mem_release of classic BT failed 259
E (164) simple_ble: simple_ble_start enable controller failed 259
E (164) protocomm_ble: simple_ble_start failed w/ error code 0x103
E (164) wifi_prov_scheme_ble: Failed to start protocomm BLE service
E (170) wifi_prov_mgr: Failed to start service
[   180][E][WiFiProv.cpp:151] beginProvision(): wifi_prov_mgr_start_provisioning failed!

  █▀▀▀▀▀█ ███ ▀▀█▀ ▄▄▄█▄▀▀█ █▀▀▀▀▀█   
  █ ███ █ █▄▀█ ▄▄ ▀▀▀▀▄▀▄▄▄ █ ███ █   
  █ ▀▀▀ █ ▄  ▄▄▀█▀   ▄▀▄ ▀▀ █ ▀▀▀ █   
  ▀▀▀▀▀▀▀ ▀▄▀ █ ▀ █▄▀ ▀▄█▄▀ ▀▀▀▀▀▀▀   
  █▀  ▀█▀▄▄▄▄▀▄ ▄▄ ▀█▀▄█ ▄▄▄ █ ▀█▀▀   
  ██▀██ ▀▄█ ▄█▀ ▀█▀▄  ▄█▄▀██▀▄██▀█    
  ▀ ▄▄▀▄▀██ ▀ ▀▄▄▄███▀▀▀ ▀ ▄▀▄▀ ▄▄▀   
  ▀▄ █ ▄▀▀▀█▄ ▄ █▀██▀▄▀▄█▀▄█ ▀ █▀▀▄   
  █ ▀▀▄█▀▄ ██▀▄▄█▄█▀█▀▀▀█  █▀▄▀▀  ▀   
   █▄▄  ▀▀▄  █▀▀ ▀ ▄ ▄ ██▀█ ▄█▄█▀▀▄   
  ▄██ ▀ ▀ █▀▀ ▀  █▄▀ ▀▀█▀▀▀▀▀ ▀ ▄█▀   
    ▀▀█▀▀█▀▀  ▄ ████▀ ▀▄ ▀  █▀▀▀▀▄▄   
  ▀▀ ▀▀▀▀ ▄▀▄▀▄▀█▄█▀ ▀▀▀█▄█▀▀▀██▄▀    
  █▀▀▀▀▀█ ▄▄▀█▀█▀▀▄▄ ▄ ██▀█ ▀ ██▀█    
  █ ███ █ ▀▀█ ▀█▄▄█▀▄▀█▀  ███▀█▀▄██   
  █ ▀▀▀ █ ▄▀▄ ▄ ▄▀▀█▄▄ ▄█▀  ▀█▀▄ ▀    
  ▀▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀   ▀ ▀▀▀      ▀   
valeros commented 2 months ago

Hi @autoexpect, does it work in the Arduino IDE?

autoexpect commented 2 months ago

Hi @autoexpect, does it work in the Arduino IDE?

yes!

valeros commented 2 months ago

Hmm, what happens if you add lib_archive = no to your environment config in platformio.ini?

autoexpect commented 2 months ago

Hmm, what happens if you add lib_archive = no to your environment config in platformio.ini?

Worked, thanks!

Begin Provisioning using BLE

Provisioning started
Give Credentials of your access point using smartphone app

  █▀▀▀▀▀█ ███ ▀▀█▀ ▄▄▄█▄▀▀█ █▀▀▀▀▀█   
  █ ███ █ █▄▀█ ▄▄ ▀▀▀▀▄▀▄▄▄ █ ███ █   
  █ ▀▀▀ █ ▄  ▄▄▀█▀   ▄▀▄ ▀▀ █ ▀▀▀ █   
  ▀▀▀▀▀▀▀ ▀▄▀ █ ▀ █▄▀ ▀▄█▄▀ ▀▀▀▀▀▀▀   
  █▀  ▀█▀▄▄▄▄▀▄ ▄▄ ▀█▀▄█ ▄▄▄ █ ▀█▀▀   
  ██▀██ ▀▄█ ▄█▀ ▀█▀▄  ▄█▄▀██▀▄██▀█    
  ▀ ▄▄▀▄▀██ ▀ ▀▄▄▄███▀▀▀ ▀ ▄▀▄▀ ▄▄▀   
  ▀▄ █ ▄▀▀▀█▄ ▄ █▀██▀▄▀▄█▀▄█ ▀ █▀▀▄   
  █ ▀▀▄█▀▄ ██▀▄▄█▄█▀█▀▀▀█  █▀▄▀▀  ▀   
   █▄▄  ▀▀▄  █▀▀ ▀ ▄ ▄ ██▀█ ▄█▄█▀▀▄   
  ▄██ ▀ ▀ █▀▀ ▀  █▄▀ ▀▀█▀▀▀▀▀ ▀ ▄█▀   
    ▀▀█▀▀█▀▀  ▄ ████▀ ▀▄ ▀  █▀▀▀▀▄▄   
  ▀▀ ▀▀▀▀ ▄▀▄▀▄▀█▄█▀ ▀▀▀█▄█▀▀▀██▄▀    
  █▀▀▀▀▀█ ▄▄▀█▀█▀▀▄▄ ▄ ██▀█ ▀ ██▀█    
  █ ███ █ ▀▀█ ▀█▄▄█▀▄▀█▀  ███▀█▀▄██   
  █ ▀▀▀ █ ▄▀▄ ▄ ▄▀▀█▄▄ ▄█▀  ▀█▀▄ ▀    
  ▀▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀   ▀ ▀▀▀      ▀