2024-03-07 06:50 AM
Hi,
I using STM32F407IG in IAR Embedded workbench.
When I debug the program the SPI communication does not work.
what could be the reason?
Without debug the SPI work
2024-03-11 04:20 AM
I didn't check
2024-03-11 04:28 AM
You need to check!
2024-03-11 04:36 AM - edited 2024-03-11 04:36 AM
Is there anything else I can do except for checking the lines?
how debug mode can affect the communication? maybe I can change the clock or the bound rate in some way that can help?
2024-03-11 04:45 AM
Well, what's happening on the lines is fundamental to the operation of the SPI - so you really need to know!
2024-03-11 06:44 AM
But I know that the communication works properly in normal working condition (not in debugging), so, somehow the debugging mode affect the communication. how the debugger affect it?
2024-03-11 07:13 AM
That's what you need to find out!
It's your system - so you need to be leading the investigation.
You know your system - we don't, and you've given previous little information.
@Aldo1 wrote:how the debugger affect it?
It really shouldn't - apart from the obvious effects of halting execution.
Does your code contain anything which detects the presence of the debugger, and changes things based on that?