MPLAB 8.36 seems to be miscalculating the amount of space needed for a table. Does anyone have a workaround?
The pic has 0x7ff bytes of program memory.
If I try to put
org 0x6ff
addwf PCL, F
and then 255 bytes of table I get the out of space error.
I put it at 0x5ff and all was well.
As a test I then added 11 lines to the table and got the below error which suggests that mplab thinks the table was 534 bytes long (twice as big as it actually is).
Then I put org 0x700 before the extra 11 lines and again it compiled fine.
I think it would work if I put org before every line of the table but that is a lot of typing. Does anyone know a better way?
The pic has 0x7ff bytes of program memory.
If I try to put
org 0x6ff
addwf PCL, F
and then 255 bytes of table I get the out of space error.
I put it at 0x5ff and all was well.
As a test I then added 11 lines to the table and got the below error which suggests that mplab thinks the table was 534 bytes long (twice as big as it actually is).
Then I put org 0x700 before the extra 11 lines and again it compiled fine.
I think it would work if I put org before every line of the table but that is a lot of typing. Does anyone know a better way?
Error - section '.org_3' can not fit the absolute section. Section '.org_3' start=0x000005ff, length=0x00000216
Errors : 1