Comments (12)
You are overwriting some things that we use: https://github.com/espressif/arduino-esp32/blob/master/platform.txt#L66-L67
Just add those to your custom extra flags and it should be fine
from arduino-esp32.
Holy crap you're a lifesaver <3
Thanks for solving the issue, it's genuinely appreciated
Is this worth mentioning in the migration guide since it seems to have changed behavior since the 2.0.x releases?
from arduino-esp32.
Lets close both issues with new PR with docs update.
from arduino-esp32.
@rhysperry111 - It is not fully clear to me what is the issue. Please depict it further.
Arduino Core 3.0.0 has many breaking changes when compared to 2.0.x.
Most embedded project codes shall need to be changed in order to use the new 3.0.x Core.
There is some documentation about it:
https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html
Regarding ledcAttach()
, it is in the 3.0.x Core but not n the 2.0.x.
https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html#ledc
from arduino-esp32.
It is not fully clear to me what is the issue. Please depict it further.
The project compiles and links perfectly fine in v2.0.x (apart from the ledcAttach bit, but that's expected), however under v3.0.0 it fails to even link things like micros()
(part of the standard set of Arduino functions). I have attached debug logs of the compilation/linking process that further describe what is happening.
from arduino-esp32.
OK, so the issue happens when using arduino-cli compile -v --export-binaries --libraries=editor/arduino --build-property compiler.c.extra_flags="-Ieditor/arduino/src/lib" --build-property compiler.cpp.extra_flags="-Ieditor/arduino/src/lib" -b esp32:esp32:esp32s3 editor/arduino/examples/Baremetal/Baremetal.ino
building process.
Reading the logs, I think that it would be good to clear all cache, compiled binary folders, etc and start a new fresh build for Core 3.0.0.
There are many changes in IDF, library folders and others that may be picking up remainings binaries from 2.0.14 and using it to link the 3.0.0 version.
from arduino-esp32.
I've cleared as many caches as I can find, and also 2.0.11
isn't mentioned once in the verbose log so I don't think it's a problem with some old components being left behind.
from arduino-esp32.
maybe @me-no-dev may take a look into the logs and quickly see the issue related to using arduino-cli
to build it...
from arduino-esp32.
I'd provide the source files if I could, but the files OpenPLC generates tend to be a bit of a mess and scattered over a few locations
from arduino-esp32.
Sure thing! @VojtechBartoska please make sure this ends up in the migration guide. cc @P-R-O-C-H-Y @lucasssvaz
from arduino-esp32.
Reopening to remind us that documentation update is needed.
from arduino-esp32.
Reopening to remind us that documentation update is needed.
I had open an issue about it... #9566
from arduino-esp32.
Related Issues (20)
- error "This header should only be included when building for ESP32 (IDFGH-12916) HOT 3
- WiFi client enterprise breaks and reboot ESP32 trying to connect eduroam in version 3.0.0 HOT 23
- Add support for Low Power core of the ESP32C6 HOT 4
- new version 3.0.0 HOT 4
- IPAddress construction and comparison are buggy on Arduino 3 HOT 1
- Serial2 initialization on ESP32-WROOM-32E
- Serial2 initialization on ESP32-WROOM-32E causes reinitialization of digital pin 4 HOT 3
- collect2.exe error with Arduino Nano ESP32 board HOT 2
- Use of sodium.h under new 3.0 HOT 6
- How to do custom partition scheme correctly? HOT 3
- Simultaneous BLE causes WiFiMulti.run to fail on 3.0.0 HOT 4
- esp32 3.0.0 Compilation error from esp_now.h with function call esp_now_register_recv_cb HOT 3
- RTC_CPU_FREQ_80M was not declared in this scope HOT 1
- I2S_Record_to_Wav example error HOT 3
- Flash memory use way up with v3.0.0 HOT 25
- OTA unreliable in v3 HOT 8
- some keys doesn't work (ESP32-S3 USB-HID) HOT 14
- Error compiling, works good on 2.0.14 but cannot compile and terminates on 3.0.0 HOT 4
- Zigbee - problem with raw mode HOT 15
- Missing Zigbee Partition Schemes for XIAO-ESP32C6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-esp32.