Page 1 of 2

Error in code generation for dsPic/Scicos Pack V8

Posted: Tue Oct 13, 2009 3:54 pm
by ofirbo
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

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

Posted: Tue Oct 13, 2009 4:05 pm
by paolo.gai
Let me check... The file probably was missing in the release. We\'ll publish it asap... sorry for that!

PJ

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

Posted: Tue Oct 13, 2009 4:10 pm
by blackant

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

Posted: Tue Oct 13, 2009 4:16 pm
by ofirbo
Thanks for both of you for the quick reply.

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

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

Posted: Tue Oct 13, 2009 4:33 pm
by blackant
Unfortunately you are right.

We\'re fixing the problem right now.

Regards

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

Posted: Tue Oct 13, 2009 5:34 pm
by paolo.gai
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

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

Posted: Wed Oct 14, 2009 8:08 am
by ofirbo
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

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

Posted: Wed Oct 14, 2009 10:33 am
by blackant
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

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

Posted: Wed Oct 14, 2009 10:44 am
by ofirbo
You where right, I\'ve replaced the old blocks and now it compiles perfectly.

Thank you!

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

Posted: Wed Oct 14, 2009 10:46 am
by blackant
Glag to hear that ^_^

You\'re welcome

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

Posted: Wed Oct 14, 2009 12:18 pm
by ofirbo
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

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

Posted: Wed Oct 14, 2009 12:39 pm
by blackant
If you send me your model (exactly as it is) later i\'ll try to test it.

Regards

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

Posted: Wed Oct 14, 2009 1:16 pm
by ofirbo
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.

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

Posted: Wed Oct 14, 2009 3:19 pm
by npascher
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

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

Posted: Wed Oct 14, 2009 3:32 pm
by ofirbo
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.