cancel
Showing results for 
Search instead for 
Did you mean: 

cannot connect to nucleo-h563zi

mete
Senior

It was working fine yesterday, today I cannot connect to the board. It is enumerated/identified but stm32cubeprogrammer connect fails. I tried different modes without luck. Now I am also trying with external debugger (jlink) (board powered by USB charger, JP2 at CHGR position, JP1 fitted) and it also cannot connect and with JTAG it logs these. Is it normal device #1 is unknown ? and what could be the reason for these ? 

 

Connecting to target via JTAG
InitTarget() start
JTAG selected. Identifying JTAG Chain...
TotalIRLen = 9, IRPrint = 0x0011
JTAG chain detection found 2 devices:
 #0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP
 #1 Id: 0x06484041, IRLen: 05, Unknown device
JTAG Chain Identified. Connecting to DAP TAP...
Successfully connected to selected DAP TAP.
DAP initialized successfully.
Can not attach to CPU. Trying connect under reset.
JTAG selected. Identifying JTAG Chain...
TotalIRLen = 9, IRPrint = 0x0011
JTAG chain detection found 2 devices:
 #0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP
 #1 Id: 0x06484041, IRLen: 05, Unknown device
JTAG Chain Identified. Connecting to DAP TAP...
Successfully connected to selected DAP TAP.
Error: Failed to initialized DAP.
Connecting to CPU via connect under reset failed.
InitTarget() end - Took 112ms
Connect failed. Resetting via Reset pin and trying again.
InitTarget() start
JTAG selected. Identifying JTAG Chain...
TotalIRLen = 9, IRPrint = 0x0011
JTAG chain detection found 2 devices:
 #0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP
 #1 Id: 0x06484041, IRLen: 05, Unknown device
JTAG Chain Identified. Connecting to DAP TAP...
Successfully connected to selected DAP TAP.
Error: Failed to initialized DAP.
Can not attach to CPU. Trying connect under reset.
JTAG selected. Identifying JTAG Chain...
TotalIRLen = 9, IRPrint = 0x0011
JTAG chain detection found 2 devices:
 #0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP
 #1 Id: 0x06484041, IRLen: 05, Unknown device
JTAG Chain Identified. Connecting to DAP TAP...
Successfully connected to selected DAP TAP.
Error: Failed to initialized DAP.
Connecting to CPU via connect under reset failed.
InitTarget() end - Took 112ms
Cannot connect to target.

 

 

 

4 REPLIES 4
mete
Senior

I still do not know what was the problem but I powered it on a few times with BOOT0=HIGH and then the connection with stlink started to work normal.

Issamos
Lead II

Hello @mete 

Happy that your problem has been solved. 

Starting your board and Boot0=1 activate the bootloader. I think this was the solution for your problem.

Best regards.

II

On the H7 the recovery method would suggest the LDO / SMPS settings in your code don't match the hardware design. On the H5 not sure, but the NUCLEO I think uses SMPS, check the other jumpers and solder-bridged vs defaults.

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

I didnt change anything on the board (SBs etc.), and I actually do not modify anything related to power or clock in the system init, so it is the same as reset or default state. I realized after I write a small program (actually two, to the secure and nonsecure regions) to the flash, this happens again and I need to use BOOT0 again. I am still trying to find out.