__code const volatile unsigned char A = {
0x82,0x01,0x40,0x40,0x44,0x90,0xC8,0x44,
0x70,0x01,0x40,0x42,0xF0,0x00,0x44,0x10,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x40,0x00,0x33,0x33,0x29,0x54,0x10,0x01,};//把数组放单片机ROM内
const uchar *P = NULL;
P =A ;
IAR编译器报错:Error[Pe513]: a value of type "unsigned char const volatile __code *" cannot be assigned to an entity of type "unsigned char const *"
/*__code const volatile*/ unsigned char A = {
0x82,0x01,0x40,0x40,0x44,0x90,0xC8,0x44,
0x70,0x01,0x40,0x42,0xF0,0x00,0x44,0x10,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x40,0x00,0x33,0x33,0x29,0x54,0x10,0x01,};//把数组放单片机RAM内就能通过编译
因为A数组有500个,单片机RAM只有250个左右,无法放下,请教有没办法解决
|