Skip to main content
Visitor II
May 22, 2024
Question

ST-Link contolled by Python

  • May 22, 2024
  • 3 replies
  • 1990 views

Hello everybody,

I am building a regression test system and I want to control an ST-Link with a Python script/program. I need the capability to set Breakpoints and optimally extract them automatically from the hex file that gets flashed on the MCU. I need to be able to toggle some debug pins on the MCU as well from within the same program and I need to flash the MCU. So, the question is what is the best way to do things like that and is there any official support from ST for something like that or something similar.

Thanks in advance

    This topic has been closed for replies.

    3 replies

    Super User
    May 22, 2024
    Super User
    May 22, 2024

    https://github.com/pyocd/pyOCD ?

     I need the capability to set Breakpoints and optimally extract them automatically from the hex file that gets flashed on the MCU.

    Sorry, what? extract breakpoints from hex file? If you mean to patch bkpt instructions in the hex, of course you can do this with python.

     

     

    ST Employee
    May 29, 2024

    This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.