File Exchange

image thumbnail

Simulink Coder Support Package for BeagleBone Blue Hardware

Generate and deploy code for BeagleBone® Blue boards

35 Downloads

Updated 15 Nov 2019

Simulink Coder™ Support Package for BeagleBone® Blue Hardware enables you to create and run Simulink® models on BeagleBone® Blue Hardware . The support package includes a library of Simulink blocks for configuring and accessing BeagleBone® Blue peripherals and communication interfaces.
This support package is functional for R2017b and beyond.
View enhancements and bug fixes in release notes - https://www.mathworks.com/help/supportpkg/beagleboneblue/release-notes.html

Comments and Ratings (11)

LJ Yan

I couldn't find IMU sensor support from BeagleBone Blue Harware/Sensor. The only thing is showing up in the sensor catagory is the Encoder. Do I need to also download the BeagleBone Black Driver for the IMU to work?

LJ

Daniel SG

I am getting a "not supported" error when trying to install it in Matlab 2017b Ubuntu 18. Any suggestions?

David Jasko

pls change it to accept the newest Kernel

Razek Zim

Is it indeed compatible with Ubuntu 16.04? It gives me an error (not supported) when I try to install it (on R2018b). Thanks.

I am having a problem using "Encoder" block in Matlab 2018b.
I use Encoder block in Matlab 2018a and it work properly. However since I need to send a digital signal out and it was not available in Matlab 2018a, I installed Matlab 2018b. I made sure the installation of Matlab 2018b and debian is correct by sending and receiving UDP signal from and to Beaglebone Blue. However the Encoder block is not working in Matlab 2018b. When I run a Simulink code containing the Encoder block, I get this error:

Build process completed successfully

A run-time error is encountered when running External mode simulation on the BeagleBone Blue hardware. This usually occurs when a hardware resource, such as a web camera, is not available or configured incorrectly. The log file, /home/debian/Encoder_Test_1_2018b.log, storing model diagnostic information on the BeagleBone Blue hardware has the following content:
Component:Simulink | Category:Model error

Many thanks
HR

Pradeep KS

Hi Michele,
The error is due to incompatible roboticscape library version and Debian image on your BeagleBone Blue hardware. Simulink Coder support package for BeagleBlue hardware is compatible with below mentioned versions:

* Debian 8.7 image: https://debian.beagleboard.org/images/bone-debian-8.7-iot-armhf-2017-03-19-4gb.img.xz
- Please follow the instructions here to prepare the SD card. https://beagleboard.org/getting-started#update

* Roboticscape library: https://github.com/StrawsonDesign/librobotcontrol/releases/tag/v0.3.4
- Download roboticscape_0.3.4_armhf.deb Debian package on to BeagleBlue hardware.
- Go to folder on BBBlue where roboticscape_0.3.4_armhf.deb file is placed.
- To install, execute the command "sudo dpkg -i roboticscape_0.3.4_armhf.deb" in the BeagleBone blue SSH terminal.

HTH.

In function `beagleboneblue_gettingstarted_step':
beagleboneblue_gettingstarted.c:(.text+0x10e): undefined reference to `rc_set_led'
collect2: error: ld returned 1 exit status
make: *** [../beagleboneblue_gettingstarted.elf] Error 1

I keep getting this error, I tried installing older and newer versions of the Robot Control Library but it still won't run.
Did I miss something important?
Thanks!
Michele

Kurt Talke

MATLAB Release Compatibility
Created with R2017b
Compatible with R2017b to R2019b
Platform Compatibility
Windows macOS Linux