Skip to content
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

cpu/esp32: set bootloader XTAL frequency configuration to automatic #18829

Conversation

jmgraeffe
Copy link
Contributor

Contribution description

Sets the XTAL frequency configuration of the ESP32 bootloader to automatic (0). Before that, it was fixed/hardcoded to 40 MHz which results in UART output problems with non-40MHz boards such as the one in #18828.

Testing procedure

If you've a board with 26 MHz XTAL crystal at hand, flash and test any shell based application: make BOARD=esp32-wroom-32 -C tests/shell. If not, all tests should still pass on all ESP32 boards.

If everything works, UART will output text normally. Before the PR, rubbish should appear such as in the actual results of #18828.

Issues/PRs references

Fixes #18828.
Follow-up to #13059.

@jmgraeffe jmgraeffe requested a review from gschorcht as a code owner November 1, 2022 02:35
@github-actions github-actions bot added Area: cpu Area: CPU/MCU ports Platform: ESP Platform: This PR/issue effects ESP-based platforms labels Nov 1, 2022
Copy link
Contributor

@gschorcht gschorcht left a comment

Choose a reason for hiding this comment

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

Still works with 40 MHz XTAL.

@gschorcht gschorcht added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 1, 2022
@riot-ci
Copy link

riot-ci commented Nov 1, 2022

Murdock results

✔️ PASSED

b0686ce cpu/esp32: set bootloader XTAL frequency configuration to automatic

Success Failures Total Runtime
2000 0 2000 06m:34s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@gschorcht gschorcht merged commit e802203 into RIOT-OS:master Nov 1, 2022
@kaspar030 kaspar030 added this to the Release 2023.01 milestone Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpu/esp32: wrong XTAL frequency resulting in serial rubbish on ESP32 board with custom frequency
4 participants