maziar
Full Member level 4
- Joined
- Jun 6, 2001
- Messages
- 195
- Helped
- 5
- Reputation
- 10
- Reaction score
- 1
- Trophy points
- 1,298
- Location
- Islamic republic of Iran
- Activity points
- 1,564
error[pe513]
IAR have problem with two dimension array ?
//////////// start of code
#include <iom16.h>
unsigned char VRAM [2][5];
void main(void)
{
unsigned char * p;
p = VRAM ;
PORTD = * p ;
}
////////////End of code
have generate :
Error[Pe513]: a value of type "unsigned char (*)[5]" cannot be assigned to an entity of type
"unsigned char *"
Errors: 1
Warnings: none
why ? Iar can not support multidimention array true ?
what to do ?
IAR have problem with two dimension array ?
//////////// start of code
#include <iom16.h>
unsigned char VRAM [2][5];
void main(void)
{
unsigned char * p;
p = VRAM ;
PORTD = * p ;
}
////////////End of code
have generate :
Error[Pe513]: a value of type "unsigned char (*)[5]" cannot be assigned to an entity of type
"unsigned char *"
Errors: 1
Warnings: none
why ? Iar can not support multidimention array true ?
what to do ?