SPI communication while debuging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-07 6: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
- Labels:
-
IAR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 4:20 AM
I didn't check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 4:28 AM
You need to check!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 4:36 AM - edited ‎2024-03-11 4: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 4:45 AM
Well, what's happening on the lines is fundamental to the operation of the SPI - so you really need to know!
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 6: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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-11 7: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?
A complex system designed from scratch never works and cannot be patched up to make it work.

- « Previous
-
- 1
- 2
- Next »