Raspberry pi and Simulink deploy on hardware

조회 수: 4 (최근 30일)
Gaston Melo
Gaston Melo 2023년 1월 24일
답변: Prasanth Sunkara 2023년 10월 30일
Hi to all, Im using raspberry pi model 3b+ with Matlab-Simulink. I already installed the support package and check functionality, the rpi is connected Wireless and I verified that the IP address is the same on matlab and on the router. I made a simple model involving a led an a pwm signal to toggle the led. When I hit the "build" button I got and error saying:
"Cannot identify /home/pi/MATLAB_ws/R2021a/home/gaston/led_rpi.elf. No such file or directory"
a few questions:
1) If I had the rpi connected wireless, how can I pass that elf file?
2) I checked and the folder exist, but no elf file is in there. How do I do to get the elf file?
Thanks
Gaston
this is the complete output:
### Starting build procedure for: led_rpi
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: /home/gaston/.local/led_rpi_ert_rtw
### Invoking Target Language Compiler on led_rpi.rtw
### Using System Target File: /home/gaston/.local/MATLAB/R2021a/rtw/c/ert/ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file led_rpi_types.h
### Writing header file led_rpi.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
.
### Writing source file led_rpi.c
### Writing header file led_rpi_private.h
### Writing header file rtmodel.h
### Writing source file led_rpi_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU GCC Embedded Linux
### Creating '/home/gaston/.local/led_rpi_ert_rtw/led_rpi.mk' ...
### Building 'led_rpi': make -f led_rpi.mk all
stat: cannot stat '/home/pi/MATLAB_ws/R2021a/home/gaston/led_rpi.elf': No such file or directory

Build procedure for led_rpi aborted due to an error

답변 (1개)

Prasanth Sunkara
Prasanth Sunkara 2023년 10월 30일
Hi Gaston,
Looks like you are working from a folder with name starting with "." (.local in your case). Please prefer changing the MATLAB current working directory to a normal folder and try deployment again.
Thanks,
Prasanth

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by