AnsweredAssumed Answered

STM32f030 flasing using ST-Link STM32vlDiscovery

Question asked by bunny.oleg on Mar 18, 2014
Latest reply on Mar 18, 2014 by bunny.oleg
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?

Outcomes