cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to flash my custom pcb

Premjith99
Associate

iam attatching a pdf of my ki cad , let me know the what prevents to flash my code . this is the below error message coming while iam trying to flash "

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Target no device found
Error in initializing ST-LINK device.
Reason: No device found on target."    could you please verify the circuit

 

5 REPLIES 5
Ozone
Principal III

There is far too little information in the schematics alone to judge why a finished board does not run.

Did you check the supply voltage, at the MCU pins directly ?
Did you check the current consumption of the board ?
Did you validate the PCB's connections from the debug pins to the MCU pins ?

TDK
Super User

The schematic looks okay. Is the board powered? How? What programmer are you using? Is it genuine? Can STM32CubeProgrammer see the programmer? Can it see the voltage on the board?

If you feel a post has answered your question, please click "Accept as Solution".

Welcome to the forum.

As @Ozone said, you need to give more detail - see: How to write your question to maximize your chances to find a solution

 


@TDK wrote:

What programmer are you using? Is it genuine? 


@Premjith99 see: How to recognize a genuine ST-LINK/V2 versus a cloned one.

 

You don't have NRST on your SWD connector - always good to include that!

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

I would connect a debug adapter to a custom board only once all mentioned checks are ok.

Not to mention, I would have recommended to begin HW design with smaller and simpler MCU.
Many C0xx and F0xx devices come e.g. in TSSOP-20 packages.

Check part orientation

Check voltage on VCAP pin, expect 1.25V

Check voltage on NRST pin, expect high level, ie 3.3V

Check you have Vtarget (pin 1/2 on 20-pin) to the ST-LINK, needs 3.3V from your system. Check that STM32 Cube Programmer reports this voltage.

Check you have GND to ST-LINK

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..