Skip to content

Conversation

@MCHP-MPU-Solutions-SHA
Copy link
Contributor

@MCHP-MPU-Solutions-SHA MCHP-MPU-Solutions-SHA commented Jul 28, 2025

Issue: the alarm 1 do not generate interrupt
There are three compare registers in a SAM TC channel:
RA --> alarm 0
RB --> alarm 1
RC --> top_value
By default the RB/TOIB was configured as an input and no longer generates interrupt.
Set the direction of TIOB to output for alarm 1 interrupt.

Fixes #85018

Many thanks.
Xing.

Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

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

Test on sam_v71_xult/samv71q21: Ok

@nandojve nandojve added this to the v4.3.0 milestone Jul 29, 2025
Issue: the alarm 1 do not generate interrupt
There are three compare registers in a SAM TC channel:
RA --> alarm 0
RB --> alarm 1
RC --> top_value
By default the RB/TOIB was configured as an input and no longer
generates interrupt.
Set the direction of TIOB to output for alarm 1 interrupt.

Fixes zephyrproject-rtos#85018

Signed-off-by: CHEN Xing <[email protected]>
@sonarqubecloud
Copy link

Copy link
Member

@nandojve nandojve left a comment

Choose a reason for hiding this comment

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

Hi Xing,

Thank you so much for this patch!

@MCHP-MPU-Solutions-SHA
Copy link
Contributor Author

Hi Xing,

Thank you so much for this patch!

You are welcome!

@cfriedt cfriedt merged commit 8f5daca into zephyrproject-rtos:main Jul 30, 2025
26 checks passed
@github-actions
Copy link

Hi @MCHP-MPU-Solutions-SHA!
Congratulations on getting your very first Zephyr pull request merged 🎉🥳. This is a fantastic achievement, and we're thrilled to have you as part of our community!

To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge.

Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁

@jfischer-no
Copy link
Contributor

The CI is failing on sam4l_wm400_cape, west twister -p sam4l_wm400_cape/sam4lc4b -s drivers.counter.basic_api, after commit (8f5daca). For example https://github.com/zephyrproject-rtos/zephyr/actions/runs/16775544341/job/47501188595?pr=87269

@MCHP-MPU-Solutions-SHA
Copy link
Contributor Author

MCHP-MPU-Solutions-SHA commented Aug 7, 2025 via email

@MCHP-MPU-Solutions-SHA
Copy link
Contributor Author

Create PR #49 for zephyrproject-rtos/hal_atmel.

Will update (update the revision of hal_atmel in west.yml) and re-open this PR once PR #49 has been merged.

@pdgendt
Copy link
Contributor

pdgendt commented Aug 11, 2025

Create PR #49 for zephyrproject-rtos/hal_atmel.

Will update (update the revision of hal_atmel in west.yml) and re-open this PR once PR #49 has been merged.

You can already create the PR referring to your PR, see https://docs.zephyrproject.org/latest/develop/modules.html#submitting-changes-to-modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Counter platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

drivers: counter: sam: The alarm 1 do not generate interrupt

6 participants