I was facing a strange issue trying to get ESP32 SoftAP working on NuttX RTOS:
ERROR: Failed to initialize SPI Flash Creating an WiFi HotStop dhcpd_openlistener: ERROR: socket failed: 19 dhcpd_run: ERROR: Failed to create socket wpa_driver_wext_set_key_ext: ERROR: ioctl[SIOCSIWENCODEEXT]: 25 ERROR: Process command (psk) failed. telnetd [6:100] NuttShell (NSH) NuttX-11.0.0 nsh>
After some time I realized that the ESP32 driver was failing because the /mnt/esp32/wifi was not mounted only because the SPI Flash partition was not formatted (I’m using the SmartFS).
After formatting it:
nsh> mksmartfs /dev/smart1
The ESP32 WiFi and SoftAP worked as expected!