Device Driver Block Build Error: digitalio_raspi.h not found

1 次查看(过去 30 天)
I have no problem with model "raspberrypi_gettingstarted" and the PI3.I am following "Create a Digital Write Block" and created a directory with files, and a simulink model yz_ddblk_test.slx. When build, the error message reads,
"D:/Users/YZ/Documents/MATLAB/yz_ddblk/yz_ddblk_test_ert_rtw/yz_ddblk_test.c" D:/Users/YZ/Documents/MATLAB/yz_ddblk/yz_ddblk_test_ert_rtw/yz_ddblk_test.c: In function 'yz_ddblk_test_initialize': D:/Users/YZ/Documents/MATLAB/yz_ddblk/yz_ddblk_test_ert_rtw/yz_ddblk_test.c:82:46: fatal error: yz_ddblk/include/digitalio_raspi.h: No such file or directory #include "yz_ddblk/include/digitalio_raspi.h" ^ compilation terminated. gmake: *** [yz_ddblk_test.c.o] Error 1 D:\Users\YZ\Documents\MATLAB\yz_ddblk\yz_ddblk_test_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 D:\Users\YZ\Documents\MATLAB\yz_ddblk\yz_ddblk_test_ert_rtw>exit /B 1
I have installed Matlab HSP for RPi and Simulink HSP for RPi. It seems no suitable cross compiler, so I installed Embedded Coder for ARM Cortex-A.
The configuration parameters:
Hardware Implementation: Raspberry Pi, ert.tlc
Simuliation Target Language: C, (insert custom C code: None, additional build information: None)
Code Generation: Target ert.tlc, Toolchain: Linaro Toolchain v4.8, Custom Code: None.
Did I miss anything? Thanks for any tips.
FYI.
Regards,
Yongzhi

回答(0 个)

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by