Hello,
I'm really becomin a pain in the ass here, but I got one new problem here. Lately I designed my own PCB, it's simple board to communicate via USB with my PC and receive data through NRF24L01. The MCU on board is STM32L152RBT6, the same one mounted on STM32L Discovery kit I wanna use to program it. So I have this 5pin output on my PCB to connect to SWD on discovery kit. From what I get, it should be simple to just connect this 5 pins directly to kit pins and remove jumpers from CN3 on discovery kit.
The problem comes as I try to flash my program to it. I use ST-LINK V2, as I try to "CONNECT TO THE TARGET". It fails with
11:42:28 : Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
11:42:30 : Internal command error
I have no problem connecting to my discovery kit. All settings are okey, SWD is set, connection mode is normal and debug in low power is enabled.
I enclose my schematic, PCB design and product, maybe something wrong with my design.
I'm really becomin a pain in the ass here, but I got one new problem here. Lately I designed my own PCB, it's simple board to communicate via USB with my PC and receive data through NRF24L01. The MCU on board is STM32L152RBT6, the same one mounted on STM32L Discovery kit I wanna use to program it. So I have this 5pin output on my PCB to connect to SWD on discovery kit. From what I get, it should be simple to just connect this 5 pins directly to kit pins and remove jumpers from CN3 on discovery kit.
The problem comes as I try to flash my program to it. I use ST-LINK V2, as I try to "CONNECT TO THE TARGET". It fails with
11:42:28 : Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
11:42:30 : Internal command error
I have no problem connecting to my discovery kit. All settings are okey, SWD is set, connection mode is normal and debug in low power is enabled.
I enclose my schematic, PCB design and product, maybe something wrong with my design.
![STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD](https://obrazki.elektroda.pl/1473248700_1392893727_thumb.jpg)
![STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD](https://obrazki.elektroda.pl/3057001300_1392893728_thumb.jpg)
![STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD STM32, programming - [STM32] Program own PCB using STM32L Discovery SWD](https://obrazki.elektroda.pl/8714989900_1392893729_thumb.jpg)