Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

ARM Cortex-M: Failed to initialize debug session

02-Jun-2023

Possible solutions

LPC devices

The most common cause is that image programmed in the Flash prevents any further debug access or connections and fails to establish debug session. The image usually contains code that:

  • Sets the MCU clocks up incorrectly
  • Enables a watchdog timer
  • Puts the MCU into a very low-power mode
  • Switches off some, or all of the multiplexed debug pins (JTAG/SWD)

If the CPU comes out of reset and executes such code before the BlueBox takes control of the system, the debugger is not able to make a successful debug connection and results in an error message Failed to initialize debug session.

Trigger an ISP reset where the appropriate ISP pin(s) is pulled low as the board is reset.

LPC MCUs typically feature one or more ISP pins which are read by the built-in bootloader at reset which determine whether the image in FLASH should be executed or not. It is typically possible to recover a target with a bad image programmed into FLASH by triggering an ISP reset.


XMC1000 devices

Refer to the topic System reset fails for more information. 


Failed to initialize debug session

Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!