Skip to main content
Visitor II
January 19, 2025
Solved

Cannot find STM32F405RGT6 target after flashing software.

  • January 19, 2025
  • 1 reply
  • 545 views

Hi ST team,

 

Today I have an issue in my hardware.

I flash a software via STLink in debug mode succesfully. When I start the program, the console shows that "cannot read register..." or something like that :( I cannot remember.

After that, STLink cannot find the target board so that I cannot reflash or do anything with my hardware.

 

I tried the same steps in other hardware and the same issue happened so I think this is not hardware issue. 

 

Please help me check this issue. I also attached Debug folder. Could you please help me try to see if issue also happens in your hardware?

 

Thank you very much.

 

    This topic has been closed for replies.
    Best answer by phonght32

    Hi,

     

    Now I can reflash again.

     

    I connect BOOT0 to HIGH and keep pulling this pin during flashing. Then it work :)

     

    Thank you very much for your help.

    1 reply

    Graduate II
    January 19, 2025

    Does your debug connection include NRST? Perhaps try "Connect Under Reset" if it does.

    Can you pull BOOT0 HIGH? Can it connect if it runs code from ROM rather than your code in FLASH?

    Do you interfere with the PA13/PA14 pins? Disable/block SWD/JTAG connectivity?

    phonght32Author
    Visitor II
    January 19, 2025

    Hi,

     

    My debug connection include NRST and currently setting is "Connect Under Reset".

     

    When I connect BOOT0 to High, I can find the target by "st-info --probe" as below. But still cannot flash again by STLink

    Found 1 stlink programmers
    version: V2J45S7
    serial: 56FF72066580515247340167
    flash: 1048576 (pagesize: 16384)
    sram: 196608
    chipid: 0x413
    dev-type: STM32F4x5_F4x7

     

    I interface with PA13/PA14. I didnot change my setting anymore so that I think SWD/JTAG is not disabled in my project.

     

    Do you have any ideas?

    phonght32AuthorAnswer
    Visitor II
    January 19, 2025

    Hi,

     

    Now I can reflash again.

     

    I connect BOOT0 to HIGH and keep pulling this pin during flashing. Then it work :)

     

    Thank you very much for your help.