2018-04-12 10:02 PM
Hello, i try to implement the STM32CubeExpansion_LC_Sensor_L4_V1.0.0 in my nucleo -L476 board,
i completely port the SW4STM32 to truestudio without error,
however, the program run into infinite loop
.section .text.Default_Handler,'ax',%progbits
Default_Handler:Infinite_Loop: b Infinite_Loop .size Default_Handler, .-Default_Handleronce i set breakpoint i found that the error come to several place at least from now i found two
1) in lc_sensor_metering.c LC_Init_GPIO()
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);the above one will cause error~
2) in lc_sensor_metering.c in SystemClock_ConfigMSI_24M();
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { /* Initialization Error */ ErrorHandler(); }this will also cause error
anyone can help?
thanks
Jeff