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
 

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:
 

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:
 

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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…