cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery Board Control Register Problem

vortex
Associate

I open an empty project without any settings.

#include "stm32f4xx.h"
#include "stm32f4_discovery.h"
 
int main(void)
{
  while (1)
  {
 
  }
}
 
void EVAL_AUDIO_TransferComplete_CallBack(uint32_t pBuffer, uint32_t Size){
  /* TODO, implement your code here */
  return;
}
 
uint16_t EVAL_AUDIO_GetSampleCallBack(void){
  /* TODO, implement your code here */
  return -1;
}

and I observe the values in the CR register.

0690X000009Xg3JQAS.png

As seen in the photo it comes full of many bits. Even both HSE and HSI are active. I was just expecting HSI to be active because the reset value of this register is 0x82.

I also cannot reset the values of the bits when I add the RCC->CR=0x82; code to the program. Where am I making a mistake?

0 REPLIES 0