I can't do "program download (without)debugging"

Sysprogs forums Forums VisualGDB I can't do "program download (without)debugging"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25444
    lowleveler00
    Participant

    Editor : VisualStudio Community 2019

    VisualGDB version : 5.4R11 (build 3235), Embedded Edition

    DEBUGGER : ST-LINK V2 (latest FW)

     

    I tried to download my project (used it before) to developed circuit. but Suddenly, it does not work. with error message associate ST-LINK or MEMORY MAP or OpenOCD (i guess).

    Attach the log file. please help.

    best reguard

     

     

    • This topic was modified 5 years, 3 months ago by lowleveler00.
    Attachments:
    You must be logged in to view attached files.
    #25461
    support
    Keymaster

    It looks like OpenOCD fails to program the FLASH memory:

    [    3516 ms] &"Error finishing flash operation\n"

    This might be caused by a bug in the STM32L4 FLASH driver that sometimes doesn’t work when programming small ELF sections. Our best advice would be to try comparing the project that can be programmed with the one that triggers the error (e.g. using the Embedded Memory Explorer), and try eliminating the differences between them. Alternatively, please try using Segger J-Link. It comes with its own fully supported GDB stub that replaces OpenOCD and usually works much more reliably.

    #25462
    lowleveler00
    Participant

    thanks to answer.

    this time, I try to reinstall all debugger driver for fix this problem.

    I wonder this method solve the problem or not.

    • This reply was modified 5 years, 3 months ago by lowleveler00.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.