cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging issue with ST-Link JTAG mode with external QSPI flash.

Akast.2
Associate II

I am working on following platform:

Hardware - STM32H745I-DISCO board.

IDE - STM32CubeIDE v1.8.0.

I am using JTAG mode in ST-link for debugging. I am using external QSPI flash to store my code and external SDRAM to run the code. The code first goes in bootloader which is present in the internal flash after which the code jumps to the location of external QSPI flash. But as soon as the code tries to jump at location of external QSPI flash, error "Target is not responding, retrying..." comes in console window. After that debugging session ends and IDE comes out of the debugging session.

Please help how to come out of this issue. In SWD mode debugging is working fine with both the cores.

5 REPLIES 5

Check you're not reconfiguring any of the JTAG pins.

Don't reconfigure the clocks and memory interfaces a second time.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Akast.2
Associate II

@Community member​  No, JTAG pins are not used anywhere else.

When I am debugging the CM4 and CM7 cores individually I am able to debug them. But when I am trying to debug both the cores together then error comes and debugging session ends.

Hard to know what CubeIDE / GDB add to the mix.

The cores should be viable together provided the driver stack is robust. Sleeping cores will be a problem, make sure all related debug flags are enabled.

Perhaps try the experiment on more capable tools.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

>  In SWD mode debugging is working fine with both the cores.

Great. So, use the SWD mode?

I haven't looked at the STM32H745I-DISCO schematic recently, does it even wire a full complement of JTAG pins?

The core and ST-LINK/V3 is supposed to support multi-core via the SWD

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..