2014-03-18 05:32 AM
Problem: ST-Link utility can't connect the target MC.
First of all I connected all the wires as necessarySWCLK-PA14, SWDIO-PA13, GNDand 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 cortexM0series 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-otherwithout solutions..Any ideas?2014-03-18 06:48 AM
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 V22014-03-18 08:15 AM
That's it! Thanks!