Menu

#2589 Only 85 pointer possible in rom. This is too few!

open
nobody
None
PIC16
5
2017-02-24
2017-02-24
No

__code char *Dummy0[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy1[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy2[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy3[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy4[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy5[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy6[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char *Dummy7[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
"6 xx",
"7 xx",
"8 xx",
"9 xx",
};

__code char Dummy8[] ={
"0 xx",
"1 xx",
"2 xx",
"3 xx",
"4 xx",
"5 xx",
/
"6 xx",
"7 xx",
"8 xx",
"9 xx",*/
};

void main(void)
{
unsigned char dummy;

while(1)
{

++dummy;

}

}

message: Using default linker script "C:\Program Files (x86)\gputils\lkr\18f2680_g.lkr".
warning: Relocation of section ".idata" failed, relocating to a shared memory location.
error: Linker script has no definition that matches the type of section ".idata"
With MC18, 128 pointers are possible. After #pragma idata my_section_2 next block.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB