dsPic v5 compiler error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

dsPic v5 compiler error

Post by saschech@gmx.de »

Hello

I want create 99 "programm_xx[75]"uint variablen.
programm_28[75] is compile ok >>> one more I have the error

Please help

Regards Wolfgang
Attachments
Programm_0.fcf_pic16
(171.57 KiB) Downloaded 201 times
programm_29 compiler error.gif
(56.84 KiB) Downloaded 502 times
programm_28 ok.gif
(60.01 KiB) Downloaded 502 times

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: dsPic v5 compiler error

Post by JonnyW »

Hi Wolfgang.

The error says there is not enough BSS memory. This is memory reserved for 'uninitialised' variables. You have too many uninitialised arrays here.

There may be some linker settings that can be tweaked in order to reduce the amount of allocated 'initialised' memory, but I don't know for sure.

Can I ask - why would you want to create such a large number of arrays? You could try allocating a single 7500 element array (requiring about 14Kb) and use an offset into this if your program allows.

Cheers,

Jonny

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: dsPic v5 compiler error

Post by saschech@gmx.de »

Hello Jonny

In a mattress-factory ,there are a sewing-automat for build the side stripe of the mattress from a big roll of material.

There are a lot of different long and different mark`s (stamp),so the costumer want 99 programm`s >> a`75 steeps.

I think the 24EP512 chip include 54kb ram,so i do these in 1 programm. no success so I build for programming 99 short programms,work well

Thanks for interest

Regards Wolfgang

Post Reply