I have 8 servos in PWM channels of KL25Z that i want to control via serial from my Visual Studio solution.
I'm using UART1 to receive data and update the tpm period that control the servos.
My problem is that i get a HardFault when i call the UpdateServo function from the UART1 IRQHandler.
I thinking it's happening because i'm calling it from the interrupt handler.
Any idea how i can fix this problem?
MCUXpresso project are attached.
Thanks for your help
Original Attachment has been moved to: BipedRobot.zip