Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC16F1459 compile errors
07-08-2017, 05:32 PM,
#1
PIC16F1459 compile errors
PIC16F1459 Pinguino is not working for several libraries.
Windows 10, using Pinguino-installer-v1.7.1.4.exe.
It's working with blink, but not with:

Decode_Remode.pde
Code:
/*
* DecodeRemote: demonstrates decoding IR codes from a remote control
* An IR detector/demodulator must be connected to the input IRSENSOR.
* Version 0.1 March, 2014
* Author : Regis Blanchot
*/

#define IRSENSOR 0 // pin 0, can be any digital pin

char brand[][10] = {"UNKNOWN", "NEC", "SONY", "RC5", "RC6", "DISH", "SHARP", "PANASONIC", "JVC", "SANYO", "MITSUBISHI"};

decode_results results; // Results returned from the decoder

void setup()
{
Serial.begin(9600);
IRremote.enableIRIn(IRSENSOR); // Start the receiver
IRremote.blink(true); // Built-in led will blink at reception
}

void loop()
{
if (IRremote.decode(&results)==DECODED)
{
if (results.decode_type>10)
results.decode_type = 0;

Serial.print("Decoded ");
Serial.printNumber(results.value, DEC);
Serial.print(" (type ");
Serial.print(brand[results.decode_type]);
Serial.print(")\r\n");

/// or

//Serial.printf("Decoded %ld (type %s)\r\n", results.value, brand[results.decode_type]);

IRremote.resume(); // Ready to receive the next value
}
}
Error Log:
Code:
Microchip MPLAB XC8 C Compiler (Free Mode) V1.43
Build date: Jul 24 2017
Part Support Version: 1.43
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

(1273) Omniscient Code Generation not available in Free mode (warning)
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cpp.exe @C:\Users\User\AppData\Local\Temp\cpp_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" -D__PICC__ -D__PICCPRO__ -SP2,2,2,2,2,2,2,2 -DPINGUINO1459 -Dboot4 -DBOARD=PINGUINO1459 -DPROC=16f1459 -DBOOT_VER=4 "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\core" "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\libraries" -IC:\Users\User\Documents\Pinguino\v12\examples\06.Sensors\IR_remote "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include" -D_OMNI_CODE_ -D__STACK_COMPILED=1 -D__STACK_HYBRID=2 -D__STACK_REENTRANT=4 -D__STACK=__STACK_COMPILED -D__XC -D__XC8 -D__XC__ -D__XC8__ -D__XC8_VERSION=1430 -DHI_TECH_C -D_HTC_VER_MAJOR_=10 -D_HTC_VER_MINOR_=43 -D_HTC_VER_PLVL_=0 -D_HTC_VER_PATCH_=48 -D_HTC_EDITION_=0 -D__OPTIMIZE_SIZE__ -D__OPTIMIZE_SPACE__ -D__OPTIM_FLAGS=0x40003 -D__OPTIM_NONE=0x0 -D__OPTIM_ASM=0x1 -D__OPTIM_ASMFILE=0x2 -D__OPTIM_SPEED=0x20000 -D__OPTIM_SPACE=0x40000 -D__OPTIM_SIZE=0x40000 -D__OPTIM_DEBUG=0x80000 -D__OPTIM_LOCAL=0x200000 -N64 -D_16F1459 -D__16F1459 -D__16F1459__ -D_MPC_ -D__XC -D__XC8 -D_PIC14E -D_PROGMEM_=2 -S1,2,2,3,4,3,3 -D_COMMON_=1 -D_COMMON_ADDR_=112 -D_COMMON_SIZE_=16 -D_BANKCOUNT_=32 -D_BANKBITS_=5 -D_GPRCOUNT_=13 -D_GPRBITS_=3 -D__DATABANK=3 -D__FLASHTYPE=2 -D_ROMSIZE=8192 -D_EEPROMSIZE=0 -DEEPROM_SIZE=0 -D_NVMREG_INT=2 -D_EEREG_INT=1 -D_NOREG_INT=0 -D_EEPROM_INT=0 -D_FLASH_ERASE_SIZE=32 -D_FLASH_WRITE_SIZE=32 "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include\legacy" C:\Users\User\Documents\Pinguino\v12\source\main.c C:\Users\User\Documents\Pinguino\v12\source\main.pre ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cpp.exe @C:\Users\User\AppData\Local\Temp\cpp_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" -D__PICC__ -D__PICCPRO__ -SP2,2,2,2,2,2,2,2 -DPINGUINO1459 -Dboot4 -DBOARD=PINGUINO1459 -DPROC=16f1459 -DBOOT_VER=4 "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\core" "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\libraries" -IC:\Users\User\Documents\Pinguino\v12\examples\06.Sensors\IR_remote "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include" -Lgcc --dep_nosys -D_OMNI_CODE_ -D__STACK_COMPILED=1 -D__STACK_HYBRID=2 -D__STACK_REENTRANT=4 -D__STACK=__STACK_COMPILED -D__XC -D__XC8 -D__XC__ -D__XC8__ -D__XC8_VERSION=1430 -DHI_TECH_C -D_HTC_VER_MAJOR_=10 -D_HTC_VER_MINOR_=43 -D_HTC_VER_PLVL_=0 -D_HTC_VER_PATCH_=48 -D_HTC_EDITION_=0 -D__OPTIMIZE_SIZE__ -D__OPTIMIZE_SPACE__ -D__OPTIM_FLAGS=0x40003 -D__OPTIM_NONE=0x0 -D__OPTIM_ASM=0x1 -D__OPTIM_ASMFILE=0x2 -D__OPTIM_SPEED=0x20000 -D__OPTIM_SPACE=0x40000 -D__OPTIM_SIZE=0x40000 -D__OPTIM_DEBUG=0x80000 -D__OPTIM_LOCAL=0x200000 -N64 -D_16F1459 -D__16F1459 -D__16F1459__ -D_MPC_ -D__XC -D__XC8 -D_PIC14E -D_PROGMEM_=2 -S1,2,2,3,4,3,3 -D_COMMON_=1 -D_COMMON_ADDR_=112 -D_COMMON_SIZE_=16 -D_BANKCOUNT_=32 -D_BANKBITS_=5 -D_GPRCOUNT_=13 -D_GPRBITS_=3 -D__DATABANK=3 -D__FLASHTYPE=2 -D_ROMSIZE=8192 -D_EEPROMSIZE=0 -DEEPROM_SIZE=0 -D_NVMREG_INT=2 -D_EEREG_INT=1 -D_NOREG_INT=0 -D_EEPROM_INT=0 -D_FLASH_ERASE_SIZE=32 -D_FLASH_WRITE_SIZE=32 "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include\legacy" C:\Users\User\Documents\Pinguino\v12\source\main.c C:\Users\User\Documents\Pinguino\v12\source\main.d ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\p1.exe @C:\Users\User\AppData\Local\Temp\p1_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc -Tunsupported,s -Tdeprecated -Taddress,i -QF_,0,far -QI_,0,interrupt -QS_,0,persistent -QT_,0,inline -QQ,0,__pack -QJ_,0,nonreentrant -QJ_,0,compiled -QU,0,__discrete -QE_0,1479,eeprom -QL_,0,low_priority -QH_,0,high_priority -QAx,0,__minocg -Q00,1512,__invariant -Q00,1512,__stable -QCu,0,const -QR_,0,reentrant -QBu,0,__rom -QMu,0,__ram -v -N64 -S -u -fp "--cfgdata=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgdata\16f1459.cfgdata" "--cfgmap=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgmap\16f1459.cfgmap" -Gstrings,const -M -B -J -Y -r -RI --constauto C:\Users\User\Documents\Pinguino\v12\source\main.pre C:\Users\User\Documents\Pinguino\v12\source\main.p1 C:\Users\User\AppData\Local\Temp\s9lc.5 ]
C:\Users\User\Documents\Pinguino\v12\source\user.c:
13: char brand[][10] = {"UNKNOWN", "NEC", "SONY", "RC5", "RC6", "DISH", "SHARP", "PANASONIC", "JVC", "SANYO", "MITSUBISHI"};
(340) string not terminated by null character ^ (warning)
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cgpic.exe @C:\Users\User\AppData\Local\Temp\cgpic_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc -Og9s -q -w9 --ivtinit=none "-CC:\Program Files (x86)\Microchip\xc8\v1.43\dat\picc.ini" -PPIC16F1459 -PMS0:code:400000@CODE=0500h-07FFh,0800h-0FFFhx3 -PMS0:code:400000@STRCODE=0500h-01FFFh -PMS0:code:400000@STRING=0500h-05FFhx27 -PMS0:code:400000@CONST=0500h-05FFhx27 -PMS0:code:400000@ENTRY=0500h-05FFhx27 -PMS1:data:0@COMMON=070h-07Fh -PMS1:data:0@BANK0=020h-06Fh -PMS1:data:0@BANK1=0A0h-0EFh -PMS1:data:0@BANK2=0120h-016Fh -PMS1:data:0@BANK3=01A0h-01EFh -PMS1:data:0@BANK4=0220h-026Fh -PMS1:data:0@BANK5=02A0h-02EFh -PMS1:data:0@BANK6=0320h-036Fh -PMS1:data:0@BANK7=03A0h-03EFh -PMS1:data:0@BANK8=0420h-046Fh -PMS1:data:0@BANK9=04A0h-04EFh -PMS1:data:0@BANK10=0520h-056Fh -PMS1:data:0@BANK11=05A0h-05EFh -PMS1:data:0@BANK12=0620h-064Fh -PMS1:data:0@BIGRAM=02000h-023EFh -PMS1:data:0@RAM=020h-06Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -PMS1:data:0@ABS1=020h-07Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -PMS1:data:0@SFR0=00h-01Fh -PMS1:data:0@SFR1=080h-09Fh -PMS1:data:0@SFR2=0100h-011Fh -PMS1:data:0@SFR3=0180h-019Fh -PMS1:data:0@SFR4=0200h-021Fh -PMS1:data:0@SFR5=0280h-029Fh -PMS1:data:0@SFR6=0300h-031Fh -PMS1:data:0@SFR7=0380h-039Fh -PMS1:data:0@SFR8=0400h-041Fh -PMS1:data:0@SFR9=0480h-049Fh -PMS1:data:0@SFR10=0500h-051Fh -PMS1:data:0@SFR11=0580h-059Fh -PMS1:data:0@SFR12=0600h-061Fh -PMS1:data:0@SFR13=0680h-06EFh -PMS1:data:0@SFR14=0700h-076Fh -PMS1:data:0@SFR15=0780h-07EFh -PMS1:data:0@SFR16=0800h-086Fh -PMS1:data:0@SFR17=0880h-08EFh -PMS1:data:0@SFR18=0900h-096Fh -PMS1:data:0@SFR19=0980h-09EFh -PMS1:data:0@SFR20=0A00h-0A6Fh -PMS1:data:0@SFR21=0A80h-0AEFh -PMS1:data:0@SFR22=0B00h-0B6Fh -PMS1:data:0@SFR23=0B80h-0BEFh -PMS1:data:0@SFR24=0C00h-0C6Fh -PMS1:data:0@SFR25=0C80h-0CEFh -PMS1:data:0@SFR26=0D00h-0D6Fh -PMS1:data:0@SFR27=0D80h-0DEFh -PMS1:data:0@SFR28=0E00h-0E6Fh -PMS1:data:0@SFR29=0E80h-0EEFh -PMS1:data:0@SFR30=0F00h-0F6Fh -PMS1:data:0@SFR31=0F80h-0FEFh -PMS4:config:400000@CONFIG=08007h-08008h -PMS5:idloc:400000@IDLOC=08000h-08003h "--cfgdata=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgdata\16f1459.cfgdata" --cfgprefix=__CFG_ --stack=compiled -fp -AC:\Users\User\AppData\Local\Temp\s9lc. --funcdat=C:\Users\User\AppData\Local\Temp\s9lc.1 --addrqual=reject --runtime=init --runtime=clear --undefints=ignore C:\Users\User\Documents\Pinguino\v12\source\main.p1 "C:\Program Files (x86)\Microchip\xc8\v1.43\lib\pic-stdlib-d24-sz.lpp" ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cgpic.exe @C:\Users\User\AppData\Local\Temp\cgpic_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc -q -DC:\Users\User\Documents\Pinguino\v12\source\main.sdb --indir_calls --interrupts=2 --ivtinit=none "-CC:\Program Files (x86)\Microchip\xc8\v1.43\dat\picc.ini" -PPIC16F1459 -PMS0:code:400000@CODE=0500h-07FFh,0800h-0FFFhx3 -PMS0:code:400000@STRCODE=0500h-01FFFh -PMS0:code:400000@STRING=0500h-05FFhx27 -PMS0:code:400000@CONST=0500h-05FFhx27 -PMS0:code:400000@ENTRY=0500h-05FFhx27 -PMS1:data:0@COMMON=070h-07Fh -PMS1:data:0@BANK0=020h-06Fh -PMS1:data:0@BANK1=0A0h-0EFh -PMS1:data:0@BANK2=0120h-016Fh -PMS1:data:0@BANK3=01A0h-01EFh -PMS1:data:0@BANK4=0220h-026Fh -PMS1:data:0@BANK5=02A0h-02EFh -PMS1:data:0@BANK6=0320h-036Fh -PMS1:data:0@BANK7=03A0h-03EFh -PMS1:data:0@BANK8=0420h-046Fh -PMS1:data:0@BANK9=04A0h-04EFh -PMS1:data:0@BANK10=0520h-056Fh -PMS1:data:0@BANK11=05A0h-05EFh -PMS1:data:0@BANK12=0620h-064Fh -PMS1:data:0@BIGRAM=02000h-023EFh -PMS1:data:0@RAM=020h-06Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -PMS1:data:0@ABS1=020h-07Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -PMS1:data:0@SFR0=00h-01Fh -PMS1:data:0@SFR1=080h-09Fh -PMS1:data:0@SFR2=0100h-011Fh -PMS1:data:0@SFR3=0180h-019Fh -PMS1:data:0@SFR4=0200h-021Fh -PMS1:data:0@SFR5=0280h-029Fh -PMS1:data:0@SFR6=0300h-031Fh -PMS1:data:0@SFR7=0380h-039Fh -PMS1:data:0@SFR8=0400h-041Fh -PMS1:data:0@SFR9=0480h-049Fh -PMS1:data:0@SFR10=0500h-051Fh -PMS1:data:0@SFR11=0580h-059Fh -PMS1:data:0@SFR12=0600h-061Fh -PMS1:data:0@SFR13=0680h-06EFh -PMS1:data:0@SFR14=0700h-076Fh -PMS1:data:0@SFR15=0780h-07EFh -PMS1:data:0@SFR16=0800h-086Fh -PMS1:data:0@SFR17=0880h-08EFh -PMS1:data:0@SFR18=0900h-096Fh -PMS1:data:0@SFR19=0980h-09EFh -PMS1:data:0@SFR20=0A00h-0A6Fh -PMS1:data:0@SFR21=0A80h-0AEFh -PMS1:data:0@SFR22=0B00h-0B6Fh -PMS1:data:0@SFR23=0B80h-0BEFh -PMS1:data:0@SFR24=0C00h-0C6Fh -PMS1:data:0@SFR25=0C80h-0CEFh -PMS1:data:0@SFR26=0D00h-0D6Fh -PMS1:data:0@SFR27=0D80h-0DEFh -PMS1:data:0@SFR28=0E00h-0E6Fh -PMS1:data:0@SFR29=0E80h-0EEFh -PMS1:data:0@SFR30=0F00h-0F6Fh -PMS1:data:0@SFR31=0F80h-0FEFh -PMS4:config:400000@CONFIG=08007h-08008h -PMS5:idloc:400000@IDLOC=08000h-08003h "--cfgdata=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgdata\16f1459.cfgdata" --cfgprefix=__CFG_ --stack=compiled -AC:\Users\User\AppData\Local\Temp\s9lc. --funcdat=C:\Users\User\AppData\Local\Temp\s9lc.1 --addrqual=reject --runtime=init --runtime=clear --volsfrs=196h-196h,F8Ch-F8Eh,F90h-F91h,FE3h-FEBh,FEDh-FEFh --undefints=ignore C:\Users\User\Documents\Pinguino\v12\source\main.p1 "C:\Program Files (x86)\Microchip\xc8\v1.43\lib\pic-stdlib-d24-sz.lpp" ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\aspic.exe @C:\Users\User\AppData\Local\Temp\aspic_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc -o "-CC:\Program Files (x86)\Microchip\xc8\v1.43\dat\picc.ini" -ver=V1.43 -lC:\Users\User\Documents\Pinguino\v12\source\main.lst --opt= --chip=16F1459 -R2000 -I -no_bankop -no_pa --prog=0500h-07FFh,0800h-0FFFhx3 -oC:\Users\User\Documents\Pinguino\v12\source\main.obj C:\Users\User\AppData\Local\Temp\s9lc. ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\aspic.exe @C:\Users\User\AppData\Local\Temp\aspic_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc "-CC:\Program Files (x86)\Microchip\xc8\v1.43\dat\picc.ini" -ver=V1.43 --opt= --chip=16F1459 -R2000 -I -no_bankop -no_pa --prog=0500h-07FFh,0800h-0FFFhx3 -oC:\Users\User\AppData\Local\Temp\s9lc.obj C:\Users\User\AppData\Local\Temp\s9lc.as ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\hlink.exe @C:\Users\User\AppData\Local\Temp\hlink_s9lc.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" -cs -h+C:\Users\User\Documents\Pinguino\v12\source\main.sym --cmf=C:\Users\User\Documents\Pinguino\v12\source\main.cmf -z -w9 --disl=596:off --norlf -Q16F1459 -oC:\Users\User\AppData\Local\Temp\s9lc.2 -AUSB5=0500h-05FFh -Pusbram5=USB5 -MC:\Users\User\Documents\Pinguino\v12\source\main.map -ver=XC8#PRO##V1.43 -ACODE=0500h-07FFh,0800h-0FFFhx3 -ASTRCODE=0500h-01FFFh -ASTRING=0500h-05FFhx27 -ACONST=0500h-05FFhx27 -AENTRY=0500h-05FFhx27 -ACOMMON=070h-07Fh -ABANK0=020h-06Fh -ABANK1=0A0h-0EFh -ABANK2=0120h-016Fh -ABANK3=01A0h-01EFh -ABANK4=0220h-026Fh -ABANK5=02A0h-02EFh -ABANK6=0320h-036Fh -ABANK7=03A0h-03EFh -ABANK8=0420h-046Fh -ABANK9=04A0h-04EFh -ABANK10=0520h-056Fh -ABANK11=05A0h-05EFh -ABANK12=0620h-064Fh -ABIGRAM=02000h-023EFh -ARAM=020h-06Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -AABS1=020h-07Fh,0A0h-0EFh,0120h-016Fh,01A0h-01EFh,0220h-026Fh,02A0h-02EFh,0320h-036Fh,03A0h-03EFh,0420h-046Fh,04A0h-04EFh,0520h-056Fh,05A0h-05EFh,0620h-064Fh -ASFR0=00h-01Fh -ASFR1=080h-09Fh -ASFR2=0100h-011Fh -ASFR3=0180h-019Fh -ASFR4=0200h-021Fh -ASFR5=0280h-029Fh -ASFR6=0300h-031Fh -ASFR7=0380h-039Fh -ASFR8=0400h-041Fh -ASFR9=0480h-049Fh -ASFR10=0500h-051Fh -ASFR11=0580h-059Fh -ASFR12=0600h-061Fh -ASFR13=0680h-06EFh -ASFR14=0700h-076Fh -ASFR15=0780h-07EFh -ASFR16=0800h-086Fh -ASFR17=0880h-08EFh -ASFR18=0900h-096Fh -ASFR19=0980h-09EFh -ASFR20=0A00h-0A6Fh -ASFR21=0A80h-0AEFh -ASFR22=0B00h-0B6Fh -ASFR23=0B80h-0BEFh -ASFR24=0C00h-0C6Fh -ASFR25=0C80h-0CEFh -ASFR26=0D00h-0D6Fh -ASFR27=0D80h-0DEFh -ASFR28=0E00h-0E6Fh -ASFR29=0E80h-0EEFh -ASFR30=0F00h-0F6Fh -ASFR31=0F80h-0FEFh -preset_vec=0500h,intentry,init,end_init -ppowerup=CODE -pcinit=CODE -pfunctab=ENTRY -ACONFIG=08007h-08008h -pconfig=CONFIG -DCONFIG=2 -AIDLOC=08000h-08003h -pidloc=IDLOC -DIDLOC=2 -DCODE=2 -DSTRCODE=2 -DSTRING=2 -DCONST=2 -DENTRY=2 -k C:\Users\User\AppData\Local\Temp\s9lc.obj C:\Users\User\Documents\Pinguino\v12\source\main.obj ]
0: (1347) can't find 0x4A words (0x4a withtotal) for psect "text52" in class "CODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x43 words (0x43 withtotal) for psect "text16" in class "CODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x40 words (0x40 withtotal) for psect "stringtext1" in class "STRCODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x3C words (0x3c withtotal) for psect "text44" in class "CODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x30 words (0x30 withtotal) for psect "text39" in class "CODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x30 words (0x30 withtotal) for psect "text49" in class "CODE" (largest unused contiguous range 0x2A)
0: (1347) can't find 0x1E words (0x1e withtotal) for psect "maintext" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x1D words (0x1d withtotal) for psect "text32" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x1D words (0x1d withtotal) for psect "text33" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x1C words (0x1c withtotal) for psect "text10" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x1C words (0x1c withtotal) for psect "text27" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x1A words (0x1a withtotal) for psect "text18" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x15 words (0x15 withtotal) for psect "text41" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x14 words (0x14 withtotal) for psect "text1" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x14 words (0x14 withtotal) for psect "text14" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x12 words (0x12 withtotal) for psect "stringtext2" in class "STRCODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x12 words (0x12 withtotal) for psect "stringtext3" in class "STRCODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x11 words (0x11 withtotal) for psect "text53" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x10 words (0x10 withtotal) for psect "text11" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xF words (0xf withtotal) for psect "text46" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xD words (0xd withtotal) for psect "stringtext4" in class "STRCODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xC words (0xc withtotal) for psect "inittext" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xC words (0xc withtotal) for psect "clrtext" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xC words (0xc withtotal) for psect "text21" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0xB words (0xb withtotal) for psect "text6" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x9 words (0x9 withtotal) for psect "idataBANK1" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x8 words (0x8 withtotal) for psect "stringtext5" in class "STRCODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x8 words (0x8 withtotal) for psect "text19" in class "CODE" (largest unused contiguous range 0x5)
0: (1347) can't find 0x3 words (0x3 withtotal) for psect "idataCOMMON" in class "CODE" (largest unused contiguous range 0x1)
0: (1347) can't find 0x2 words (0x2 withtotal) for psect "text7" in class "CODE" (largest unused contiguous range 0x1)
(908) exit status = 1
del C:\Users\User\Documents\Pinguino\v12\source\main.obj
del C:\Users\User\AppData\Local\Temp\s9lc.
del C:\Users\User\AppData\Local\Temp\s9lc.1
del C:\Users\User\AppData\Local\Temp\s9lc.2
del C:\Users\User\AppData\Local\Temp\cpp_s9lc.cmd
del C:\Users\User\AppData\Local\Temp\p1_s9lc.cmd
del C:\Users\User\AppData\Local\Temp\cgpic_s9lc.cmd
del C:\Users\User\AppData\Local\Temp\aspic_s9lc.cmd
del C:\Users\User\AppData\Local\Temp\s9lc.as
del C:\Users\User\AppData\Local\Temp\s9lc.obj
del C:\Users\User\AppData\Local\Temp\hlink_s9lc.cmd
(908) exit status = 1
Printf_Simple.pde
Code:
// Output on Linux : sudo cat /dev/ttyACM0
// Outout on Windows :

u8 i=0;

void setup()
{
pinMode(USERLED, OUTPUT);
}

void loop()
{
CDC.printf("i=%03d \r\n", i++);
/*
CDC.print("i=");
CDC.printNumber(i++, DEC);
CDC.print("\r\n");
*/
toggle(USERLED);
delay(1000);
}
Code:
Microchip MPLAB XC8 C Compiler (Free Mode) V1.43
Build date: Jul 24 2017
Part Support Version: 1.43
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

(1273) Omniscient Code Generation not available in Free mode (warning)
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cpp.exe @C:\Users\User\AppData\Local\Temp\cpp_s9qk.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" -D__PICC__ -D__PICCPRO__ -SP2,2,2,2,2,2,2,2 -DPINGUINO1459 -Dboot4 -DBOARD=PINGUINO1459 -DPROC=16f1459 -DBOOT_VER=4 "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\core" "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\libraries" -IC:\Users\User\Documents\Pinguino\v12\examples\04.Communication\USB\CDC "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include" -D_OMNI_CODE_ -D__STACK_COMPILED=1 -D__STACK_HYBRID=2 -D__STACK_REENTRANT=4 -D__STACK=__STACK_COMPILED -D__XC -D__XC8 -D__XC__ -D__XC8__ -D__XC8_VERSION=1430 -DHI_TECH_C -D_HTC_VER_MAJOR_=10 -D_HTC_VER_MINOR_=43 -D_HTC_VER_PLVL_=0 -D_HTC_VER_PATCH_=48 -D_HTC_EDITION_=0 -D__OPTIMIZE_SIZE__ -D__OPTIMIZE_SPACE__ -D__OPTIM_FLAGS=0x40003 -D__OPTIM_NONE=0x0 -D__OPTIM_ASM=0x1 -D__OPTIM_ASMFILE=0x2 -D__OPTIM_SPEED=0x20000 -D__OPTIM_SPACE=0x40000 -D__OPTIM_SIZE=0x40000 -D__OPTIM_DEBUG=0x80000 -D__OPTIM_LOCAL=0x200000 -N64 -D_16F1459 -D__16F1459 -D__16F1459__ -D_MPC_ -D__XC -D__XC8 -D_PIC14E -D_PROGMEM_=2 -S1,2,2,3,4,3,3 -D_COMMON_=1 -D_COMMON_ADDR_=112 -D_COMMON_SIZE_=16 -D_BANKCOUNT_=32 -D_BANKBITS_=5 -D_GPRCOUNT_=13 -D_GPRBITS_=3 -D__DATABANK=3 -D__FLASHTYPE=2 -D_ROMSIZE=8192 -D_EEPROMSIZE=0 -DEEPROM_SIZE=0 -D_NVMREG_INT=2 -D_EEREG_INT=1 -D_NOREG_INT=0 -D_EEPROM_INT=0 -D_FLASH_ERASE_SIZE=32 -D_FLASH_WRITE_SIZE=32 "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include\legacy" C:\Users\User\Documents\Pinguino\v12\source\main.c C:\Users\User\Documents\Pinguino\v12\source\main.pre ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\cpp.exe @C:\Users\User\AppData\Local\Temp\cpp_s9qk.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" -D__PICC__ -D__PICCPRO__ -SP2,2,2,2,2,2,2,2 -DPINGUINO1459 -Dboot4 -DBOARD=PINGUINO1459 -DPROC=16f1459 -DBOOT_VER=4 "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\core" "-IC:\Program Files\Pinguino\v12\p8\include\pinguino\libraries" -IC:\Users\User\Documents\Pinguino\v12\examples\04.Communication\USB\CDC "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include" -Lgcc --dep_nosys -D_OMNI_CODE_ -D__STACK_COMPILED=1 -D__STACK_HYBRID=2 -D__STACK_REENTRANT=4 -D__STACK=__STACK_COMPILED -D__XC -D__XC8 -D__XC__ -D__XC8__ -D__XC8_VERSION=1430 -DHI_TECH_C -D_HTC_VER_MAJOR_=10 -D_HTC_VER_MINOR_=43 -D_HTC_VER_PLVL_=0 -D_HTC_VER_PATCH_=48 -D_HTC_EDITION_=0 -D__OPTIMIZE_SIZE__ -D__OPTIMIZE_SPACE__ -D__OPTIM_FLAGS=0x40003 -D__OPTIM_NONE=0x0 -D__OPTIM_ASM=0x1 -D__OPTIM_ASMFILE=0x2 -D__OPTIM_SPEED=0x20000 -D__OPTIM_SPACE=0x40000 -D__OPTIM_SIZE=0x40000 -D__OPTIM_DEBUG=0x80000 -D__OPTIM_LOCAL=0x200000 -N64 -D_16F1459 -D__16F1459 -D__16F1459__ -D_MPC_ -D__XC -D__XC8 -D_PIC14E -D_PROGMEM_=2 -S1,2,2,3,4,3,3 -D_COMMON_=1 -D_COMMON_ADDR_=112 -D_COMMON_SIZE_=16 -D_BANKCOUNT_=32 -D_BANKBITS_=5 -D_GPRCOUNT_=13 -D_GPRBITS_=3 -D__DATABANK=3 -D__FLASHTYPE=2 -D_ROMSIZE=8192 -D_EEPROMSIZE=0 -DEEPROM_SIZE=0 -D_NVMREG_INT=2 -D_EEREG_INT=1 -D_NOREG_INT=0 -D_EEPROM_INT=0 -D_FLASH_ERASE_SIZE=32 -D_FLASH_WRITE_SIZE=32 "-IC:\Program Files (x86)\Microchip\xc8\v1.43\include\legacy" C:\Users\User\Documents\Pinguino\v12\source\main.c C:\Users\User\Documents\Pinguino\v12\source\main.d ]
C:\Program Files (x86)\Microchip\xc8\v1.43\bin\p1.exe @C:\Users\User\AppData\Local\Temp\p1_s9qk.cmd [ "--edf=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\en_msgs.txt" --cmode=htc -Tunsupported,s -Tdeprecated -Taddress,i -QF_,0,far -QI_,0,interrupt -QS_,0,persistent -QT_,0,inline -QQ,0,__pack -QJ_,0,nonreentrant -QJ_,0,compiled -QU,0,__discrete -QE_0,1479,eeprom -QL_,0,low_priority -QH_,0,high_priority -QAx,0,__minocg -Q00,1512,__invariant -Q00,1512,__stable -QCu,0,const -QR_,0,reentrant -QBu,0,__rom -QMu,0,__ram -v -N64 -S -u -fp "--cfgdata=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgdata\16f1459.cfgdata" "--cfgmap=C:\Program Files (x86)\Microchip\xc8\v1.43\dat\cfgmap\16f1459.cfgmap" -Gstrings,const -M -B -J -Y -r -RI --constauto C:\Users\User\Documents\Pinguino\v12\source\main.pre C:\Users\User\Documents\Pinguino\v12\source\main.p1 C:\Users\User\AppData\Local\Temp\s9qk.5 ]
C:\Program Files\Pinguino\v12\p8\include\pinguino\core\usbcdc.c: CDCbegin()
100: UEP7=0;UEP8=0;UEP9=0;
^ (192) undefined identifier "UEP8"
^ (192) undefined identifier "UEP9"
101: UEP10=0;UEP11=0;UEP12=0;
^ (192) undefined identifier "UEP10"
^ (192) undefined identifier "UEP11"
^ (192) undefined identifier "UEP12"
102: UEP13=0;UEP14=0;UEP15=0;
^ (192) undefined identifier "UEP13"
^ (192) undefined identifier "UEP14"
^ (192) undefined identifier "UEP15"
C:\Program Files\Pinguino\v12\p8\include\pinguino\core\usbcdc.c: CDCprintf()
321: len = psprintf2(CDCTxBuffer, fmt, args);
^ (359) illegal conversion between pointer types (warning)
pointer to volatile unsigned char -> pointer to unsigned char
322: CDCwrite(CDCTxBuffer, len);
^ (359) illegal conversion between pointer types (warning)
pointer to volatile unsigned char -> pointer to unsigned char
(908) exit status = 1
del C:\Users\User\AppData\Local\Temp\cpp_s9qk.cmd
del C:\Users\User\AppData\Local\Temp\p1_s9qk.cmd
(908) exit status = 1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)