Skip to content

fix: correct SCB1 clock divider for PSoC Edge UART - #47

Open
AkshayChandra-IFX wants to merge 1 commit into
edge-mainfrom
uart-edge-main
Open

AkshayChandra-IFX wants to merge 1 commit into
edge-mainfrom
uart-edge-main

Conversation

@AkshayChandra-IFX

@AkshayChandra-IFX AkshayChandra-IFX commented Nov 12, 2026 •

Copy link
Copy Markdown

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:

  1. test_uart_rx, before (2/11 test passed) - hangs waiting for first byte, after fix : 10/11
    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
  2. test_uart_tx, before (7/11), after (8/11)

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

@AkshayChandra-IFX AkshayChandra-IFX changed the title Uart edge main fix: correct SCB1 clock divider for PSoC Edge UART Nov 12, 2026
@AkshayChandra-IFX AkshayChandra-IFX changed the title fix: correct SCB1 clock divider for PSoC Edge UART fix: correct SCB1 clock divider for UART Nov 12, 2026
@AkshayChandra-IFX AkshayChandra-IFX changed the title fix: correct SCB1 clock divider for UART fix: correct SCB1 clock divider for psoc edge UART Nov 12, 2026
@AkshayChandra-IFX AkshayChandra-IFX changed the title fix: correct SCB1 clock divider for psoc edge UART fix: correct SCB1 clock divider for PSoC Edge UART Nov 12, 2026
@djaumann

Copy link
Copy Markdown

Except the "default" PR message it looks good ;)

@djaumann

Copy link
Copy Markdown

Ah it is a draft ... never mind

Use and enable PERI0 group 8 instead of group 1.

@IFX-Anusha IFX-Anusha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good!

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.

3 participants