2022-07-20 07:49 AM
The Flash of the chip can't be programmed. Mostly the error is that writing the first byte failed. But sometimes it is able to write a few bytes. It even worked like 3 times. The behavior is consistent over STM32CubeProgrammer and ST-Link Utility, and JTAG and SWD.
There are some side effects:
Thank you for your help.
Solved! Go to Solution.
2022-07-20 09:17 AM
Do a through review of your design, perhaps with an ST FAE assigned to your account.
With good design, the JTAG/SWD should be quite robust.
Differences on a board level check for power and component issues.
For FLASH, the VCAP pins and capacitors being particularly important.
Don't float BOOT0
Have NRST connected to any debug headers.
Make sure VDDA and VDD are powered. Similarly digital/analogue grounds.
2022-07-20 09:17 AM
Do a through review of your design, perhaps with an ST FAE assigned to your account.
With good design, the JTAG/SWD should be quite robust.
Differences on a board level check for power and component issues.
For FLASH, the VCAP pins and capacitors being particularly important.
Don't float BOOT0
Have NRST connected to any debug headers.
Make sure VDDA and VDD are powered. Similarly digital/analogue grounds.
2022-07-20 09:37 AM
Lower the SWD clock frequency in the tools used.
hth
KnarfB
2022-07-21 05:21 AM
@Community member thank you very much. VDDA was not connected.
Its working now.
@KnarfB Thank you for your help.