MATLAB Answers

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

3 views (last 30 days)
Andreas on 31 Oct 2014
Answered: Andreas on 31 Oct 2014
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?

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!