We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I started working with new procesor. I have my own pcb board with STM32F7. After upload program by SWD I have error: 'SWD Communication Failure' and I cannot debug my project, even connect normally to stm. I have to change option: Connect & Reset Options -> Connect under Reset. Why? If erase processor connected under reset it's backing again to be visible in Keil Debugging Settings. It's look like I'm programming bad sectors or something like that.
I'm using: Keil uVision v5.18 Keil ULink Pro programmator STM32F756ZG processor Ram for Algorithm: 0x2001000, size: 0x1000 Flash address: 0x08000000 size: 0x00100000
Hi, Yes, you are right. I haven't set up SWD in STMCubeMX. After this change, it's working.
If your code contains any bug that makes the wrong changes to some configuration bits, then you might either disable the debugging support or maybe fail some clocking requirements.
So it's more or less a standard issue with JTAG etc that downloaded firmware can fail the debugging interface. Connecting under reset means the processor has reached back to a known state and your code hasn't had time yet to run the code lines that makes the interface fail.