cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f030 flasing using ST-Link STM32vlDiscovery

Bunny.Oleg
Associate
Posted on March 18, 2014 at 13:32

Problem: ST-Link utility can't connect the target MC.

First of all I connected all the wires as necessary

SWCLK-PA14, SWDIO-PA13, GND

and checked the quality of connections. Everything is OK.

my program just configures PA3:

RCC->AHBENR = RCC->AHBENR|RCC_AHBENR_GPIOAEN ;

// - Could this line block SWD??

GPIOA->MODER = GPIOA->MODER|GPIO_MODER_MODER3_0&(~GPIO_MODER_MODER3_1);

GPIOA->OSPEEDR = GPIOA->OSPEEDR&(~ GPIO_OSPEEDER_OSPEEDR3);

SWD is on PA13 and PA14.

How can I erase the memory using STM32vlDiscovery? As I know, it has only the ST-LinkV1 and it has no

 ''connect under reset'' mode, so the playing with boot_0 and reset doesnt have an effect :((

Also could my code block SWD? Maybe the problem lies elsewhere and connected with a  cortexM0 

series features

?

ST-link connects and programs onboard chip propertly.

The problem is similar to 

http://electronics.stackexchange.com/questions/74999/st-link-and-my-stm32f051-board-not-connecting-each-other

without solutions..

Any ideas?
2 REPLIES 2
Posted on March 18, 2014 at 14:48

The OLD VL-Discovery board, and it's ST-LINK implementation is almost certainly not going to work with the F0 series parts.

Get yourself a current ST-LINK V2
Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Bunny.Oleg
Associate
Posted on March 18, 2014 at 16:15

That's it! Thanks!