Hello everyone.
I'm using the C::B nightly-build from 1’st of March 2007 under WINXP to write a program for a microchip PIC18F458. I use the SDCC as compiler together with the gputils.
How do I configure the processor-type? Currently C::B (or SDCC) uses the header-files for the PIC18F452, so some registers are not defined correctly. The only way I found to change it, is to edit the SDCC-header named "pic18fregs.h" like this:
...
#elif defined(pic18f452)
//# include <pic18f452.h>
# include <pic18f458.h> /*changed by Eckard Klotz*/
...
But this is not the way I would prefer. I think, I have overseen something, so where is my failure?
A second point is how to use the MPLAB-tools instead of the gputils. Is there also a possibility to configure it, which I have overseen?
best regards,
Eckard Klotz.