cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RBT6 Error: No device found on target.

Praveen Gonsalves
Associate II
Posted on June 05, 2017 at 11:24

Hello, 

I've designed a custom board using STM32F103RBT6. To debug the custom board I've got the STM32F103 Nucleo-64 board. As mentioned in the User manual of Nucleo 64 board(UM1724) page 18, section 6.2.4, I've connected the CN4(VDD, SWCLK, GND, SWDIO, NRST) connector to my custom board connector, I've brought all the debug pin on a single connector in my custom board.

Now I configured the peripherals using cubemx and using atolic studio for coding and debugging, whenever I click debug, I'm getting No device found on target.

I've checked voltages on my custom board, I'm getting 3V3 volts. 

Also what should be connected to Boot0, 3v3 or gnd or shoud be kept open.?

Can anyone please help me in solving this issue. 

Regards

Praveen

#stm32f103rb #stm32 #discovery ##nucleo-64
11 REPLIES 11
Zt Liu
Senior III
Posted on June 05, 2017 at 15:49

Did you take off jumpers in  CN2?

0690X00000602SvQAI.bmp

Also try to use st-link utility first, make sure you can connect to target. 

Posted on June 06, 2017 at 07:47

Hello Zhitai, 

Using ST Link Utililty, first I tried  connecting the Nucleo 64 board to it, it's connecting to the Nucleo 64 board successfully. 

Then I removed the two jumpers on CN2 on Nucleo 64 board. Tried connecting to the ST Link Utility my custom board, but it's showing No target connected.

I've attached the MCU design of my custom board. Please review it. 

Also I've connected VDD, GND, SW_CLK, SW_DIO, nRST pins from custom board to Nucleo 64 board. Are there any additional pins connections required. 0690X00000603rlQAA.jpg

Posted on June 06, 2017 at 09:46

Hey, I think it's the reset pin.

Check your reset pin, if it's held in low state. 

If you didn't break out the st-link board, you should do the folllowing modification.

SB12 NRST (target MCU RESET) must be OFF if CN4 pin 5 is used in the external  application. (UM1724 p17)

I remembered before, when using Nucleo 64 board, i use the on board st-link to debug some other custom board, and I didn't break out the st link part from the main board. 

I took off the jumper JP6(turning off IDD), thinking it would be better to turn off the MCU belowed. However, without taking off the SB12, it results the reset pin held in low state.

So, did you take off SB12?

0690X00000603rcQAA.jpg

Good Luck!

Posted on June 06, 2017 at 10:55

Hello Zhitai, 

Thank you for the information.

No, I did not take off the SB12 from the Nucleo 64 board. 

Will remove the SB12 and will share the result. 

Regards

Praveen. 

Zt Liu
Senior III
Posted on June 09, 2017 at 07:19

0 use digital meter to check connections of debug pins from st-link to target mcu

1 check whether the reset pin is high. boot0 is ground

2 power on the device and check 3.3V pins

3 make sure your target mcu is not in sotp/sleep/stnadby mode.

4 check whether your

atolic studio debugger 

setting is correct
Posted on June 09, 2017 at 07:00

Hello Zhitai, 

I removed the SB12 from the the Nucleo 64 board. I've connected the CN4 connector(

VDD, GND, SW_CLK, SW_DIO, nRST

) to my custom board. 

But still whenever I click on debug, it shows Reason: (-4) No device found on target. 

The procedure I'm following is: Open cubemx to configure pins.(configuring SYS as serial wire and one pin as output). 

Then using code generator, opening the project in truestudio, build and debug. 

Am I missing out something?? 

Why is it showing No device found on target. 

Regards

Praveen

Posted on June 09, 2017 at 12:19

Hello Zhitai, 

  • I've used DMM to check continuity on debug pins, I'm getting continuity on those pins. 
  • Boot0 I've connected to ground, reset pin I checked with DMM, getting low.
  • I've checked for power, I'm getting proper voltage of 3V3.
  • On Atolic studio I'm getting the same result: Reason: (-4) No device found on target
  • I tried to debug with System Workbench for STM32. I've attached of debug result. 
  • I've also attached the debugger configuration. 

Also how to 

make sure my target mcu is not in sotp/sleep/stnadby mode??

Regards

Praveen

Posted on June 09, 2017 at 12:21

Hello Zhitai, 

Please find the images here

0690X00000603s5QAA.jpg

0690X00000603rYQAQ.jpg
Posted on June 09, 2017 at 12:27

HOW CAN IT BE RST PIN GETTING LOW?! It should be as high as you Target MCU VCC