This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error: Cannot access target

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?