cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeExpansion_LC_Sensor_L4_V1.0.0 Problem

FLast.11
Associate III
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_Handler

once 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

0 REPLIES 0