2020-02-17 01:04 AM
Here i attached my main.c file.
and
When I run my debugger , i see that my program is stucked in error handler
//////////
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}
//////////
And for measuring internal clock sources such as HSI, HSE. it worked fine but whenever i include LSE source :it stuck in error_handler
///////////////
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE
|RCC_OSCILLATORTYPE_LSE;
//////
2020-02-17 02:06 AM
The 32.768kHz crystal is not mounted on the F4-DISCO by default, did you get one? You need also to add the related capacitors and disconnect/connect some solder bridges according to the DISCO's User Manual.
JW