No PIL-Test possible with STM32F4-Discovery Board and GPIO Write

조회 수: 3 (최근 30일)
Andreas
Andreas 2014년 10월 31일
답변: Andreas 2014년 10월 31일
Hi to all,
I am using a STM32F4-Discovery Board and want to make in Simulink PIL tests on it.
This works very well, but when I am including the block "GPIO Write" from the library "Embedded Coder Support Package for STMicroelectronics STM32F4-Discovery Board" in my model and I want to start the PIL simulation, then the build process fails.
Following error mesage appears:
Error evaluating 'InitFcn' callback of S-Function block (mask) 'TEST_LED_PIL/Subsystem/Subsystem_sfcn'.
An error occurred while calling into the SIL or PIL target connectivity implementation.
Error(s) encountered while building model "Subsystem":
### Failed to generate all binary outputs.
In The build process I found the following messages:
"Subsystem.c:(.text.Subsystem_step+0x7a): undefined reference to `MW_GPIO_WriteBit'"
"Subsystem.c:(.text.Subsystem_initialize+0x1c): undefined reference to `MW_GpioInit'"
So can you help me?

채택된 답변

Andreas
Andreas 2014년 10월 31일
The answer to my own question:
I found out that it is not possible to call the block "GPIO Write" inside a PIL block.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by