-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update esp-idf to v4.3 #4195
Update esp-idf to v4.3 #4195
Conversation
I also started this chase down the rabbit hole. I however did not make nice edits so my result is not really pretty. I'm not really liking all the full path includes. I changed them to most;ly match how the IDF does its includes. I think this might make it easier for future IDF releases. I had started this to see if the newer IDF release fixed anything with I2C, havent got that far yet. |
Thanks @skieast, I appreciate you picking this up and running with it ! |
tbh I have no idea how to 'run with it'. Does that somehow involve me modifying your PR? Or do I just start a new PR with what I have. As you can probably see my github knowledge is limited. Very much so. |
@skieast I think you can use the gh cli to checkout the PR. |
I'll do some reading. Forgot about the gh cli. In any case I'm going to at least try to get spi working here. Thanks. |
I should have made a PR earlier lol... |
Awesome. I will take a look at your branch. If I have time later tomorrow I'll do some i2c testing. |
On the Discord it was suggested you could fork my fork, but I know you can't do that really without removing other forks. I could make you collaborators on my fork instead. But, why don't we abandon this PR and you can do your own sounds like @microdev1 had already gotten farther than I had anyway. That's probably the easiest. I'll leave this open and you all can decide. Thanks for doing the work for this! |
How's the progress on this coming along? I'd like to update in order to try and make more progress on the ongoing I2C problems, it'd be great if we could bring everyone's progress together. To clone someone else's branch, you can follow the instructions here, it's not too bad, but you do need to make sure your PR is marked to accept contributions. |
I’m out now. As I posted on discord the branch from microdev compiles but had some issues. I can get i2c scan to work but otherwise it is very unstable. Will try some code later to see if crashing is general. |
Why not? I like the full path because that makes them easier to find. I dislike having super long include directory lists and include filenames that look like they come from the same place but don't.
You can always add each other as remotes to your local repo:
|
I found this very confusing as well. I would suggest the time might be right for having a philosophy (I'm shying away from the word "Rule") about this and strive for greater consistency. |
A follow-up with the current status :-
|
Yes. Good idea. I think my fixes to i2c from your branch have that working. No testing on SPI yet. Like you I expect bugs. But there's the fun. I'm currently looking (again) at i2c and wifi crashing. Wifi is not trivial. Lol. |
@microdev1 and @skieast if you want to try ... I added you as contributors to my fork. Whatever is easiest though.. I'm not concerned about it coming from my repo or this PR. |
Always like to learn new things. I will look at merging my i2c changes. Will have to clean up a bit first as I have some additional boards defined for my use. Maybe during Scott's Deep Dive today. :) |
@skieast and @microdev1 , I've been away from CP for a few days. How is the IDF update looking? Is there anything I can help with? |
I too took a little break after running into a wall with the I2C and WIFI issues. I've started again and will probably ignore the wifi for a bit. |
One thing I didn't quite understand. Are the i2c and WiFi issues in the current IDF version in CP? |
Yes. I'm not sure when the problem first appeared but it's defnitey there with 4.2. I was hoping that 4.3 would fix or at least change the issue. As I said I'm going to get i2c working then see if spi works. Those were the two areas where compile errors appeared that required changes. Then look at wifi. |
If 4.3 doesn't introduce any new problems, does it makes sense to Merge 4.3 and work on issues not related to IDF 4.3 separately? |
Thanks! @askpatrickw and @skieast for looking into this. |
@microdev1 Just to make sure I'm following. The i2c and spi issues are the same ones as before or new ones? If they are not new, maybe you should make a PR from you branch where you had everything building and we can close this. |
There were changes to the IDF with 4.3 that require changes to i2c and spi. I2C is mostly done and seems to work as before. There is an issue with soft reboot / or wifi. You get to pick which one works. I am starting to look at SPI now. So basically should be the same as before once everything works. SPI had a lot of changes I think so I am hoping whatever microdev did works out of the box. :) |
Thanks @skieast ! |
It should work, shouldn't it. 🤞 |
Lol. Crashed when doing the spi construct. I'm on the ski hill for a few hours and will dig in later. I have an idea what it is. Probably wrong but it's an idea. |
I had a great chat with @UnexpectedMaker about this update to the IDF, he's going to post more detailed notes, but a couple of things: 1.The paths updates I provided (now ~ a month old) are incorrect in many instances, wherever possible the path should have an esp32s2 folder in the path. Seon is going to provide a sample of the path changes and if my day allows, I'll give a swing at those changes tomorrow. @microdev1 @skieast, I'm also happy to bow out if someone else has time and would like to step-in. Keep in mind, this also fixes building on |
@askpatrickw Thanks for insight on this. Can you please re-post this is in #4363. I think we should continue the conversation there. |
done. |
@askpatrickw I believe these changes should have there own PR after this is merged. |
I have updated the PR as discussed on discord. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the changes to the INC in the Makefile and the paths updates in the .c and .h files, they all make sense.
I also built and flashed this successfully to a feathers2 pre-release and ran a program that uses a BME680 over i2c.
Also built and flashed a kaluga and tested an Ultimate GPS over UART which worked as well.
Converting this to draft for now as |
#4387 is merged now what should we verify\fix next ? |
ESP-IDF v4.3 released https://github.com/espressif/esp-idf/releases/tag/v4.3 |
Finally... this is almost ready to merge. I re-wrote the |
Thanks @microdev1 ! The code looks good to me. Unfortunately, it looks like Kaluga 1.3 ran out of space in one language. Could others chime in that they've tested this too? Thanks! |
ST7789 SPI But I'm seeing issues with this artifact relative to 7.0.0-alpha.3... Ejecting CIRCUITPY and restarting on some uncaught exceptions (perhaps only after some feature is invoked): KeyboardInterrupt:
$ Also ejecting CIRCUITPY and restarting on trying to lock I2C: Adafruit CircuitPython 7.0.0-alpha.3-99-gcc7d59c3a on 2021-06-23; FeatherS2 with ESP32S2
>>> import board
>>> i2c = board.I2C()
>>>
>>> while not i2c.try_lock():
... pass
...
...
...
$ |
I have fixed the Kaluga 1.3 space and |
Confirmed Try this code to see the exception crash: import board
import time
time.sleep(5)
import adafruit_dotstar
# status_light = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, brightness=0.1)
while True:
print("", time.monotonic(), end="\r")
time.sleep(1) control-c within the loop works fine unless the DotStar line is uncommented |
- update idf submodule to release/v4.3 - finish todo tasks held due to [email protected] - update SPI & I2C to make them v4.3 compatible
@anecdata Thanks for the thorough testing, the exception crash is now resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for updating the IDF!
Starting the work for #4182
Open Questions:
This is the first one, but there are more errors behind this. It would be great if someone who knows C could pickup from here.