Menu

#148 Applications goes flat when debugger is not connected

Version 1.x
closed
None
5
2015-06-23
2015-05-25
gerberto
No

Hi,

I'm using the SEGGER J-Link debugger. It seems that my application doesn't start when the J-Link is not connected, also when selecting the "release" (instead of debug) configuration. I think it has something to do with Semihosting..

Steps to reproduce:
-Flash target with GDB SEGGER J-Link debugging configuration, and debug application
-Disconnect J-Link from target, en reset target by pressing the reset button on the PCB.
-Application doesn't restart or hangs..

How can the application start in case no debugger is connected?

The project is setup according to the attached picture.

Thanks.

Info:
-Eclipse Kepler SR2
-Segger J-Link
-STM32 Project created based on plugin version 2.1.2-201402180751

1 Attachments

Discussion

  • Liviu Ionescu (ilg)

    sure, semihosting calls are available only via the debugger.

     
  • Liviu Ionescu (ilg)

    if you recreate the project with the recent F4 template, the exception handler intercepts the semihosting code and returns, so it also works without the debugger.

     
  • gerberto

    gerberto - 2015-06-23

    OK, thanks. Ticket can be closed.

     
  • Liviu Ionescu (ilg)

    • status: open --> closed
    • assigned_to: Liviu Ionescu (ilg)