Raspberry pi and Simulink deploy on hardware
5 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Prasanth Sunkara
on 30 Oct 2023
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
0 Comments
See Also
Categories
Find more on Run on Target Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!