Hey guys. This past semester we learned to work with a dsPIC30F chip, so I decided to take up working on a project on an 18F2455, just cleaning up the code and fixing a couple bugs, and generally understanding the code better.
Here is the error Im getting (Im using MPLAB v8.43 and the LITE C18 compiler):
Now the one thing we didnt cover were pointers (I think that may be covered in later semesters) so I dont quite understand what a suspicious pointer conversion is. Can anyone help me out?
You are passing an integer pointer to a routine which expects a char pointer. It's suspicious because it changes the size of the data it's pointing to. You can get rid of the error by doing XSPIWrite(reg, (unsigned char *) data); if you are sure that is what you want to do. I'm assuming data is defined as an int and not int*.
You are passing an integer pointer to a routine which expects a char pointer. It's suspicious because it changes the size of the data it's pointing to. You can get rid of the error by doing XSPIWrite(reg, (unsigned char *) data); if you are sure that is what you want to do. I'm assuming data is defined as an int and not int*.
Excellent! I used (BYTE *) data instead of unsigned char but I checked the TypeDefs.h file and they are defined the same way (I didnt realize how they were defined [byte - char, dword - long], that would explain why I couldnt figure out the error). Thank you!