Skip to content

Conversation

@bugadani
Copy link
Contributor

@bugadani bugadani commented Aug 7, 2023

Successor of #679 and #681.

This PR is not complete as we must blanket-enable all clocks on startup, which esp-idf doesn't do (or, at least, not where I expect it to). Still, with this PR, esp-hal no longer writes WIFI/BT clock bit patterns into the peripheral clock control register, where those bits don't belong.

@bugadani bugadani force-pushed the esp32_clocks branch 4 times, most recently from 14390c8 to 9935a28 Compare August 7, 2023 17:19
@bugadani bugadani force-pushed the esp32_clocks branch 2 times, most recently from 71887e4 to feb5a15 Compare August 7, 2023 17:33
@bugadani bugadani marked this pull request as ready for review August 7, 2023 17:42
@bugadani
Copy link
Contributor Author

bugadani commented Aug 7, 2023

@bjoernQ I gave up.

I restored the clock blanket-enable, added a wall of comments above it, and tested that the async_ble and embassy_access_point examples work (or, at least they don't crash).

This is a bit unfortunate state to leave things in, but I'm a bit out of ideas and I'm not currently interested in solving this optimally. The result is still better than what I found, I hope :)

@bugadani bugadani changed the title Fix ESP32 wifi clocks Fix ESP32 radio clock code writing incorrect registers Aug 7, 2023
Copy link
Contributor

@bjoernQ bjoernQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! So, it's still kind of a mystery but it's cleaned up and we have a few explaining comments 👍

@bjoernQ bjoernQ merged commit 4baf0b9 into esp-rs:main Aug 8, 2023
@bugadani bugadani deleted the esp32_clocks branch August 8, 2023 06:25
playfulFence pushed a commit to playfulFence/esp-hal that referenced this pull request Sep 26, 2023
* Fix ESP32 radio clocks

* Blanket-enable radio clocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants