Visualgdb problem with Nucleo

Sysprogs forums Forums VisualGDB Visualgdb problem with Nucleo

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #11269
    Arturs22
    Participant

    Hi,

    I try to use Visual Studio with my NUCLEO-F103RB board using VisualGDB. I spent a lot of time to do it but without success.
    Everything I did according to the documantation https://visualgdb.com/tutorials/arm/st-link/ but I have some problems after pressing Test OpenOCD settings in Debug settings (please see below).

    If I use STM32 ST-LINK Utility It is possible to connect with my board but It is necessary to change mode from Normal to Connect Under Reset in Target/Settings/ menu (I do not know why I have to do it).
    Unfortunately I have not found information how to set the option in VisualGDB.

    Could you tell me how to solve the problem,please ?

    Printscreen with the problem

    Regards
    Arthur

    • This topic was modified 6 years, 11 months ago by Arturs22.
    • This topic was modified 6 years, 11 months ago by Arturs22.
    #11272
    support
    Keymaster

    Hi,

    We actually have a detailed tutorial showing how to configure an equivalent of “Connect under reset” with VisualGDB: https://visualgdb.com/tutorials/stm32/sleep/

    Let us know if it does not help.

    #11273
    Arturs22
    Participant

    It helps. I founded it about 2 hours ago. The connection is ok but If I set a brekpoint, the microcontroller does not stop in the place.
    The code is very simple, I added only one line where the LED is on into standard code generated by STM32CubeMx.
    I thought that was problem with connection with NUCLEO and the described method did not work for 100%. I decided to solve problems with errors which I have without using the solution https://visualgdb.com/tutorials/stm32/sleep/.
    Now I do not know where exactly there is a problem. Still problem with proper connection or someting wrong I do with the breaking point. I saw and read many tutiorials and no one is doing anything special only connect board, configure, set breakpoint and that’s all 🙂

    Regards
    Arthur

    #11278
    support
    Keymaster

    Hi,

    If your code explicitly manipulates CPU sleep states and power-related registers, you may need the “connect under reset” option as described in the tutorial. If you are not sure, we would suggest editing the OpenOCD scripts as described in the tutorial and checking if it solves the problem.

    #11281
    Arturs22
    Participant

    If I edit the OpenOCD scripts according to the description https://visualgdb.com/tutorials/stm32/sleep/ then  the connection is ok but a breakpoint does not work (software never stops at the breakpoint place).

    The code is very simple, I added only one line where the LED is on into standard code generated by STM32CubeMx.

     

    #11302
    support
    Keymaster

    Hi,

    This could be caused by power or connectivity issues. Can you reproduce the same behavior with the “Blinking LED” project created by VisualGDB?

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.