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

Not Supporting ESP8266 #3

Closed
hkarthik97 opened this issue Jun 25, 2020 · 4 comments
Closed

Not Supporting ESP8266 #3

hkarthik97 opened this issue Jun 25, 2020 · 4 comments

Comments

@hkarthik97
Copy link

I was trying to Dump code in ESP8266 but i was throwing error
WARNING: library UDHttp claims to run on (esp32) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s).
In file included from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2Card.h:26:0,
from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/SdFat.h:29,
from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/mySD.h:25,
from /Users/karthik/Documents/Arduino/File__to__sdcard/File__to__sdcard.ino:2:
/Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2PinMap.h:402:2: error: #error Architecture or board not supported.
#error Architecture or board not supported.

^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

@nhatuan84
Copy link
Owner

nhatuan84 commented Jul 4, 2020 via email

@hkarthik97
Copy link
Author

thankyou it worked

@paraisotech
Copy link

Sorry friend, this is developed for esp32, if you want to run with esp8266 you have to copy the code file in library to esp8266.

On Thu, 25 Jun 2020, 22:03 hkarthik97, @.***> wrote: I was trying to Dump code in ESP8266 but i was throwing error WARNING: library UDHttp claims to run on (esp32) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s). In file included from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2Card.h:26:0, from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/SdFat.h:29, from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/mySD.h:25, from /Users/karthik/Documents/Arduino/File__to__sdcard/File__to__sdcard.ino:2: /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2PinMap.h:402:2: error: #error Architecture or board not supported. #error Architecture or board not supported. ^ exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEN6LVYPLKCVRDH5QJYUR3RYNRLJANCNFSM4OIOVWIQ .

Hi!!
When you said "copy the code in library to ESP8266", what do you mean? I've tried many possibilities, but none of them i got a successfull compiling... Could you help me please? This library is fantastic btw...

@paraisotech
Copy link

Sorry friend, this is developed for esp32, if you want to run with esp8266 you have to copy the code file in library to esp8266.

On Thu, 25 Jun 2020, 22:03 hkarthik97, @.***> wrote: I was trying to Dump code in ESP8266 but i was throwing error WARNING: library UDHttp claims to run on (esp32) architecture(s) and may be incompatible with your current board which runs on (esp8266) architecture(s). In file included from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2Card.h:26:0, from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/SdFat.h:29, from /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/mySD.h:25, from /Users/karthik/Documents/Arduino/File__to__sdcard/File__to__sdcard.ino:2: /Users/karthik/Documents/Arduino/libraries/esp32-micro-sdcard-master/utility/Sd2PinMap.h:402:2: error: #error Architecture or board not supported. #error Architecture or board not supported. ^ exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module). — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEN6LVYPLKCVRDH5QJYUR3RYNRLJANCNFSM4OIOVWIQ .

Hi!!
When you said "copy the code in library to ESP8266", what do you mean? I've tried many possibilities, but none of them i got a successfull compiling... Could you help me please? This library is fantastic btw...

I got it... To run in ESP8266, edit the UDHttp.h file. Just change:

#Include <WiFi.h>
to
#include <ESP8266Wifi.h>

After changing, save the new library with a new name if you will use both ESP32 and ESP8266. In my case i'm only using ESP8266, so i let the name as the original name.

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

3 participants