Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

picc18 bug, define two large array, PICC-18 OCCUAR ERROR

Status
Not open for further replies.

bes

Junior Member level 2
Joined
Sep 24, 2002
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
China
Activity points
70
picc18 psect const

i USE PIC18C452 ,define two array as blow;

HIGH[12][24];
LOW[12][24];

when i bulid project , error as blow:

Error[000] : Can't find 0x240 words for psect param in segment RAM
 

cheolim

Full Member level 1
Joined
Dec 3, 2002
Messages
97
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
873
picc18 large array code picc18

Hello, bes

Maybe your problem comes from BANKs problems or limit amount of RAM.
1st possible solution is :
Using the instruction of const, declare your array on ROM area.

2nd possible solution is :
Please check how much RAM is needed in your source code.
If you using 8-bits char integer two of 12X24 array is need 576 bytes RAM.
Other case 16-bits int integer is need 1152 bytes and
24-bits floats are need 1728 bytes-it's out of bounce and
32-bits floats or long or doubles are 2304 byte- it also out of range.

I hope aboves can help you.

Good luck.
:roll:
 

cheolim

Full Member level 1
Joined
Dec 3, 2002
Messages
97
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
873
psect in picc18

Hello, bes

Maybe your problem comes from BANKs problems or limit amount of RAM.
1st possible solution is :
Using the instruction of const, declare your array on ROM area.

2nd possible solution is :
Please check how much RAM is needed in your source code.
If you using 8-bits char integer two of 12X24 array is need 576 bytes RAM.
Other case 16-bits int integer is need 1152 bytes and
24-bits floats are need 1728 bytes-it's out of bounce and
32-bits floats or long or doubles are 2304 byte- it also out of range.

I hope aboves can help you.

Good luck.
:roll:
 

cheolim

Full Member level 1
Joined
Dec 3, 2002
Messages
97
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
873
pic c18 arrays

Hello, bes

Maybe your problem comes from BANKs problems or limit amount of RAM.
1st possible solution is :
Using the instruction of const, declare your array on ROM area.

2nd possible solution is :
Please check how much RAM is needed in your source code.
If you using 8-bits char integer two of 12X24 array is need 576 bytes RAM.
Other case 16-bits int integer is need 1152 bytes and
24-bits floats are need 1728 bytes-it's out of bounce and
32-bits floats or long or doubles are 2304 byte- it also out of range.

I hope aboves can help you.

Good luck.
:roll:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top