Filter löschen
Filter löschen

Device Driver Block Build Error: digitalio_raspi.h not found

2 Ansichten (letzte 30 Tage)
Yongzhi Liu
Yongzhi Liu am 20 Mär. 2022
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

Antworten (0)

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by