cancel
Showing results for 
Search instead for 
Did you mean: 

"No device found on target" trying to flash XM125 radar board with ST-Link V2.

blank_supportgis
Associate III

I'm currently experimenting with an XM125 radar board . As seen on page 15 of the module's datasheet, this board essentially contains an STM32L4 MCU with the necessary external components and the radar sensor. All pins of the MCU are exposed through the board. So, essentially, I'm connecting directly to the STM32L4.

My Problem

I'm struggling with flashing something to the controller. I know this has been asked (and solved) a thousand times, but I simply cannot find the problem here.

When attempting to flash a default project by the manufacturer using an ST-Link V2 (genuine, not clone), I get the following output in STM32CubeIDE 1.17.0:

STMicroelectronics ST-LINK GDB server. Version 7.9.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.

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.

STM32CubeProgrammer (2.19.0) gives a very similar output:

12:52:16:265 : UR connection mode is defined with the HWrst reset mode
12:52:16:390 : ST-LINK SN : 37FF6F063143433923131843
12:52:16:391 : ST-LINK FW : V2J45S7
12:52:16:391 : Board : --
12:52:16:391 : Voltage : 3,23V
12:52:16:392 : Error: Unable to get core ID
12:52:16:392 : Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication
12:52:16:404 : Disconnected

I've also tried pulling BOOT high during startup and changing the reset modes between Software, Hardware and Core, but the result was the same.

My Setup

I'm using a serial-to-usb interface stick to generate the source voltage of 3.3V. I'm additionally using a voltage divider to get the 3.3V down to 1.8V, since this voltage is required by the radar sensor. The following schematic outlines my setup:

schema.png

In the attachments, you find an image of my setup, and my test project.

21 REPLIES 21

Yes, I did. The ST-Link offers an abundant supply of ground connections, so there was no reason not to connect them. However, it did also work with only one ground pin connected.