-
Notifications
You must be signed in to change notification settings - Fork 40
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
PIO board name capitalised - appears to break build #2
Comments
Update, adding a |
The reason why I'm a bit hesitant to fix this immediately is because it works for me, and after the big API redesign I've lost track a bit as to whether it was always there, and if not - why. Let me try to find some time over the weekend to figure out what is going on. |
Hi everyone, @ivmarkov I'd also like to this project shows some amazing promise! I can confirm the same issue/symptoms, and same solution with the ESP32-C3-DEVKITM-1. For me this fix only works for generating the |
OK, I hear you. It is just that it is flaky (for me it works, for you it doesn't). What operating systems are you on? Might be related. |
And please paste here your complete output, as @squishykid did. If you do |
Thanks for looking into this. Although do feel free to wait until the weekend when you have a little more time! I totally get that it is a bit funky to reproduce. I am running Gentoo, which is probably a rabbit hole. In order to make something slightly more reproducible, I since decided to use a docker container, built from the espressif/idf container (aka Ubuntu LTS 18.04.5) but with the extra instructions for the project backed in to compile rust, etc. I can attach the Dockerfile too if that is useful? The export from
|
I am on Ubuntu 21.04 with kernel 5.11.0-25-generic. My |
OK so the capitalization of the board apparently breaks PlatformIO in some cases. Since I don't have a locally reproducible case here, and since NOT capitalizing will not break in any way the build (I've checked), I've removed it for now. I also suspect I've accidentally introduced this to the board variable, when doing some ergonomics improvements to the MCU variables elsewhere, so it should actually not be there for boards. To test the new cargo-pio:
|
@ivmarkov That all works perfectly for me now. Sorry for taking a while to get back to you on this, I had to fix llvm first as I had broken the container while trying to fix it earlier. Again thanks for your amazing work on this! It is really appreciated! I will drop a pull request over with the Dockerfile at some point, after cleaning it up. It might make things easier to get setup for some people, especially for building the latest versions of the binaries from source. It might also help with debugging down the line 😀 |
Yep. However - please make sure that you are not duplicating work with what Espressif themselves are doing (yes, we are cooperating with the Espressif folks on bringing in Rust support for the ESP-IDF). You might be willing to take a look at this (a bit out of date as still based on V1.50 if I'm not mistaken, but they'll surely update it) and this. You might also be willing to hang around in this channel, where Rust on ESP* is being discussed (with and without the ESP-IDF framework). |
Yeah, I was sure not to reproduce anything that was already around so I did have a quick look around at some of these. Try not to reinvent the wheel and all. I based it on the espressif example project but instead, it builds from the source repositories, to enable the use of the ESP32C3. I imagine in time this will be unnecessary but for the moment it might be useful to put it somewhere. Although I am not sure where this docker file best fits, or if it is really that applicable for use generally as it builds everything from the upstream. Let me know if it is applicable to put in the project, and I can stick a pull request up. Maybe that is worth doing regardless so you can have a look and then reject it if it is not applicable as it is already something I have written currently, so maybe it is beneficial in some way.
I am already in the channel but have never had to post anything, I do have a read from time to time too. I have been thinking about starting a project in Embedded rust for a while now, especially with the advances made in the past few months it seems like it is ready for use. So actually starting to use it now seems like a good way to get involved and help out! |
Hello, thank you for this project!
I was trying to get the rust-esp32-std-hello example to run, but was finding that the compilation would always fail with a variation of the following error message:
It appears that the board name is always converted to upper case here: https://github.com/ivmarkov/cargo-pio/blob/master/src/project.rs#L235
After changing this I was able to proceed with the build.
I don't know the history of why the board name is changed to upper case, but perhaps it should not?
If it helps, I do not have a
sdkconfig
in my project, perhaps this makes a difference?The text was updated successfully, but these errors were encountered: