Other micro-controllers?

A forum useful to discuss the details of the ScicosLab code generator.

Moderator: paolo.gai

Locked
klausiinc

Other micro-controllers?

Post by klausiinc »

hello,

is it possible to use the flex-code generation for other micro-controllers then the dsPIC?
If yes, which files would have to be modified?

thanks already for any responses!
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Other micro-controllers?

Post by paolo.gai »

Hi!

I guess you are referring to the Scicos-FLEX code generator and not to the E4Coder Generator (both can generate code for the dsPIC).

Yes, it is possible...

We inserted some time ago some instruction at the following link... just check it out!

http://erika.tuxfamily.org/wiki/index.p ... LEX_boards

PJ
klausiinc

Re: Other micro-controllers?

Post by klausiinc »

Thanks for the fast reply! :D
I already knew the site you posted, so if I want to use the flex-codegeneration for another microcontroller do I still have to put the template into the examples/pic30/ directory?
another thing I wonder is, what does the <category> tag in the template.xml file mean?

We are building a board for automation purposes at school as the final year project and we want to make it possible to be programmed with scicos and erika-enterprise :)
As microcontroller we are using the lpc1768 cortex-m3 from nxp. So first we will also have to adapt rt-Druid to support the microcontroller.
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Other micro-controllers?

Post by paolo.gai »

Hi!

Nice project!

The template must stay inside the "examples" directory. Make it somethink like "examples/cortexm3/XXXX" or similar, where XXX is the name of the template.

The "Category" is the path under which the template is available when you make "New Project", see Figure
http://erika.tuxfamily.org/wiki/index.p ... oject2.png

About the Cortex M3 porting... Many things have already been done for Cortex M0 and M4. Please also follow the Porting guide available on the wiki:

http://erika.tuxfamily.org/wiki/index.p ... controller

When you follow the steps, do the initial part of the work without RT-Druid. When you have a working system, then we'll add together the options for your board in the OIL file specification...

Have a nice weekend,

PJ
klausiinc

Re: Other micro-controllers?

Post by klausiinc »

thank you very much for the help!

I will post again when we have made some progress ;)
klausiinc

Re: Other micro-controllers?

Post by klausiinc »

hi,

we are having some problems with the porting. we first wanted to try the porting example from the s12xs and found some strange problems

we set the directory in cygwin to the monostack EEtest0 debug file and then tried the make all command but then we received this error:
cygpath: cannot create short name of /cygdrive/c/Evidence/eclipse_160_old/plugins/com.eu.evidence.ee_1. 6.0.20111115_1040/ee_files
we then deleted the "-ms" option in the cygpath commands but the we got this error:
no such file or directory /cygdrive/c/Evidence/eclipse_160_old/plugins/com.eu.evidence.ee_1. 6.0.20111115_1040/ee_files/pkg/cfg/rules.mk
we then changed the path in the makefile to match our location of the rules.mk file and still got the error:
no such file or directory /cygdrive/c/Evidence/eclipse/plugins/com.eu.evidence.ee_2.0.0.20120721_1319/ee_files/pkg/cfg/rules.mk
but the file exists and the path is correct :'(


another error occures when we start scicosLab, during the loading of the flex plug-in this message:
link failed for dll C:\PROGRA~1\SCICOS~1.1\contrib\scicos_ee\scicos_flex\dspic\Flex-Sim\Release\libflexsim.dll
ease\libflexsim.dll', comp_fun, 'c')
!--error 236
link: the shared archive was not loaded
at line 97 of exec file called by :
exec(EESCI_DSPIC_PATH + "/Flex-Sim/loader.sce");
at line 84 of exec file called by :
exec(startup,-1);mclose(startup)
at line 259 of exec file called by :
exec('SCI/scilab.star',-1);;
we are not sure if this is a serious problem?
could this be the reason for an error when using the flex-code generator for dsPIC, we get his error-message:

Code: Select all

./compile.sh: line 36: gcc: commamd not found
and then it also doesn't find the conf.oil


we have no idea how to continue and it would be great if we could get some help! ;)
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Other micro-controllers?

Post by paolo.gai »

There are a few issues in this post :-) I'll try to give some answer to help...

- please note that the porting examples are there as a reference. Being committed while the developed was working on it, there may be references to non existing paths. Whenever you found them, we will be happy to fix them... We do not catch these sometimes because the regression tests made in Evdience currently does not cover all the architectures (we do not have the licenses for all compilers as some compilers were users by other contributors).

- About ScicosLab: please check that you installed Vistal Studio express edition 2008 (support for 2010 and maybe 2012 will come in the next version of the Scicos Pack)

- About the errors with Cygpath: The first errors were because of a non-existent file or directory (in particular eclipse_160_old)

- the last error says "no such file or directory". It means that the file in the path does not exist. I guess the problem is in the plugin names. For example, on my machine I have installed a quite recent version, and the plugins have the dates which are 2.0.0.20120703_2050 and 2.0.0.20121025_2010 . Please check that the numbers are correct... also it is probably worth an update of the plugins (the latest version published is 2.0.0.20130121_2013 ...).

- About the missing gcc. Please install Cygwin from http://erika.tuxfamily.org/drupal/download.html , in particular from http://download.tuxfamily.org/erika/web ... _1_7_9.zip . then go in the Cygwin page (http://www.cygwin.com), download setup.exe and do an update of the packages (just to be sure).

I hope it helps.

PJ
Locked