Programming PIC18F46K22 Failing everytime ???
Posted: Tue May 08, 2012 5:49 pm
HI all,
Im trying to program a PIC18F46K22 but everytime I get the same error message:
Everytime the programmer askes me if I want to earse the PIC I click yes but nothing seems to be happening.
Can somebody help me with this,

Link: http://i45.tinypic.com/3005jyq.jpg
Im trying to program a PIC18F46K22 but everytime I get the same error message:
Code: Select all
File name: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
Title:
Description:
Generated by: Flowcode v5.2.0.0
Date: Tuesday, May 08, 2012 18:45:24
Licence: Professional
Registered to: Jordy Kleian
Licence key: H8NNFC
http://www.matrixmultimedia.com
De compiler wordt gestart...
C:\Program Files (x86)\Flowcode\v5\Tools\boostc\boostc_pic18_flowcode.exe -v -t PIC18F46K22 "ADSB Airplane Tracker Code.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC18 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC18 max code size:Unlimited, max RAM banks:Unlimited
ADSB Airplane Tracker Code.c
Starting preprocessor: C:\PROGRA~2\Flowcode\v5\Tools\boostc\pp.exe "ADSB Airplane Tracker Code.c" -i C:\PROGRA~2\Flowcode\v5\Tools\boostc\include -d _PIC18F46K22 -la -c2 -o "ADSB Airplane Tracker Code.pp" -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX
.......................
ADSB Airplane Tracker Code.c success
success
Resultaat = 0
De linker/assembler wordt gestart...
C:\Program Files (x86)\Flowcode\v5\Tools\boostc\boostlink_pic.exe -ld "C:\Program Files (x86)\Flowcode\v5\Tools\BoostC\lib" libc.pic18.lib rand.pic18.lib float.pic18.lib "ADSB Airplane Tracker Code.obj" -t PIC18F46K22 -d "A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller" -p "ADSB Airplane Tracker Code"
BoostLink Optimizing Linker Version 7.03
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Caution: argument of 'delay_us' calls must have a value of 1 or more
Caution: Delay inaccurrate: 'delay_us', Delay overhead:0ms, Unit delay:0.00101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_10us', Delay overhead:0ms, Unit delay:0.0101725ms, Delay resolution:1 units
Caution: Delay inaccurrate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00016ms, Delay resolution:1 units
Warning unreferenced functions removed:
FC_CAL_Port_Out__x in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_Out_DDR__x in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_In__x in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
FC_CAL_Port_In_DDR__x in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_IO.c
Wdt_Delay_S in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_US in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_MS in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINTWDT_MS in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINT_S in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_DELAYINTWDT_S in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Delay.c
FCI_GETCHAR in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_GETLENGTH in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_MIDSTRING in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_LEFTSTRING in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_RIGHTSTRING in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_TOLOWER in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_TOUPPER in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_COMPARE in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_FLOAT_TO_STRING in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_NUMBER_TO_HEX in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRING_TO_FLOAT in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRREV in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
FCI_STRMOV in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_String.c
isinf in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_round in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_floor in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
flt_ceil in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_Float.c
FCM_Update_System_info in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FC_CAL_UART_Update_Baud_1 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FCD_RS2320_SendRS232String in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_RS2320_ReceiveRS232Char in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_RS2320_ChangeHWBaud in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_PrintASCII in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_Command in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_PrintNumber in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_ScrollDisplay in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_ClearLine in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_LCDDisplay0_RAM_Write in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_crc_shuffle_byte in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_crc_init in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_get_next_id in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_get_pad_byte in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_scanbus in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_get_devicecount in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_read_device in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_One_Wire0_oo_get_IDByte in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_Longitude in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_Latitude in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_Altitude in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_GroundSpeed in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_Course_Over_Ground in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_NumberOfSatellites in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_UTC_Time in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_UTC_Date in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_CheckBufferOverflow in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_DilutionOfPrecision in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_HorizontalDilutionOfPrecision in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FCD_GPS0_Read_VerticalDilutionOfPrecision in: A:\Flowcode Projects\Projecten\ADSB Airplane Tracker\Software Microcontroller\ADSB Airplane Tracker Code.c
FC_CAL_UART_Uninit_1 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Delay_1 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Uninit_2 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Send_2 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Delay_2 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
FC_CAL_UART_Update_Baud_2 in: C:\Program Files (x86)\Flowcode\v5\CAL\PIC\PIC_CAL_UART.c
Building CASM file
Serious Warning: Possible sw stack corruption, function 'delay_us' called by more than one asynchronous thread (main/Task, interrupt, interrupt low)
Memory Usage Report
===================
RAM available:3896 bytes, used:428 bytes (11.0%), free:3468 bytes (89.0%),
Heap size:3468 bytes, Heap max single alloc:127 bytes
ROM available:65536 bytes, used:6386 bytes (9.8%), free:59150 bytes (90.2%)
success
Resultaat = 0
De programmer wordt gestart...
C:\Program Files (x86)\Flowcode\v5\Tools\PPP\PPPv3.exe -cs 2 -chip PIC18F46K22 -nogui "ADSB Airplane Tracker Code.hex"
Sending program...
Erasing the PICmicro
NOTE: EEPROM data will also be erased!
....
Writing program memory
.....
Writing configuration memory
Programming failed: <1><2><3><5><6><8><9><10><11><12><13>
That took 7,644 seconds
Resultaat = 0
KLAAR
Can somebody help me with this,

Link: http://i45.tinypic.com/3005jyq.jpg