Products arrow FLEX for Microchip dsPIC arrow Scilab/Scicos code generator
Main Menu
Products
Services
News and Events
Company
Documentation
Downloads
How to buy
Contacts
Job opportunities
Embedded Linux
Embedded Linux
FLEX Boards
FLEX for Microchip dsPIC
Erika Enterprise and RT-Druid
EE and RT-Druid
EE for Altera Nios II
EE for Microchip dsPIC
EE for Atmel AVR
Community
Application notes
Known issues
Forum
Bug reporting
Search
Login Form





Lost Password?
No account yet? Register
Advertisement
Scilab/Scicos code generator

Scilab/Scicos Code Generator for FLEX

This page contains the information related to the Scilab/Scicos code generator for the FLEX Board.

Main idea:

Develop a single-click digital control automatic code generation tool for FLEX!

How to install

Please read the documentation at the end of this page. 

The Flow

The envisioned flow is depicted by the following picture:

 

Scilab/Scicos development flow

 

Figure 1: Scilab/Scicos development flow for ERIKA Enterprise and FLEX 

The steps of the development flow are the following:

  1. Design of a control system in Scicos
  2. Simulation and tuning of the control system in Scicos
  3. Single-click code generation for ERIKA Enterprise for FLEX
  4. Automatic flashing of the FLEX board
  5. Integration in the Scicos HIL support using the FLEX USB/wireless connection

Requirements

To play with the code generator you need at least:

  • A FLEX Board;
  • ERIKA Enterprise Basic GPL;
  • The Microchip tools (available for free);
  • A Microchip ICD2 (this dependency will be removed soon when it will be possible to program Flex through USB);

Project status

The project is still in beta, but it is usable to make simple and complex controllers. The current version status is the following:

Ok Code generator for ERIKA Enterprise Basic;
Ok Over 100 Scicos blocks ready for code generation!;
Ok Automatic generation and compilation of the Scicos generated application
Ok Manual flashing of the generated application on the dsPIC device on the FLEX board;
Ok Working examples using the FLEX board;
Ok Tutorial for the creation of a sample application included in the documentation;

 

To be done: 

  •  Automatic programming of a Scicos-generated application on the FLEX target;
  •  Integration with the USB port and Scicos HIL;
  •  Comprehensive documentation and examples;

 

IMPORTANT Note: 

  Please note that the code generator is currently a direct derivation from the Linux/RTAI Code Generator for Scilab and Scicos. That means two things:

  • The code generated is correct and working, but...
  • The quality and efficiency of the code generated is not "the best" for a microcontroller (in terms of usage of RAM, complexity of the data structures, optimization of the overhead, and other things).

 We are working for improving the efficiency of the code generator with INRIA Roquencourt, and for that reason you can expect changes in the quality of the code generated in the next months.

You are welcome to join us and to give feedback on the tool to help us improving it! 

 

 

 

 

 

 

  

 

Download resources and links

 Download

 Install instructions version 0.30

 ERIKA Enterprise Basic GPL for Microchip dsPIC

 Scilab 4.1.2 (on the Scilab web site) - or  Scilab 4.1.2 (local mirror)

Note: PLEASE ONLY USE OFFICIAL VERSIONS FROM THE SCILAB CONSORTIUM, available on the Scilab website. DO NOT use unofficial versions available on the Scicos (http://www.scicos.org) web page!

 Scicos patches from the news pages (optional)

 Scicos Pack for ERIKA Enterprise Basic GPL version 5.2  --  (Note: this version works with EE 1.4.2x)

          [changes in v5.1: new .scilab]

 Links

 Scilab home page 

 Scicos home page

 Evidence Forum

 Microchip IC Wiki

 Partners 

 Scicos HIL Team 

 Roberto Bucher , SUPSI (CH) 

 
Advertisement
Advertisement
Advertisement
Evidence S.r.l. - PIVA: 01638690501
Viale Rinaldo Piaggio 32 - Pontedera - Pisa - Italy