2018-05-10 03:27 PM
Hi everyone,
I'm working with STm32L476RG on the example that I've downloaded from the St official site about the Ranging Satellites (with the expansion board 53L0A1). The problem is, when I try to generate the code with CubeMx for Iar version 8.22.2, the result is this error:
'Error[Pe1696]: cannot open source file X-NUCLEO-53L0A1.h'
I think this problem can occur if the IAR project has a different version that the project was made on.
I tried the next procedure to add the missing file:
Project -> Options -> C/C++ compiler -> Preprocessor and add the directories where the files can be found.
But the problem is not solved, because there is a new similar error with an other missing file 'mxconstant'.
How can I solve this problem?
Thank you for attention and hoping that anyone can help me.#x-nucleo-53l0a1 #stm32l476rg #stm32-iarSolved! Go to Solution.
2018-05-14 06:57 AM
@
Thank you for answering.
This is my .ioc that I've downloaded from St official site, without editing.
Generating the code on Iar there is the error that I've wrote before.
________________ Attachments : NucleoL476.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxdg&d=%2Fa%2F0X0000000b0M%2F9ISmRkgdWEpuf0f4cg.95lAxTODcrqYWF1xaERt_rTk&asPdf=false2018-05-14 05:31 AM
Hello
gp3reverse
,Please
check that this issue is not reproduced with the latest version of CubeMx and IAR andthat you are
specifying all the include paths for the project properly.Otherwhise,
share your .ioc to report this case andidentify what is going wrong.
Best Regards,
Imen
2018-05-14 06:57 AM
@
Thank you for answering.
This is my .ioc that I've downloaded from St official site, without editing.
Generating the code on Iar there is the error that I've wrote before.
________________ Attachments : NucleoL476.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxdg&d=%2Fa%2F0X0000000b0M%2F9ISmRkgdWEpuf0f4cg.95lAxTODcrqYWF1xaERt_rTk&asPdf=false2018-05-16 12:09 PM
Hi
gp3reverse
Why are you using the FW L4 version 1.0.0 it is too old ?
2018-05-17 11:12 AM
Hello, i'm using the version contained on the expansion board exercise, I've tried to update but the issue is not solved.
2018-05-21 03:32 AM
Hello, I succeeded to reproduce your issue.
To fix it please add those two lines to the preprocessors:
$PROJ_DIR$/../../../../../../Drivers/BSP/X-NUCLEO-53L0A1
$PROJ_DIR$/../../../../../../Drivers/BSP/Components/vl53l0xuncomment in stm32l4xx_hal_conf.h
#define HAL_TIM_MODULE_ENABLED
add files to project:
in STM32CubeExpansion_VL53L0X_V1.2.0\Drivers\BSP\X-NUCLEO-53L0A1
- X-NUCLEO-53L0A1.c
- vl53l0x_platform.c
.c files in 'STM32CubeExpansion_VL53L0X_V1.2.0\Drivers\BSP\Components\vl53l0x'
2018-05-21 07:02 AM
,
,
Hello, i'm trying to do your steps:
To fix it please add those two lines to the preprocessors:
$PROJ_DIR$/../../../../../../Drivers/BSP/X-NUCLEO-53L0A1 , ,
-------->,
DONE,
$PROJ_DIR$/../../../../../../Drivers/BSP/Components/vl53l0x , ,-------->,
DONEuncomment in stm32l4xx_hal_conf.h
♯ define HAL_TIM_MODULE_ENABLED -------->,DONE
add files to project:
in ,STM32CubeExpansion_VL53L0X_V1.2.0\Drivers\BSP\X-NUCLEO-53L0A1
, , , , , , , , ,- X-NUCLEO-53L0A1.c , ,
-------->,
DONE, , , , , , , , ,- ,vl53l0x_platform.c , ,
-------->,
DONE.c files in ''STM32CubeExpansion_VL53L0X_V1.2.0\Drivers\BSP\Components\vl53l0x''
in the last line, what do you mean for :
.c files in ''STM32CubeExpansion_VL53L0X_V1.2.0\Drivers\BSP\Components\vl53l0x''
,
I need to add others files? (referred to the last line)
In this moment. after these steps, if I compile the code, there is 1 error, it is: ,
Fatal Error[Pe1696]: cannot open source file ''mxconstants.h'' ,
,