I've created an array of bitmaps for an LCD display (6 bytes per character) and when I tried to define an array of addresses of the bitmap arrays Code composer allocated them in RAM even though I said they were const, so I cast them as an array of ints.
I had planned to get a pointer to the first address then use array terminology to get the address of the bit map for the current char but I keep on getting a char not an int back.
Can anyone tell me where I went wrong please
const uint Chars0[] = { (uint)&Data0020,(uint)&Data0020,(uint)&Data0020};
uchar *CharPtr;
CharPtr = (uchar *)&Chars0 //this works ok (points to the first element)
CharPtr = (uchar*)((uint)CharPtr[Char]); // this puts in only one byte of the address??
What am I doing wrong?
--------------------------------------- Posted through