Programming PIC18F46K22 Failing everytime ???

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Programming PIC18F46K22 Failing everytime ???

Post by Jordy101091 »

HI all,

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
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,

Image

Link: http://i45.tinypic.com/3005jyq.jpg
the will to learn, should not be stopped by any price

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Programming PIC18F46K22 Failing everytime ???

Post by medelec35 »

Hi Jordy,
It looks like these range of chips are supported by BoostC but not PPP
take a look here:
http://www.matrixmultimedia.com/mmforum ... 5&h#p28168
and here:
http://www.matrixmultimedia.com/mmforum ... 04&#p32294

So its either use PICkit, (or any programmer that supports this device) for compiling with generated hex code.

Maybe @MM can say when when update is due?

Martin
Martin

User avatar
Jordy101091
Posts: 519
Joined: Sat Jan 08, 2011 4:02 pm
Location: The Netherlands
Has thanked: 25 times
Been thanked: 188 times
Contact:

Re: Programming PIC18F46K22 Failing everytime ???

Post by Jordy101091 »

Thanks for your reply,

Solution, I have bought a PicKit3

Thanks again,

Regards Jordy
the will to learn, should not be stopped by any price

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Programming PIC18F46K22 Failing everytime ???

Post by medelec35 »

Your welcome.
If you have not already seen the setting up instructions, they can be found here:
http://www.matrixmultimedia.com/support ... f=68&t=786

Martin
Martin

Post Reply