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
Upgrade ESP32 to V3.1 of esp-idf #1524
Comments
Hi, the changes look good. However I'm a bit confused by https://github.com/espruino/Espruino/compare/ESP32-V3.1#diff-0310c52e4f91e3090ce7a7bfd24eb752R23 Is it possible to just modify the actual config file? https://github.com/espruino/Espruino/blob/master/libs/crypto/mbedtls/config.h Or failing that, maybe just add them to That would be way preferable to a board-specific hack (since where the defines are, they won't actually change the compilation for mbedtls itself). |
Moved defines to make/family/ESP32.make and pushed to ESP32-V3.1 branch. |
Thanks! I'm definitely happy with that. |
To correct a kind of typo, its moved to make/crypto/ESP32.make |
How ready are we to merge this? I'd like to get a new release of Espruino out this week (ideally tomorrow) - is it likely we'd get it all sorted by then, or should I leave this for the next release? |
I would prefer to wait for wilberforce, to get it running with his build tool |
Having trouble compling on buildtools at the moment.....
The espruino V3.1 changes are compling, struggling to get the libraries to build at present. |
My way to get it running is
|
A normal |
Oh sorry, there was a problem in check for file existance for non ESP32-boards in make/crypto directory |
managed to get a successful build with 3.1 and the latest changes from master merged. https://www.espruino.com/binaries/travis/4f2b50f97887874339db5fae1f643fb6a6a47489/espruino_esp32.bin Please try. |
Downloaded binary and started, looks good. Next downloaded https://www.espruino.com/binaries/travis/4f2b50f97887874339db5fae1f643fb6a6a47489/espruino_2v00.18_esp32.tgz which includes boot and partition, and get this error Could this be the change in partition table where partition needs to be commented ? |
Sorry - I don't follow the difference? I looked at your partitions.csv and it looked the same? I have had strange messages about the partition table being larger than 4Mb as well so had to resize the last partition (flashfs) as smaller - which is a bit weird! |
take this one https://github.com/espruino/Espruino/blob/ESP32-V3.1/targets/esp32/Changes_V3.1/partitions_espruino.csv |
Thanks - The partition is building now after commenting that out. I'll see if I can compile the whole thing and do a build that also replaced all of the partitions. I have notice that some of the sdkconfig I set have been dropped:
So at the end of this update - we'll need to make sure your sdkconfig is the same. |
Great, searched for the your changes, and couldn't find. This would make it easier for everybody to build its own toolchain. BTW, I found a way to create board specific API-Docu. Only had to add an argument to gordons script. |
I have added sdkconfig changes to the buildtools at this stage. The latest travis build should have the correct boot loader and partition bins - sorry I've not had a chance to test yet. |
Very good news first, I've tested your binary and got it running. Now strange news begin Since I already had the plan for long time, to switch to your buildtools, built it up There was a chat on espressif server about a new toolchain https://esp32.com/viewtopic.php?f=10&t=7400 for testing. Do you have any idea, what I'm doing wrong ? |
After next testing with new compiler, the result is not funny |
It will be due to the debug vs release flags. For the travis builds the final espruino make is done like his: This could explain the difference in speeds as the assert statement would be dropped.
Sound like we should just get this release with existing compiler out first and do that as a later step. |
Great got it working with RELEASE=1, thanks a lot. |
Not until there's an arm-none-eabi one I can get easily from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads Honestly I usually wait a bit as well as I've found the first release to be a bit flaky. I'm using 5.4.1 at the moment for ARM, but when I first started using GCC 5 it broke a bunch of stuff - and I didn't move to GCC 6 initially because that broke stuff too. |
Have you completed your testing? Are we ready to bring this into the master branch? |
Looks like we were both waiting for OK ;-) |
It seems that neopixel is still broken - I have no idea why this stopped?
|
Sorry, no idea about neopixel. |
We have issues with 3.1 not connecting to wifi, when there is no previously saved connection. Need to work out why wifi.connect() does not complete or revert back to 3.0.x See |
To add some info: |
Espressif released V3.1 some weeks ago. New binary is 1308KB now, which is huge...
There are some major changes to get it running for Espruino, please see files in targets/ESP32/ChangesV3.1 for more detailled information. Especially some changes in sdkconfig.
Major changes:
To Do:
The text was updated successfully, but these errors were encountered: