79349924

Date: 2025-01-12 13:02:39
Score: 1.5
Natty:
Report link

After many attempts, I realized the problem. The problem is with the following line...

RCC->CFGR |= (1<<1); // System clock Switch >> PLL selected as system clock

This line should be modified as follows

 RCC->CFGR |= 0x1; // System clock Switch >> HSE selected as system clock
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hossein Ameri