Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simulink Fatal error (Deploy to Hardware (Raspberry))

505 views
Skip to first unread message

Tamilazhagan Loganathan

unread,
Mar 8, 2017, 6:01:07 PM3/8/17
to
Hi to all,

i have a Simulink model which is running by EXTERNAL mode (To target hardware (Raspberry pi 3)) via wireless. Everythinks works good. Once if the model deploy to Hardware I am facing a fatal error (rtiostream_utils.h: No such file or directory) . Could anybody have a idea to overcome with this problem.

My Project(Lane keeping) based on acquiring Live image from pi camera and controlling the RC CAR (Servo position- to keep the vehicle in lane)

Error from code generation in simulink while deploy to Hardware:

### Generating code into build folder: D:\LaneDetection_T2_exe158_ert_rtw
### Invoking Target Language Compiler on LaneDetection_T2_exe158.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016a\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 LaneDetection_T2_exe158.h
.
### Writing header file LaneDetection_T2_exe158_types.h
### Writing source file LaneDetection_T2_exe158.c
### Writing header file LaneDetection_T2_exe158_private.h
### Writing header file rtwtypes.h
### Writing source file LaneDetection_T2_exe158_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### File v4l2_capture.c associated with S-Function 'v4l2_video_capture_sfcn' (used in 'Tamil_LaneDetection_T2_exe158/V4L2 Video Capture') does not exist
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU GCC Raspberry Pi v1.0 | gmake (64-bit Windows)
### Creating D:\Tamil_LaneDetection_T2_exe158_ert_rtw\Tamil_LaneDetection_T2_exe158.mk' ...
### Building 'LaneDetection_T2_exe158': make -f LaneDetection_T2_exe158.mk all
### Build procedure for model: 'LaneDetection_T2_exe158' aborted due to an error.
Error executing command "touch -c /home/pi/LaneDetection_T2_exe158_ert_rtw/*.*;make -f LaneDetection_T2_exe158.mk all -C /home/pi/LaneDetection_T2_exe158_ert_rtw". Details:

STDERR: rtiostream_interface.c:31:30: fatal error: rtiostream_utils.h: No such file or directory
#include "rtiostream_utils.h"
^
compilation terminated.
make: *** [rtiostream_interface.c.o] Error 1


vcmorini

unread,
Mar 15, 2017, 9:36:08 PM3/15/17
to
Hi,

Having quite the same problem.

## File v4l2_capture.c associated with S-Function 'v4l2_video_capture_sfcn' (used in 'funcionou_luz_verde_2/V4L2 Video Capture') does not exist
### Successful completion of build procedure for model: funcionou_luz_verde_2
Build process completed successfully

Any ideas?

Best!

N Kando

unread,
Mar 21, 2017, 3:41:07 PM3/21/17
to
+1.

"Tamilazhagan Loganathan" wrote in message <o9q2ff$3hr$1...@newscl01ah.mathworks.com>...

N Kando

unread,
Mar 21, 2017, 4:44:07 PM3/21/17
to
Bottom of the page here:

https://www.mathworks.com/help/supportpkg/usrpembeddedseriesradio/ug/troubleshooting-hardware-software-co-design.html

Solution is to set the board to external mode.
My board has been working in External mode -
I'm now trying to get it out of External mode.

I first had the warning that,
even though the simulation was set in Normal mode,
the parameter ExtMode was set to 'on' when I tried to build.

I manually set_param('<model>', 'ExtMode', 'off') to fix this,
but this error persists.
I believe the code is not recognizing the conversion back to normal mode,
and I am not sure how to handle this.

N Kando

unread,
Mar 21, 2017, 4:44:07 PM3/21/17
to
P.S. My board is the Arduino Mega 2650.

N Kando

unread,
Mar 21, 2017, 5:58:08 PM3/21/17
to
My model was a simple:
limited counter --> convert: uint8 --> serial read (COM 0)

Removing the serial read, and letting optimizer build a blank model had same error.

I tried a basic "blinking LED" model file.
This built from external mode.
This built from normal mode.

I pasted the same model blocks into the problematic model file.
This build from normal mode failed.

I made a new blank model,
reconfigured the board settings to what they needed to be,
and built the blinking LED model with success.

I built the original setup, but still without the serial read.
This built from normal mode.

I built the original setup.
This built from normal mode.

I believe the solution is to begin a new model.
I'm sorry that it is not something more intuitive.
0 new messages