STM32CubeProgrammer not identifying target MCU
- October 28, 2025
- 5 replies
- 499 views
I have a custom PCB with an blank, unflashed STM32L4R and my goal is to flash it with firmware via the ST-LINK on my NUCLEO board that hosts another STM32L4R. The only pins I connected for debugging/flashing purposes is USB_DM and USB_DP, the rest, like NRST, SDWIO, SWCLK, SWO, BOOT0 are left unconnected. I am able to jump those pins to my ST-LINK or my USB device, however, my current method of flashing is jumping NRST, SWDIO, SWCLK, and SWO to my ST-LINK and programming it using STM32CubeIDE and STM32CubeProgrammer. I disconnected the jumpers on the ST-LINK that connect it to the NUCLEO MCU, which in theory should allow my PCB STM32 to become the target, however, I am getting launch sequence errors within STM32CubeIDE as well as "Target Not Found" errors in STM32CubeProgrammer. I included screenshots below and I tried switching modes and such, but nothing is working. I have connected CN5 Pin 1 to 3.3V, CN5 Pin 2 to PA14 on my PCB MCU, CN5 Pin 3 to ground, CN5 Pin 4 to PA13 on my target MCU, CN5 Pin 5 to NRST on my target MCU, and CN5 Pin 6 to PB3 on my target MCU. These were all according to the table given in my MCU datasheet. I want to know if I am setting this up properly and I want to see if this is a hardware or a software issue. Any advice or tips will help. Thank you
