SIMULINK PIL error at code generation for STM32f4-Discovery

4 views (last 30 days)
Now I am trying to start PIL simulation (MATLAB 2014a, STMicroelectronics STM32F4-Discovery 14.1.3, ARM Cortex-M 14.1.1 - Embedded Coder, 14.1.0 - DSP System Toolbox), but i have this error at code generating:
Error evaluating 'InitFcn' callback of S-Function block (mask) 'stm32f4discovery_pil_block/Controller1/Controller_sfcn'.
An error occurred while calling into the SIL or PIL target connectivity implementation.
Path "$(CMSIS)\CMSIS\Lib\GCC\libarm_cortexM4lf_math.a" specified in the application framework BuildInfo is not an absolute path. To avoid this error, specify only absolute paths when adding files and paths to the application framework BuildInfo.
How can I solve this problem? I wrote to Now I am trying to start PIL simulation (MATLAB 2014a, STMicroelectronics STM32F4-Discovery 14.1.3, ARm Cortex-M 14.1.1 - Embedded Coder, 14.1.0 - DSP System Toolbox), but i have this error at code generating:
Error evaluating 'InitFcn' callback of S-Function block (mask) 'stm32f4discovery_pil_block/Controller1/Controller_sfcn'.
An error occurred while calling into the SIL or PIL target connectivity implementation.
Path "$(CMSIS)\CMSIS\Lib\GCC\libarm_cortexM4lf_math.a" specified in the application framework BuildInfo is not an absolute path. To avoid this error, specify only absolute paths when adding files and paths to the application framework BuildInfo.
How can I solve this problem? I wrote to MathWorks Embedded Coder Team, but got no answer. They do not know the solution?
P.S. Model from help - stm32f4discovery_pil_block.slx.

Answers (1)

Raghavendra Kandur
Raghavendra Kandur on 10 Jun 2015
Regarding the problem, we are not referring to any such libraries in the build process. I am not sure, how this is getting added to the build information of the model. Can you please send your model and the generated code for further investigations.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!