2024-08-05 04:05 AM - edited 2024-08-05 04:25 AM
I am trying to upload my code using ST Link(SWD)into a custom board with an STM32 Core. I am using serial wire debug for programming. So I am getting the above shown error messages. If anyone have come across this issue, please help me resolve it.
I tried uploading the code using STM Cube Programmer also. I am getting the above error.!
2024-08-05 06:05 AM
Perhaps pins are not wired up correctly. Can you share a schematic? How is the board connected to the programmer specifically?
Looks like it's detecting a voltage. That's good.
2024-08-05 06:35 AM
Focus on your hardware implementation, doesn't appear viable.
Check power, especially VDDA/VSSA
What STM32? The make a handful of different ones, with different expectations.
2024-08-05 10:23 PM - edited 2024-08-13 09:24 PM
I tried programming the custom designed board using
i.) an external ST-LINK and also
ii.) using the debugger IC in the evaluation board(STM32L496ZGT6).
Both gave the same error as i mentioned in the previous posts.
NOTE:
I am able to program an Evaluation board without using the On-chip debugger IC by using an external ST-LINK. But not able to do the same with the custom designed board. Not able to find the underlying cause.!
In the debugger configuration I am able to detect the IC of the custom board. I am using Evaluation version debugger IC of STM32L496ZG to program a STM32F423RH. I am able to detect this IC when I change the setting to Segger J Link. I dont know why this happens.
2024-08-05 11:21 PM
I think the SWD interface also needs NRST.
Not sure though... until now I only used the complete flash adapter, incl. VCC and "GND detect".
So, what's the minimum pinning to flash (any?) STM32 via SWD?
2024-08-06 12:31 AM
STM32 via SWD
2024-08-06 03:13 AM - edited 2024-08-06 03:14 AM
2024-08-06 03:32 AM
I just checked some other posts, just to make sure that my next STM32 design will be programmable with its 5-pin SWD connector...
It seems that ST-Link needs the STM's supply voltage, NRST is only needed if the SWD pins are used for other purposes.
2024-08-06 05:33 AM
What's going on here? VCAP should only have the capacitor to ground. If you don't load R2, this should work.
Why does VSS_3 have a resistor to ground? It'll probably work, but doesn't make a lot of sense to me.
I don't see any other issues, although you don't show VDDA generation. Assuming that's fine.
SWD does not need VCC or NRST, but they can be useful to have.
2024-08-06 06:00 AM - edited 2024-08-13 09:24 PM
sir what should i do?