How to use Scicos-FLEX on non-FLEX boards
From ErikaWiki
(Difference between revisions)
Line 1: | Line 1: | ||
It is possible to use Scicos-FLEX with non-FLEX boards. | It is possible to use Scicos-FLEX with non-FLEX boards. | ||
+ | These steps should make it possible to compile an EE application based on a custom board. | ||
Here is what you need to do: | Here is what you need to do: | ||
Line 9: | Line 10: | ||
** Then, copy the template in another directory under the examples directory (for example, ".../examples/pic30/myboard") | ** Then, copy the template in another directory under the examples directory (for example, ".../examples/pic30/myboard") | ||
** change, in the <tt>template.xml</tt>, the board ID from "board_flex" to "myboard" | ** change, in the <tt>template.xml</tt>, the board ID from "board_flex" to "myboard" | ||
- | ** change the code to reflect your board configuration | + | ** change the code to reflect your board configuration by editing the 'oil' and the source files. |
+ | * Now you need to add the template in the Scicos target settings, by editing the file SCI+'/contrib/scicos_ee/scicos_flex/dsPIC/macros /codegen/SetTarget_.sci', changing the templates list as follows: <tt>lab_template = ['board_flex', 'board_easylab', 'myboard'];</tt> | ||
+ | * At this point you need to recompile all the files by running "builder.sce". | ||
Finally, when generating the code, use "myboard" instead of "board_flex" in the Target board parameter in the code generator dialog box. | Finally, when generating the code, use "myboard" instead of "board_flex" in the Target board parameter in the code generator dialog box. |
Latest revision as of 09:28, 10 April 2012
It is possible to use Scicos-FLEX with non-FLEX boards. These steps should make it possible to compile an EE application based on a custom board.
Here is what you need to do:
- You need to write your own blocks. see the following link
- You need to create a template for your board.
- First, start from an existing template. The reference template is stored into the example eclipse plugin. under my PC, it is currently C:\Evidence\eclipse\plugins\com.eu.evidence.ee.templates.dspic_1.5.1.201011221106\examples\pic30\pic30_scicos
- Then, copy the template in another directory under the examples directory (for example, ".../examples/pic30/myboard")
- change, in the template.xml, the board ID from "board_flex" to "myboard"
- change the code to reflect your board configuration by editing the 'oil' and the source files.
- Now you need to add the template in the Scicos target settings, by editing the file SCI+'/contrib/scicos_ee/scicos_flex/dsPIC/macros /codegen/SetTarget_.sci', changing the templates list as follows: lab_template = ['board_flex', 'board_easylab', 'myboard'];
- At this point you need to recompile all the files by running "builder.sce".
Finally, when generating the code, use "myboard" instead of "board_flex" in the Target board parameter in the code generator dialog box.