When debugging STM32L152VD using ST-LINK V2 in Keil. when the program reached the below lines this error appear: "Cannot access target Shutting down debug session."
GPIOA->MODER = 0xFFFFFFFF;
or line below
RCC->ICSCR = tmpreg;
How can I find the source of the problem?
Try not doing things that break the pins used by the debugger?
many thanks for you help! it did work!
View all questions in Keil forum