Error in code generation for dsPic/Scicos Pack V8

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

Moderator: paolo.gai

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Tue Oct 13, 2009 3:54 pm

Hello,

I\'ve recently installed the new pack (V8), after been using the V6 version succesfully for a long time.

Now when I try to compile the scicos model, I get an error message regarding the cygwin path:
cygpath: cannot create short name of c:\\Programmi\\Microchip\\MPLAB C30
I had this problem back in V6, but there was this file: c:/Evidence/Evidence/bin/rtd_config.properties
Where I could put the right path for the compiler, but it seems that in the new EE version 1.5.0 that file doesn\'t exists...

I followed this installation instructions:
Download ERIKA Enterprise 1.5.0
open RT-Druid
go in the Menu "Help --> Install new Software..:"
in the "Work with" textbox, please specify the following URL
http://www.evidence.eu.com/download/rtdruid_updates
then, proceed with the online update. There will be as et of plugins available for update.

a restart of Eclipse will be required at the end.
Changing the gcc compiler path in RT-Druid (Windows->Perferences->RT-Druid->Oil->dsPic) won\'t help.

Can someone help with this issue ?

Thank you

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by paolo.gai » Tue Oct 13, 2009 4:05 pm

Let me check... The file probably was missing in the release. We\'ll publish it asap... sorry for that!

PJ

blackant
Newbie
Posts: 6
Joined: Sun May 31, 2009 8:50 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by blackant » Tue Oct 13, 2009 4:10 pm


ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Tue Oct 13, 2009 4:16 pm

Thanks for both of you for the quick reply.

blackant, the file \"common_oil.pref\" neither exists in my folder...

blackant
Newbie
Posts: 6
Joined: Sun May 31, 2009 8:50 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by blackant » Tue Oct 13, 2009 4:33 pm

Unfortunately you are right.

We\'re fixing the problem right now.

Regards

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by paolo.gai » Tue Oct 13, 2009 5:34 pm

Ok. Solved. The missing file is now uploaded.

Please follow the updated instructions on the page

http://www.evidence.eu.com/content/view/293/382/

...I just tried them on my Vista machine and they works fine...

Let me know if something still does not work...

PJ

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Wed Oct 14, 2009 8:08 am

Good morning,

I\'ve put the file in configuration dir, and now the compiler runs ok. But after compiling some files this message appears:
CPP ee_thendin.c
CPP ee_mutex.c
make: *** No rule to make target `obj/rt_led.o\', needed by `libee.a\'. Stop.
Thanks

blackant
Newbie
Posts: 6
Joined: Sun May 31, 2009 8:50 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by blackant » Wed Oct 14, 2009 10:33 am

Hi,

i think you are generating code from one of your (old) scicos models.
I mean, old models use old blocks who have reference to old functions/files in the Erika tree.
So my suggestion consists in replacing all the old blocks with the new ones.

Regards

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Wed Oct 14, 2009 10:44 am

You where right, I\'ve replaced the old blocks and now it compiles perfectly.

Thank you!

blackant
Newbie
Posts: 6
Joined: Sun May 31, 2009 8:50 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by blackant » Wed Oct 14, 2009 10:46 am

Glag to hear that ^_^

You\'re welcome

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Wed Oct 14, 2009 12:18 pm

A new problem :-]

When I flash a compiled model which contains ADCin block, it seems that the code isn\'t running on the flex board.

I\'ve built the simplest model, containing a Sine source and Led sink. When I add the ADCin block and flash it the led isn\'t blinking, like it does when the model is compiled without the ADCin.

Thank you

blackant
Newbie
Posts: 6
Joined: Sun May 31, 2009 8:50 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by blackant » Wed Oct 14, 2009 12:39 pm

If you send me your model (exactly as it is) later i\'ll try to test it.

Regards

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Wed Oct 14, 2009 1:16 pm

I\'ve attached the model.
It\'s just for testing purpose so the ADC isn\'t connected to anything, but still no led blinking when running on target.
Attachments
led_sin_adc.zip
(20 KiB) Downloaded 376 times

npascher
Newbie
Posts: 23
Joined: Mon Aug 31, 2009 12:25 pm

Re:Error in code generation for dsPic/Scicos Pack V8

Post by npascher » Wed Oct 14, 2009 3:19 pm

Hey ofirbo,

did you try to connect the ADCin to anything? I can remember the following:

I did not connect a block in scicos to another. When I was compiling, I recieved an error. If I connected, the block to anything, I did not recieve the error.

Maybe, your problem is similar, to that one I\'ve had.


PS. Did you get the usb communication working?


Regards,

Niko

ofirbo
Newbie
Posts: 19
Joined: Sun Oct 26, 2008 11:18 am

Re:Error in code generation for dsPic/Scicos Pack V8

Post by ofirbo » Wed Oct 14, 2009 3:32 pm

Hi Niko,

I did connect the ADC block, and had no compilation errors, but after flashing the code it appears that the code is not running (led not blinking).

In my last post I\'ve attached a scicos diagram which includes ADC block not connected to anything, but i received no compilation errors so I thought it\'s the simplest case to decide what is the problem.

The usb communication still doesn\'t work. I\'m waiting for Paolo to check if there\'s no other solution than replacing my old board.

Locked