Skip to main content
Super User
September 13, 2017
Question

How to break with debugger into a running program on ST8?

  • September 13, 2017
  • 3 replies
  • 2028 views
Posted on September 14, 2017 at 00:34

Dear experts,

Can anybody advice how to break into ST8 that started running without debugger connected?

In the Develop IDE I see only one option to start debugging, and it updates the program memory on the target. The target, I guess, will then reset/restart. How to avoid the restart?

#debugging
    This topic has been closed for replies.

    3 replies

    Pavel A.Author
    Super User
    September 25, 2017
    Posted on September 25, 2017 at 15:51

    Bump?

    Graduate II
    September 25, 2017
    Posted on September 25, 2017 at 16:47

    Discuss with your tool vendor.

    Pavel A.Author
    Super User
    September 25, 2017
    Posted on September 25, 2017 at 18:20

    The tool vendor is STMicroelectronics... as it says in the 'About' dialog of the IDE...

    Graduate II
    September 25, 2017
    Posted on September 25, 2017 at 19:03

     ,

     ,

    Assuming for a second they aren't the only commercial tool vendor

    https://www.iar.com/iar-embedded-workbench/ ♯ !?architecture=STM8&,device=ASTWBC5V

     ,

    Not sure if the STM8 has an inherent ability to support hot-plug or post-mortem debugging.

    Consider adding your own diagnostic/monitor functions, ability to dump state when button, jumper or GPIO toggled.

    Pavel A.Author
    Super User
    September 26, 2017
    Posted on September 26, 2017 at 13:28

    Thank you. As I learn the ST chip and tools, I found ways to do without breaking in a running system.  Other toolkits are not an option for me unfortunately, the customer has chosen the STVD. 

    Do you know perhaps, is inability to attach to running chip an inherent limitation of the hardware - ST8 or SWIM interface?

    regards,

    -- pa