atc1441 / ESP32_nRF52_SWD

This software brings you the possibility to Read and Write the internal Flash of the Nordic nRF52 series with an ESP32
GNU General Public License v3.0
236 stars 41 forks source link

Problems compiling the ESP32_SWD_wifi #13

Open lwlbeng opened 2 years ago

lwlbeng commented 2 years ago

`In file included from C:\Users\L\Downloads\ESP32_nRF52_SWD-main\ESP32_nRF52_SWD-main\ESP32_SWD_WIFI\ESP32_SWD_WIFI.ino:1:

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:7: error: 'wifi_country_t' does not name a type; did you mean 'fsfilcnt_t'?

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

   ^~~~~~~~~~~~~~

   fsfilcnt_t

In file included from C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/WiFiManager.h:109,

             from C:\Users\L\Downloads\ESP32_nRF52_SWD-main\ESP32_nRF52_SWD-main\ESP32_SWD_WIFI\web.cpp:15:

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:371:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:372:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

C:\Users\L\Documents\Arduino\libraries\WiFiManager-feature_asyncwebserver/strings_en.h:373:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER'

const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO};

                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                                          CONFIG_ESP_PHY_MAX_TX_POWER

Multiple libraries were found for "WiFi.h"`

atc1441 commented 2 years ago

Looks like you have multible/ the wrong WifiManager librarys installed. This project needs a special one mentioned in the readme

Please check that.

Also please check using a portable Arduino IDE

lwlbeng commented 2 years ago

Can you give the version of each library??

lwlbeng commented 2 years ago

The WiFiManager latest code has the following error

In file included from /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/WiFiManager.h:109, from /Users/l/winShare/esp32/ESP32_nRF52_SWD-main/ESP32_SWD_WIFI/web.cpp:15: /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:371:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:371:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:372:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:372:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:373:46: error: 'CONFIG_ESP32_PHY_MAX_TX_POWER' was not declared in this scope const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/l/Documents/Arduino/libraries/WiFiManager-feature_asyncwebserver/strings_en.h:373:46: note: suggested alternative: 'CONFIG_ESP_PHY_MAX_TX_POWER' const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CONFIG_ESP_PHY_MAX_TX_POWER

lwlbeng commented 2 years ago

WiFiManager version 0.16 has the following error `In file included from /Users/l/winShare/esp32/ESP32_nRF52_SWD-main/ESP32_SWD_WIFI/web.cpp:15: /Users/l/Documents/Arduino/libraries/WiFiManager-78f00ffe0a579609a9da922e1fa0df9e81b80296/WiFiManager.h:16:10: fatal error: ESP8266WiFi.h: No such file or directory

include

      ^~~~~~~~~~~~~~~

compilation terminated.`

vgmjrp commented 2 years ago

any updates? I'm having exactly the same issues. I strictly used the linked libs (clean sheet Arduino IDE) and even tried different commits of the asyncwebserver-branch. The issue were also reproduced on a portable Arduino IDE.

atc1441 commented 2 years ago

Could you please try it with PlatformIO as well ?

vgmjrp commented 2 years ago

Seems to be an issue with the ESP32 core (2.x.x) and the asyncwebserver-branch. ->https://github.com/espressif/arduino-esp32/issues/5821

My workaround was to simply use ESP32 Ver. 1.0.6. Perhaps you can add this information to README.md

atc1441 commented 2 years ago

Added it to the readme just now

ANTI443 commented 2 years ago

Just to add, same issue... v1.0.6 worked for me also!

ArduinoOTA : by Juraj Andrassy Version 1.0.6

Thanks!