2025-01-19 06:37 AM
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.
2025-01-19 06:51 AM
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?
2025-01-19 07:27 AM
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?
2025-01-19 07:33 AM
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.