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

[HELP] STM32H7 timer driver usage #15502

Open
1 task done
geniusdo opened this issue Jan 12, 2025 · 1 comment
Open
1 task done

[HELP] STM32H7 timer driver usage #15502

geniusdo opened this issue Jan 12, 2025 · 1 comment
Labels
Community: Question Further information is requested

Comments

@geniusdo
Copy link
Contributor

Description

I tried to use timer driver based on this page timer. But when I toggled the option TIMER ARCH IMPLEMENTATION, my nsh just stucked. Any more detailed do I need to know to get this through? Any helps will be appreciated!

Verification

  • I have verified before submitting the report.
@geniusdo geniusdo added the Community: Question Further information is requested label Jan 12, 2025
@raiden00pl
Copy link
Member

there is no support for CONFIG_TIMER_ARCH in stm32h7 and there is no support for CONFIG_TIMER in any of upstream stm32h7 boards. You can see on stm32f4discovery how this can be done on board side:

https://github.com/apache/nuttx/blob/master/boards/arm/stm32/stm32f4discovery/src/stm32_timer.c and https://github.com/apache/nuttx/blob/46c3f354b38291ee400bdbece6945ae6ab883b29/boards/arm/stm32/stm32f4discovery/src/stm32_bringup.c#L364C15-L372

FYI: timer drivers in stm32 don't implement getstatus() operation required by TCIOC_GETSTATUS used in examples/timer, so this example won't work properly with stm32 chips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants