Code Monkey home page Code Monkey logo

Comments (12)

me-no-dev avatar me-no-dev commented on June 18, 2024 1

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.

rhysperry111 avatar rhysperry111 commented on June 18, 2024 1

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.

VojtechBartoska avatar VojtechBartoska commented on June 18, 2024 1

Lets close both issues with new PR with docs update.

from arduino-esp32.

SuGlider avatar SuGlider commented on June 18, 2024

@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.

rhysperry111 avatar rhysperry111 commented on June 18, 2024

@SuGlider

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.

SuGlider avatar SuGlider commented on June 18, 2024

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.

rhysperry111 avatar rhysperry111 commented on June 18, 2024

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.

SuGlider avatar SuGlider commented on June 18, 2024

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.

rhysperry111 avatar rhysperry111 commented on June 18, 2024

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.

me-no-dev avatar me-no-dev commented on June 18, 2024

Sure thing! @VojtechBartoska please make sure this ends up in the migration guide. cc @P-R-O-C-H-Y @lucasssvaz

from arduino-esp32.

VojtechBartoska avatar VojtechBartoska commented on June 18, 2024

Reopening to remind us that documentation update is needed.

from arduino-esp32.

SuGlider avatar SuGlider commented on June 18, 2024

Reopening to remind us that documentation update is needed.

I had open an issue about it... #9566

from arduino-esp32.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.