STM32CubeExpansion_LC_Sensor_L4_V1.0.0 Problem
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-04-12 10:02 PM
Posted on April 13, 2018 at 07:02
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
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
