Skip to main content
vortex
Visitor II
June 28, 2019
Question

STM32F4 Discovery Board Control Register Problem

  • June 28, 2019
  • 0 replies
  • 579 views

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?

This topic has been closed for replies.