I am trying to use SDCC in a WinXP/MPLAB environment through the SDCC-MPLAB plugin.
My SDCC version is very fresh:
SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.0 #5
416 (Mar 22 2009) (MINGW32)
Using 14-bit core (16F) PIC the command line would be the following (I see it in the output window of the MPLAB):
Executing: "C:\Program Files\SDCC\bin\sdcc.exe" main.c -c -mpic14 -p16F886
This is correct, sdcc does its job well.
After switching to a 16-bit core PIC (18F) command line changes to this:
"C:\Program Files\SDCC\bin\sdcc.exe" main.c -c -mpic16 -p18F2620
SDCC sais that '18F2620' was not found. Although SDCC knows PIC18F2620, but it seems it does not like uppercase "F" in the device name. Trying from the command line, changing that "F" to a lowercase "f" SDCC compiles the source normally:
D:\PIC\C18_macrotry>"C:\Program Files\SDCC\bin\sdcc.exe" main.c -c -mpic16 -p18f2620
The problem comes from that I cannot "lowercase" the PIC's name in the MPLAB environment, it passes the selected device always with uppercase letters. Is there any chance to change the device name handling in SDCC to accept uppercase names using "-mpic16" switch too?
Thanks in advance,