Wifi station example and ESP32-S2
Posted: Thu Jun 17, 2021 12:23 pm
I have been going through the ESP32 sample codes in examples folder.
I have ESP32-S2 WROVER and I am using internal USB CDC instead of serial converter.
When I build and run the sample examples/wifi/getting_started/station, I get no console output.
The device seems to reboot in a loop idf.py monitor saying:
device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Waiting for the device to reconnect..
device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Waiting for the device to reconnect.
The app has following code (printf by me):
This outputs nothing.
If I comment the nvs_flash_init and related error checks away, I get the printf outputs but the app fails later, of course.
Should this station sample work with ESP32-S2? Any ideas?
I have ESP32-S2 WROVER and I am using internal USB CDC instead of serial converter.
When I build and run the sample examples/wifi/getting_started/station, I get no console output.
The device seems to reboot in a loop idf.py monitor saying:
device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Waiting for the device to reconnect..
device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Waiting for the device to reconnect.
The app has following code (printf by me):
- void app_main(void)
- {
- printf("** started\n");
- //Initialize NVS
- esp_err_t ret = nvs_flash_init();
- printf("** initialized\n");
- if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
- ESP_ERROR_CHECK(nvs_flash_erase());
- ret = nvs_flash_init();
- }
- ESP_ERROR_CHECK(ret);
- ESP_LOGI(TAG, "ESP_WIFI_MODE_STA");
- wifi_init_sta();
- }
If I comment the nvs_flash_init and related error checks away, I get the printf outputs but the app fails later, of course.
Should this station sample work with ESP32-S2? Any ideas?