CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Loading 2 HEX files at once

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
matthewsachs



Joined: 19 Jun 2016
Posts: 22

View user's profile Send private message

Loading 2 HEX files at once
PostPosted: Sat Dec 10, 2016 10:20 am     Reply with quote

I'm using a bootloader to load my main program over USB.

Currently, I use CCSLoad + ICD-U64 to program the PIC with the bootloader hex file (let's call it B.hex). I then open up SIOW in order to load the main application (let's call it A.hex)

Everything works well, but it takes forever.

Is there any way to combine the B.hex and A.hex files into a single HEX file that CCSLoad can program the PIC with in one shot?

Some notes:

1. Both A.hex and B.hex have a link to this include file:

Code:
#define LOADER_END   0x7FF
#define LOADER_SIZE   0x4FF

#ifndef _bootloader
#build(reset=LOADER_END+1, interrupt=LOADER_END+9)
#org 0, LOADER_END {}
#endif


2. My bootloader code has this directive to pull in serial numbers from a text file stored in the same folder:

Code:
#serialize(dataee=0x02,binary=4,listfile="serial_source.txt",log="serial_log.txt")


3. Here is a listing of my actual bootloader.hex

Code:
:0400000020EF00F0FD
:0800080004EF04F00000000009
:0E00100000000000000000000CEF04F01000E3
:10004000F86AD09EC150C00B0F09C16E070EB46E86
:100050006BD97AD9F250006EF29EAA6A080EA96E88
:10006000DD0EA86EA69CA69EA6840F01550EA76E57
:10007000AA0EA76EA682A6B2FED7A6940050F212D0
:10008000928880B80ED0F2CF4FF0F29EAA6A090E85
:10009000A96EA69CA69EA680A8504FBEF28EAA0866
:0E00A00003E100012DD90F010001AADB0300CE
:0403000023D91200EB
:06030A00846B969C8D9CA3
:1003100000D0956883CF84F000D0969C8D8CFF0E22
:10032000956E84C001F01200826B968AFF0E956E66
:10033000969C8D8C969E8D8E826B823D01D003D0D3
:10034000E4DF822BFAD71200230E486EA60E476E0A
:100350000E0E4A6ED90E496EA10E4C6ED10E4B6E2A
:100360002C0E4E6E600E4D6E1200969C8D8C969EDD
:100370008D8E968884B80DD0956A82C08CFF00D08F
:10038000969E8D8E00D0969E8D9E00D0FF0E956E0F
:1003900001D000001200886B896B895101082BE3A2
:1003A00087C003F086C0E9FF87C0EAFFEF5040082E
:1003B00010E28851100DF3CF8AF087C003F086C099
:1003C000E9FF87C0EAFFEF508A25BF0F0A0F886F49
:1003D0000CD08851100DF3CF8AF086C0E9FF87C09A
:1003E000EAFFEF508A25D00F886F8951892B862B21
:1003F000D8B4872BD2D788C001F012004934026EDE
:100400004A34036E023603360236033602360336AA
:1004100002360336E00E021602504918826F03506E
:100420004A18836F4CC04AF04BC049F04EC04CF0A4
:100430004DC04BF048C04EF047C04DF0D890036A15
:100440004830026E4718846F03504818856F8251F8
:10045000841B8351851B8331036E8231026E03320C
:10046000023203320232033202320F0E03160250FE
:100470008419476E03508519486E47C001F0120079
:10048000876B8439876F0F0E87178751090809E238
:1004900085C0E9FF86C0EAFF410E8725F60FEF6EA3
:1004A00007D085C0E9FF86C0EAFF300E8725EF6ED2
:1004B00084510F0B876F875109080BE2010E8525C8
:1004C000E96E000E8621EA6E410E8725F60FEF6E6B
:1004D00009D0010E8525E96E000E8621EA6E300EE8
:1004E0008725EF6E1200F250036EF29EA68EA68450
:1004F0000F01550EA76EAA0EA76EA682000003502C
:10050000F21200011200D08CA69CF6503F0B006E38
:10051000C00EF6160A0082C001F0006607D0EECFCA
:10052000F5FF015204E00F00010603D000060B00A6
:100530000C003F0EF6143F0AF0E1A688D4DFD3DFAB
:100540000166EBD7F86A12004F92556A546A5D6AE9
:100550005C6A5B6A5A6AE8DEF7DE760E826F05DF58
:10056000310E826F02DF4FB224D14F80066A968629
:1005700084A602D00000FBD7036A0650070F016E65
:10058000000E032201C082F003C083F0BEDE83C0F0
:10059000EAFF82C0E9FF01C0EFFF0650062A036AA6
:1005A000070FE96E000E0320EA6EEF500D0803E01E
:1005B00006503F08DCE2130E826FD7DE07507C083E
:1005C00030E1010E5F6E010E065C5F5C28E2036A9B
:1005D0005F50070F016E000E032201C082F003C0BE
:1005E00083F003C087F001C086F0D5DE01C081F042
:1005F00005DF0150811B036A5F50070F016E000E7B
:10060000032201C082F003C083F081C084F003C0E4
:1006100086F001C085F034DF020E5F26D4D73A0E93
:10062000076E07503A08D8A4BBD0876B080E866FB8
:10063000B2DE01C060F0876B0A0E866FACDE01C0CF
:1006400082F0876B0C0E866FA6DE82C053F001C06D
:1006500052F0876B0E0E866F9EDE01C051F054C0C3
:1006600058F055C059F052C056F053C057F0512CB5
:1006700002D04F8295D0595205E1585203E15750AC
:10068000020808E2595206E1585204E1575007089F
:10069000D8B086D05952D8A483D058502F08D8A0AB
:1006A0007FD0506A010E5F6E030E065C5F5C14E241
:1006B000036A5F50070F016E000E032201C082F033
:1006C00003C083F003C087F001C086F064DE0150F0
:1006D0005026020E5F26E8D7FF0ED8805054010F37
:1006E000506E030E065C036A070F016E000E0322B4
:1006F00001C082F003C083F003C087F001C086F020
:100700004ADE0150505C02E04F904AD0515237E12E
:10071000090E5F6E5E6A030E065C5F5C23E25E504C
:100720005E2A036A610F016E000E032201C082F08F
:1007300003C083F0036A5F50070F016E000E0322AF
:1007400001C084F003C085F003C087F001C086F0CB
:1007500022DE83C0EAFF82C0E9FF01C0EFFF020E84
:100760005F26D9D758C0F8FF57C0F7FF56C0F6FF2D
:10077000EA6A610EE96E60C082F0C5DE11D05150A8
:1007800004080EE1876B100E866F05DE01C082F053
:10079000876B120E866FFFDD82C055F001C054F0EA
:1007A0004FA003D0060E826FE0DD110E826FDDDDFB
:1007B000DAD6060E826FD9DD110E826FD6DD1200F9
:04080000FFD712000C
:020000040030CA
:0E00000000C5061E0305B1000080FFE0FF40B2
:00000001FF
Ttelmah



Joined: 11 Mar 2010
Posts: 19519

View user's profile Send private message

PostPosted: Sat Dec 10, 2016 11:33 am     Reply with quote

Has been answered here many times. A search would find some answers.
Try:

<http://www.ccsinfo.com/forum/viewtopic.php?t=55676&highlight=import>
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Dec 10, 2016 11:33 am     Reply with quote

Use the forum's search engine to search for this:
Quote:
combine* files bootloader

Set it to "Search for all terms".
http://www.ccsinfo.com/forum/search.php
You'll find several threads on the topic.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group