2021-09-18 03:41 AM
the uart stops working and code gets stuck. Can anyone tell me why this is happening?
2021-09-18 04:45 AM
Please try to keep the title/summary short with the bulk of the detail within the post.
>>Can anyone tell me why this is happening?
No, you'll want to use a debugger, and perhaps a scope or logic analyzer to inspect external pins.
>>the uart stops working and code gets stuck.
Stuck where? If you stop/break execution in the debugger, where does it look to be stuck?
Try instrumenting your code to better understand the flow prior to the failure.
The SWO/SWV might be usable if the UART really isn't working.
Repeatedly entering the same interrupt handler?
Stuck in a while(1) loop like Error_Handler() or HardFault_Handler() and not reporting that it reached them, or how?
How is the SPI clocked, exactly? If you're tapping the board source are you distorting or stopping it?
The SPI peripheral has a prescaler, but the frequencies you can hit are limited by the APB source. You might have to adjust down the AHB/CPU clock to hit specific targets.
2021-09-18 06:42 AM
Any betazoid who can answer? Spi, usart...
2021-09-19 09:15 PM
Hi Tesla DeLorean thanks for the reply.ok i will do that . In this inage there is prescalar and baud rate. my doubt is that does this baud rate reperesent the clock given by controller to slave device.