expression must have integral type

I get that compilation error because of this line which intended to increase the pointer by 0x200 (to point to the next segment)

Flash_ptr = Flash_ptr + (unsigned char *) 0x200;

I’v seen this but I didn’t use any illegal symbol!

P.S. The initialization of the pointer:

unsigned char * Flash_ptr = (unsigned char *) 0x20000; 

Leave a Comment