Our startup Abstrana just added basic support for Intel Edison to Matlab/Simulink and decided to share it with the maker community.
- Download the Hardware Support Package here: http://www.abstrana.de/21-2/produkte/ http://www.abstrana.de/21-2/produkte/
- Extract the downloaded .zip folder into your Matlab path and include all the folders and subfolders in your Matlab directory using "Set Path".
- Open Simulink and create a new model.
- Click "Model Configuration Parameters" and select the tab "Code generation".
- One you clicked "Browse…", you can now select "edison.tlc - Intel Edison Target".
- When selected, an additional option pane "Target" will appear in the left sidebar. Here you have to put your SSH settings. Please make sure, you have a working connection between your host and your target. Additional information can be found on the Intel Edison webpage.
- Make sure, your current MATLAB path is the demo folder of the support package.
- From now on, you can either open the sample application in the demo folder or just run your own model by pressing the "Deploy to hardware"-button.
- To run your application on the Edison, just type ./Simulink in the Putty command window.
- To run the example, simply connect a toggle to pin J20-5 and a LED to pin J20-4.
If you are a private person without comercial interests, feel free to use/modify/extend this hardware support package for Simulink.
Does this allow programming of the MCU by any chance?
Yes, it actually does. The Intel Edison is already running an operating system, so there is no need to integrate one via Simulink.
The C-Code generated from the Model acts like a normal application in linux.
Once generated in Matlab/Simulink, the C-Code is automatically transmitted via SSH to the Edison and gets compiled there.
I've three brief questions:
Do I need a Matlab Stateflow license too?
Do you supply I2C and SPI blocks?
What are the limitations of your "basic support"?
Many thanks in advance.
For some reason, I do not have the "Code Generation" option. I have Matlab 2015b and I have the Matlab coder license. Do you know how I can work around this issue?