I am using S9KEAZN64ACLH in E-bicycle, and now facing a uart issue. Please help to check, urgent. thanks!
I use both UART0 and UART1, and go to Stop(Deepsleep) mode.
1. They disable the UART0 then go to __WFI(), when wake the mcu via UAR1 interrupt, it will go to Hardfault interrupt. 2. If they donot disable the UART0, and wake the mcu via UAR1 interrupt, it will wake normally.
The simply code and schematic are as attachment, can you help to debug what is the reason of the hardfault? thanks!
And the IDE is KEIL.