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

Error in code generation for dsPic/Scicos Pack V8

Post 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
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

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

Post by paolo.gai »

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

PJ
ofirbo

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

Post by ofirbo »

Thanks for both of you for the quick reply.

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

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

Post by blackant »

Unfortunately you are right.

We\'re fixing the problem right now.

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

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

Post 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
ofirbo

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

Post 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
blackant

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

Post 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
ofirbo

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

Post by ofirbo »

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

Thank you!
blackant

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

Post by blackant »

Glag to hear that ^_^

You\'re welcome
ofirbo

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

Post 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
blackant

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

Post by blackant »

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

Regards
ofirbo

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

Post 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.
Attachments
led_sin_adc.zip
(24 KiB) Downloaded 598 times
npascher

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

Post 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
ofirbo

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

Post 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.
Locked