Git Product home page Git Product logo

Comments (5)

MabezDev avatar MabezDev commented on May 30, 2024

Hi @davidcole1340, a lot has changed since you reported this issue, would you mind trying again and seeing how you get on?

from esp-idf-sys.

davidcole1340 avatar davidcole1340 commented on May 30, 2024

@MabezDev Still seems to be reproducable with the attached zip file

from esp-idf-sys.

MabezDev avatar MabezDev commented on May 30, 2024

The commit issue seems to be related to pio.

We now offer a native build which uses esp-idf's native cmake build system.

Here is the updated project: esp-test-error-fixed.zip

Please note that its still experimental, and I ended up finding an issue which I have opened here: #20

from esp-idf-sys.

ivmarkov avatar ivmarkov commented on May 30, 2024

I'm pretty sure this is a problem with the platformio-espressif32 "platform" of PlatformIO. If my suspicions are confirmed (looking at it), I'll open a bug at their repo.

As for the app_main symbol, in your binary crate you need to depend on esp-idf-sys with [features = "binstart"] and you need to reference the module from your src/main.rs, or else the app_main start symbol will not be linked in, like so:

// Necessary, so that the `app_main` symbol exported by the `binstart` feature of esp-if-sys is linked
#[allow(unused_imports)]
use esp_idf_sys;

I'm preparing a demo named rust-esp32-std-mini which is the absolute minimal set of dependencies and setup for a project so that you can do println!("Hello, world!") on Rust+ESP-IDF (basically a minimally-updated version of what cargo new rust-esp32-std-mini would generate for you).

By the way: the current rust-esp32-std-hello will likely be renamed to rust-esp32-std-demo, as it is anything but a Hello, world! example in the meantime, and it gets difficult to figure out what is necessary and what isn't to do a "Hello, world" with Rust + STD + ESP-IDF. Which isn't much really.

from esp-idf-sys.

MabezDev avatar MabezDev commented on May 30, 2024

With the switch to the cmake esp-idf build system by default, this should no longer be an issue.

from esp-idf-sys.

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.