8 years, 8 months ago.

Compilation error when i import project from local machine.

Hi, I am using NUCLEOL152RE.I imported X-NUCLEO-IKS01A1 Datalog sample code from my local machine.I included all necessary files as

/media/uploads/krishnapriyaab/workspace.png

But after compiling igot this error. Error: #error directive: "Please select first the target STM32L1xx device used in your application (in stm32l1xx.h file)" in "CMSIS/Device/ST/STM32L1xx/Include/stm32l1xx.h", Line: 185, Col: 3

/media/uploads/krishnapriyaab/1st_error.png

But when i commented that line i got many errors like these Error: Identifier "I2C_HandleTypeDef" is undefined in

"BSP/X_NUCLEO_IKS01A1/x_nucleo_iks01a1.c", Line: 64, Col: 9 Error: Identifier "HAL_StatusTypeDef" is undefined in "BSP/X_NUCLEO_IKS01A1/x_nucleo_iks01a1.c", Line: 137, Col: 9 Error: Identifier "HAL_StatusTypeDef" is undefined in "BSP/X_NUCLEO_IKS01A1/x_nucleo_iks01a1.c", Line: 138, Col: 9

/media/uploads/krishnapriyaab/2nd_error.png

All are declared ones.I couldn't resolve these errors.How can i resolve this?I am using mbed first time.Please help me..

Thank you,

Krishnapriya

hello.. anyone is there?? please help me from this worst situation.

posted by krishnapriya ab 22 Aug 2015

Hi krishnapriya,

It looks like you aren't using the mbed library, so there will most likely be some issues bringing it into the mbed environment.

What environment were you programming before? And what are you trying to accomplish? Is there a reason you're not using the mbed library?

Thanks, Brian

posted by Brian Daniels 25 Aug 2015
Be the first to answer this question.