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

CH582M won't work at system frequency 2 MHz and lower #31

Open
aleph-five opened this issue Mar 14, 2023 · 0 comments
Open

CH582M won't work at system frequency 2 MHz and lower #31

aleph-five opened this issue Mar 14, 2023 · 0 comments

Comments

@aleph-five
Copy link

aleph-five commented Mar 14, 2023

Hello!
I tried to set system frequency 2 MHz via function SetSysClock(), but after that microcontroller goes into hardfault. In datasheet I found information that Fsys range supports this frequency. I tried to disable SysTick interrupt but this didn't help. I read the implementation of SetSysClock() and info about related registers, it seems that all ok. I suggest that problem may be because flash won't work at this frequency (because if hardfault handler contains custom reset function calling from flash, it won't reset. On the other hand, if I use PFIC_SystemReset(), which is inlineable and only uses peripheral register, it resets). But I would like to know real reason of that.

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

No branches or pull requests

1 participant