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

UARTS STM32F4-Discovery

Recently I have been trying to use the UARTS on the board using the peripherals library and also Keil uVision 4 for debugging and I keep getting the following error message:
***error 65: access violation at 0x40023800 no 'write' permission for the following line of code in the system_stm32f4xx.c file:


  /* Reset the RCC clock configuration to the default reset state ------------*/
  /* Set HSION bit */
  RCC->CR |= (uint32_t)0x00000001;

  /* Reset CFGR register */
  RCC->CFGR = 0x00000000;

  /* Reset HSEON, CSSON and PLLON bits */
  RCC->CR &= (uint32_t)0xFEF6FFFF;

  /* Reset PLLCFGR register */
  RCC->PLLCFGR = 0x24003010;

  /* Reset HSEBYP bit */
  RCC->CR &= (uint32_t)0xFFFBFFFF;

  /* Disable all interrupts */
  RCC->CIR = 0x00000000;


can anyone help?