0
\$\begingroup\$

I tried to program specific STM ultra-low power series (STM32L011D4-tssop14). JLink programmer doesn't support this type of STM32 MCUs. so I tried to program this MCU by STLINK-V2 (SW mode). to do this I am doing the following works:

1- connect all wire which needed for this task (GND-VCC-SWDIO-SWCLK)

2- select "option for target..." in Keil 3- going to debug tab and select "ST-link debugger"

4- going to setting => as I know in "SW Device" section I should see the device information but I have an error " NO target Connected ".

that's weird for me when I connect RST pin of MCU to ground "SW Device" section showed device information. in this way, if I push F8 (Load in Keil) error appears "Core is held in reset"

it's reasonable when I force MCU to reset ( connect RST pin to GND) the program process shouldn't work ( "Core is held in reset" ) but if I don't do that programmer cant connect to the micro ("NO target Connected")

I don't know how should I Program this MCU...

Michel Keijzers
14.2k24 gold badges83 silver badges157 bronze badges
asked Oct 10, 2018 at 14:46
\$\endgroup\$
1
  • \$\begingroup\$ You'll likely need to either use programmer software which can do a coordinated manipulation of the reset line, or else do something to prevent the MCU from running code which disables SWD or sleeps; for example, you could use the boot mode pins to make it start up to the ROM bootloader. This is probably a duplicate of one or more previous questions on the subject. \$\endgroup\$ Commented Oct 10, 2018 at 15:09

1 Answer 1

2
\$\begingroup\$

JLink programmer doesn't support this type of STM32 MCUs.

The SEGGER website lists the STM32L011D4 as a supported MCU. Check your jlink software version.

You may need the "connect under Reset" option - don't know where that is in Keil settings. This obviously requires the reset line to be connected to the debugger.

answered Oct 10, 2018 at 15:34
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.