6 years, 5 months ago.

"stm32f4xx_hal.h" file at STM32F Nucleo reg

Hi,

I am using STM32F Nucleo board for one of my project .when i am compiling I am getting below mentioned error.I have also imported "stm32f4xx_hal.h" library to appropriate project folder.

-----code------ HAL_UART_Receive(&huart2,&buffrec,50,1000); HAL_UART_Receive(&huart2,&buffrec1,100,2000); HAL_UART_Transmit(&huart2,&TempBuff,30, 2000); HAL_UART_Receive(&huart2,&buffrec2,100,2000); --------------

error is

Error: Argument of type "unsigned char (*)[100]" is incompatible with parameter of type "std::uint8_t *" in "main.cpp", Line: 178, Col: 44 Error: Argument of type "unsigned char (*)[100]" is incompatible with parameter of type "std::uint8_t *" in "main.cpp", Line: 248, Col: 32 Warning: Variable "l" was set but never used in "main.cpp", Line: 250, Col: 10 Error: Argument of type "std::uint8_t (*)[30]" is incompatible with parameter of type "std::uint8_t *" in "main.cpp", Line: 366, Col: 40 Error: Argument of type "unsigned char (*)[100]" is incompatible with parameter of type "std::uint8_t *" in "main.cpp", Line: 368, Col: 39

Hello Selvamurugan,

Could you post the entirety of your main.cpp code? Thanks.

-Karen, team Mbed

posted by Karen Yen 26 Jun 2018
Be the first to answer this question.