Repository navigation
fix: correct SCB1 clock divider for PSoC Edge UART - #47
Open
AkshayChandra-IFX wants to merge 1 commit into
Open
AkshayChandra-IFX wants to merge 1 commit into
AkshayChandra-IFX wants to merge 1 commit into
Conversation
AkshayChandra-IFX
force-pushed
the
uart-edge-main
branch
from
November 12, 2026 06:15
5478d7f to
0891d0d
Compare
|
Except the "default" PR message it looks good ;) |
djaumann
approved these changes
Nov 12, 2026
|
Ah it is a draft ... never mind |
jaenrig-ifx
force-pushed
the
edge-main
branch
from
November 13, 2026 03:03
471fc0d to
323993f
Compare
Use and enable PERI0 group 8 instead of group 1.
AkshayChandra-IFX
force-pushed
the
uart-edge-main
branch
from
November 13, 2026 07:58
0891d0d to
2e421dd
Compare
AkshayChandra-IFX
marked this pull request as ready for review
November 13, 2026 08:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Serial1 could not send or receive data.
SCB1 is clocked from clk group 8, but the overlay assigned it a group-1 divider (peri0_group1_16bit_0), and the group-8 divider was never enabled. As a result, SCB1 had no clock.
So this PR assigns and enables clock to scb1.
With this fix:
fixed tests: wait_and_read_one_byte, wait_and_peek, wait_and_read_multi_bytes, wait_and_read_in_loop, wait_for_println, read_longer_than_writable, check_no_available_read_peek, write_reply_back
Issue: (unrelated to this commit)
tx not_ready, tx end, rx end fails. Serial1 always reports true, but the tests expect false before begin() and after end().
tx availableForWrite also fails expects 0
this will be handled in a follow up PR