I have a custom STM32 board which has basically only the needed components to flash and use an STM32F103RET6 on board. This means, there are only a few capacitors for voltage stability, an 8MHz quarz + circuitry, and a few connectors on it.
I have the SWDIO, SWCLK and NRST lines connected through a 100 Ohms resistor exposed to a connector, so I can use them to program the device.
Now the problem ist, that I cannot connect to the device via STM32CubeProgrammer, nor the CLI, nor my IDE of choice (Keil uVision).
When I use my ST-LINK V2, connect it to the board and my pc, and then press "connect" in the program, I get the error DEV_TARGET_CMD_ERR
.
There is literally no explanation of this error anywhere, other than "hardware issues". How can that be, if the lines are directly connected through a 100 Ohms resistor to the pins?
I then proceeded to try out the CLI and it didnt work either. My Keil uVision just throws the error "Internal Command Error".
So I set up a logic analyzer and found out, that the device is actually communicating with my ST-LINK:
It is basically doing this:
My BOOT0 pin is floating, if that is of interest.
I have no idea how to proceed from here. I cant even connect to the device, however, the device is clearly communicating with the chip.
I checked a chip of my batch on a Evalboard (Nucleo), and it promptly connected and read the memory. So the chips are not defect.
Do I have to remove any write protection or something which the debug interface does automatically on the Nucleo-Board, or why cant I use my chip at all?
Thank you very much in advance!
This is the analysis of the SWD communication:
Time Type R/W AP/DP Register Request byte ACK WData WData details
-0.000 Line reset
0.000 Line reset
0.000 Operation read DebugPort IDCODE 0xA5 OK 0x1BA01477 DESIGNER=0x477, PARTNO=0xBA01, Version=0x1
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.000 Line reset
0.000 Line reset
0.001 Operation read DebugPort IDCODE 0xA5 OK 0x1BA01477 DESIGNER=0x477, PARTNO=0xBA01, Version=0x1
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.001 Line reset
0.001 Line reset
0.002 Operation read DebugPort IDCODE 0xA5 OK 0x1BA01477 DESIGNER=0x477, PARTNO=0xBA01, Version=0x1
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.002 Line reset
0.002 Line reset
0.002 Operation read DebugPort IDCODE 0xA5 OK 0x1BA01477 DESIGNER=0x477, PARTNO=0xBA01, Version=0x1
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Operation write DebugPort CTRL/STAT 0xA9 WAIT
0.003 Line reset
0.003 Line reset
0.003 Operation read DebugPort IDCODE 0xA5 OK 0x1BA01477 DESIGNER=0x477, PARTNO=0xBA01, Version=0x1
0.004 Operation write DebugPort ABORT 0x81 OK 0x0000001F ORUNERRCLR=1, WDERRCLR=1, STKERRCLR=1, STKCMPCLR=1, DAPABORT=1
0.004 Operation read DebugPort CTRL/STAT 0x8D OK 0xF0000000 CSYSPWRUPACK=1, CSYSPWRUPREQ=1, CDBGPWRUPACK=1, CDBGPWRUPREQ=1, CDBGRSTACK=0, CDBGRSTREQ=0, TRNCNT=0x000, MASKLANE=0x0, WDATAERR=0, READOK=0, STICKYERR=0, STICKYCMP=0, TRNMODE=Normal, STICKYORUN=0, ORUNDETECT=0
Hardware:
We found the issue.
The Problem was that VDDA
pin had not enough energy supplied to it.
This means, it was a hardware issue.
To make clear what the actual problem was and why we didnt detect it:
We checked all VDD(A)
pins and found that every pin had the right voltage supplied. However, in the gerber files we discovered that the VDDA
pin via was not connected properly to the 3.3V plane. There was a huge resistance (in this case 600kΩ) between the 3.3V rail and the VDDA
pin. We measured the right voltage at the VDDA
pin because there was a capacitor and it had enough time to charge up. Thus we measured the correct voltage. However, once the uC started to draw actual power, the cap didnt provide enough energy/current and the uC couldnt start up. That also explained the error message from JLINK "Couldnt start up DAP".
Ergo: DEV_TARGET_CMD_ERR
is probably a hardware issue.