Skip to main content
Aa.6
Associate
July 10, 2022
Solved

Can't debug NUCLEO-F746ZG in stm32cubeide

  • July 10, 2022
  • 4 replies
  • 1639 views

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 */"

This topic has been closed for replies.
Best answer by Aa.6

I can't reproduce this error.

Now, it works at all combinations.

Thanks a lot for Your help.

4 replies

Andrew Neil
Super User
July 11, 2022

"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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Aa.6
Aa.6Author
Associate
July 11, 2022

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.

Andrew Neil
Super User
July 11, 2022

"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?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Aa.6
Aa.6AuthorBest answer
Associate
July 12, 2022

I can't reproduce this error.

Now, it works at all combinations.

Thanks a lot for Your help.