element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Matlab and Simulink don't currently support Raspbian Stretch
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: ralphjy
  • Date Created: 10 Nov 2017 4:20 AM Date Created
  • Views 1075 views
  • Likes 3 likes
  • Comments 4 comments
Related
Recommended
  • RoadTest
  • matlab simulink
  • raspi3

Matlab and Simulink don't currently support Raspbian Stretch

ralphjy
ralphjy
10 Nov 2017

As a Roadtester for the Raspberry Pi 3 & MathWorks Learn-to-Program Pack, I've encountered some bumps in the road due to the MathWorks documentation and examples being somewhat out of date.  I'd intended to blog earlier as I expect the other roadtesters have probably also encountered similar issues.  I'll do a full discussion in my review, but in case it might help anyone - the Raspberry Pi support packages for Matlab and Simulink in r2017b do not currently support Raspbian Stretch.  It will give you a build error when you try to create a raspi object.  I ran into this issue because I setup my RPi3 before I tried to install the Matlab software.  The RPi3 hardware in the kit comes with a 16GB micro SD card with NOOBS pre-installed.  All this works great, but when you install Raspbian using NOOBS it will install the latest version of Raspbian which is Stretch.  The Matlab hardware support package allows you to modify an existing OS or to write a new OS image onto an SD card.  Since I had already configured the RPi3 (ssh, wifi, ipaddr, etc), I chose to modify my existing OS.  At that point I couldn't create a raspi object to connect to my RPi3, so I couldn't continue.  I tried building a new OS image and that actually worked because the image was built with Raspbian Jessie Lite.  To their credit, MathWorks support did provide me a workaround that allowed me to run Matlab on Stretch.  I am waiting for a similar workaround for Simulink.

 

I also have encountered a problem specific to my application in that Matlab's IP camera module does not support H264 streaming only MJPEG streaming.  Unfortunately, the specific camera that I'm trying to use only supports H264.  I'm trying to get a third party module, HebiCam, to work.  I'm getting errors rtsp streaming with H264.  I'll post again if I get that working.  Otherwise, I may have to change the project that I was going to do for the roadtest.

 

Good luck to all the other roadtesters.

  • Sign in to reply

Top Comments

  • ralphjy
    ralphjy over 7 years ago in reply to MARK2011 +1
    Yes, I am currently running the workaround with Stretch. I don't recall having a problem with step 3. So, the process went as follows 1) Install Raspbian with NOOBs (Stretch 4.9), configure RPi setup 2…
  • ralphjy
    ralphjy over 7 years ago in reply to MARK2011 +1
    Glad that you got it working. Looking forward to your review.
  • ralphjy
    ralphjy over 7 years ago in reply to MARK2011

    Glad that you got it working.

    Looking forward to your review.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • MARK2011
    MARK2011 over 7 years ago in reply to ralphjy

    Thank You for the answer!

    The solution, in my case, was really simple:

    I 've just replace these two files (thanks for publishing) and executed few commands according to your instruction.

    I really appreciate your help!

    Marek

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ralphjy
    ralphjy over 7 years ago in reply to MARK2011

    Yes, I am currently running the workaround with Stretch.  I don't recall having a problem with step 3. 

     

    So, the process went as follows

     

    1) Install Raspbian with NOOBs (Stretch 4.9), configure RPi setup

    2) Install MatLab hardware package using customize - build fails

    3) Use new SD card and use MathWorks Raspbian image (Jessie 4.4) - build works

    4) Revert to SD card in 2), Apply workaround (update files) - build works, no changes required when I installed the hardware package for Simulink

     

    I am pretty sure that I ran the targetupdater, but I could be mistaken.  I would not have expected the files to be reverted (do not run the installer again).

     

    There probably isn't any issue with running the Raspbian Jessie image.  I just like running the latest OS and I also did not want to spend time re-configuring my setup.

     

    Ralph

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • MARK2011
    MARK2011 over 7 years ago

    Thank You!

    Could you please confirm that, according to your last information, described in the Roadtest report, concerning above issue, there are no need to install (build) new image of the system on the RPi SD card.

    As I understand only two files (raspi.m; devices.c) need to be replaced and the few commands executed.

    I have doubt concerning step 3 - In my case, the targetupdater turns back to the OS image build or customization:

    image

    Did you take the second option (customization)?

     

    Marek  (one of roadtester - the lost one - a bit)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube