cancel
Showing results for 
Search instead for 
Did you mean: 

Can't debug NUCLEO-F746ZG in stm32cubeide

Aa.6
Associate II

When i try to debug my eval board, I get an error:

Error in final launch sequence:

Device debug script

The code uploads and runs correctly, only the debugging function does not work.

Serial Wire is activated in CubeMX.

The IDE open a new tab "startup_stm32f746zgtx.s" and the cursor is on line "ldr  sp, =_estack     /* set stack pointer */"

1 ACCEPTED SOLUTION

Accepted Solutions
Aa.6
Associate II

I can't reproduce this error.

Now, it works at all combinations.

Thanks a lot for Your help.

View solution in original post

4 REPLIES 4
Andrew Neil
Evangelist III

"The code uploads and runs correctly, only the debugging function does not work"

Does your code put the CPU to sleep, and/or disable the SWD pins?

Aa.6
Associate II

I only toggle the LED in the code.

This is a strange behavior.

If I connect a PCB with a F417 soldered to the eval-board debugger, it works.

It works with the F746, when i put a USB-Hub between my notebook and the eval-board.

"It works with the F746, when i put a USB-Hub between my notebook and the eval-board."

Is that a powered hub?

Maybe the F746 just takes too much current?

Have you tried powering the target separately?

Aa.6
Associate II

I can't reproduce this error.

Now, it works at all combinations.

Thanks a lot for Your help.