STLink GDB Issue

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • STLink GDB Issue

      Hi

      I'm trying to evaluate S-ES and hitting a problem when I attempt to debug using my STLink (V3, latest firmware). Am wondering if anyone can assist? Pre-empting the obvious comment (!) I would say that buying J-Link to be able to evaluate the IDE is not feasible.

      Attached are:
      a. batch file for GDB start (I execute the batch file then Connect to the GDB then start a debug session)
      b. debug log from GDB
      c. PC / registers at the end of load / start of debug session: all are 0xa05f0001
      d. debug settings
      e. GDB settings

      Instructions followed are those at: Embedded Studio with GDB Server - SEGGER Wiki

      Application is a simple OS_delay while(1){} loop (it is the blinky example with the BSP calls commented out). It runs OK on an STM32F429I-DISCO1 using the onboard STLink upgraded to J-Link. I am trying to get it to run on a custom target which does not have onboard STLink. I have proven the hardware with MDK + STLink, STM32Cube + STLink.

      Any ideas what I am missing to get this to work?

      Thanks
      Mark
      Images
      • Screenshot 2022-05-18 203002.jpg

        115.73 kB, 441×1,057, viewed 30 times
      • Screenshot 2022-05-18 203350.jpg

        72.69 kB, 763×397, viewed 31 times
      • Screenshot 2022-05-18 203334.jpg

        200.11 kB, 904×877, viewed 34 times
      Files
    • Hello,

      Thank you for your inquiry.
      What exactly is the issue? According to the log the gdb connection was successful, the debug session started correctly and the download worked.
      Could you clarify what the unexpected behaviour is?
      What board are you using exactly with the ST-Link v3?

      The Wiki Guide uses a newer version of CubeIDE than you do apparently. Could you try installing the same version from the Guide and replicate the steps from the guide exactly? Including the same command line options?

      the.mark.robertson wrote:

      Am wondering if anyone can assist? Pre-empting the obvious comment (!) I would say that buying J-Link to be able to evaluate the IDE is not feasible.
      This kind of contradicts the following remark:

      the.mark.robertson wrote:

      It runs OK on an STM32F429I-DISCO1 using the onboard STLink upgraded to J-Link.
      In our opinion there are plenty of ways to try out Embedded Studio.
      You can even try it out without a target device using our simulator.

      Anyhow the ST-Link setup should work as described in the Wiki article, so currently we assume it has something to do with a setup error.

      Best regards,
      Nino
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.
    • New

      Hi Nino

      Thanks for your notes. I have revisited this and it (still) does not work. I have taken a few different approaches and documented two - see attached PDF.

      I have checked and the STM32CubeProgrammer (reported by GDB) is 2.10. Yes, GDB connects. I am using STLINK-V3SET. Firmware is latest.

      I removed the V3SET isolation board: still have the same issues.

      Thanks
      Mark

      Files

      The post was edited 2 times, last by the.mark.robertson ().