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?
Thanks, you r right.