Compilation problem with FLEX-DMB LCD scicos block

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

Moderator: paolo.gai

Locked
Thom314
Newbie
Posts: 4
Joined: Wed Apr 13, 2011 2:32 pm

Compilation problem with FLEX-DMB LCD scicos block

Post by Thom314 » Tue May 24, 2011 11:23 am

Hello,

I have a problem using the LCD from the FLEX demoboard :
With simple LCD test and the exemple "demoboard_example_flexside.cos"
I have at the end of the compilation the error message :

c:\PROGRA~2\MICROC~1\mplabc30\v3.25\bin\bin\pic30-coeff-ld.exe
Error : A heap is required, but has not benn specified

It seems to be a problem of memory but I have no idea how to fix it...
I'm using Windows 7, Mplab v8.70, EE 1.5.1, c30-v3.25-comboLITE, and the last version of Visual C++ express...
Could you help me ?

Thanks

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

Re: Compilation problem with FLEX-DMB LCD scicos block

Post by paolo.gai » Tue May 24, 2011 12:25 pm

Ciao,

This is strange. Which version of the Scicos-FLEX /ERIKA / Microchip C30 are you using?

In any case, go into the template plugin directory of your RT-Druid installation:

Code: Select all

C:\Evidence\eclipse\plugins\com.eu.evidence.ee.templates.dspic_1.5.1.xxxx\examples\pic30\pic30_scicos
edit the file conf_scicos.oil

There should be something like:

Code: Select all

#ifndef __NO_MALLOC__
LDFLAGS = "--heap=8000";
#endif // __NO_MALLOC__
substitute it with:

Code: Select all

LDFLAGS = "--heap=8000";
to get a heap in your microcontroller. then recompile everything.

Also, please send us your ScicosLab file, so that we can take a look at it. We'll insert it into the regression tests (we are preparing the ScicosLab pack 10 in these days).

Ciao,

Paolo

Thom314
Newbie
Posts: 4
Joined: Wed Apr 13, 2011 2:32 pm

Re: Compilation problem with FLEX-DMB LCD scicos block

Post by Thom314 » Tue May 24, 2011 1:36 pm

Thanks a lot

Scicoslab version is 4.4b7, Erika is 1.5.1, C30 version is 3.25-comboLITE

With the subtitution both work !

Have a good afternoon

Locked