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

#export and range option

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



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

#export and range option
PostPosted: Tue Apr 21, 2015 3:01 am     Reply with quote

Hi to all,

I'm using #export directive of CCS V4.135 and range option. With export function of MPLAB when I fill end address field, different than 0xfffe, I have export file till address I need. Otherwise with #export directive of CCS I have always hex till 0xfffe but filled with 0 above desired end address.

Is there a possibility to have exported file as MPLAB export function ?

Thanks,
Ttelmah



Joined: 11 Mar 2010
Posts: 19549

View user's profile Send private message

PostPosted: Tue Apr 21, 2015 2:28 pm     Reply with quote

Post an example of what you are trying to do.

I have used #export, with a range, without any sign of this problem, _but_ you must only export the function(s) you require, and the range must be large enough to include everything. I saw behaviour like this, when I exported a function, and forgot that I had a const variable declared (which CCS puts normally at the top of memory), so it decided to export a blank area between the function, and this variable.
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Tue Apr 21, 2015 11:22 pm     Reply with quote

Yes,

With #export from 0 to 0xC0 I have:
Code:

:10000000C6EF9BF000000000046ED8CF05F0E0CFF3
:1000100006F00001E9CF0CF0EACF07F0E1CF08F0DD
:10002000E2CF09F0D9CF0AF0DACF0BF0F3CF12F01C
:10003000F4CF13F0FACF14F0F5CF15F0F6CF16F099
:10004000F7CF17F0F8CF18F0FBCF19F000C00EF083
:1000500001C00FF002C010F003C011F0F2AA34EF9B
:1000600000F0F2B4ACEF23F0F2A83AEF00F0F2B2F5
:1000700048EF24F0F0A640EF00F0F0B00DEF24F0D0
:10008000F0A846EF00F0F0B244EF24F09DAA4CEF48
:1000900000F09EBA8EEF24F00EC000F00FC001F009
:1000A00010C002F011C003F00CC0E9FF07C0EAFF66
:1000B000078E08C0E1FF09C0E2FF0AC0D9FF0BC0EC
:1000C000DAFF000000000000000000000000000057
:1000D0000000000000000000000000000000000020
:1000E0000000000000000000000000000000000010
:1000F0000000000000000000000000000000000000
:1001000000000000000000000000000000000000EF
:1001100000000000000000000000000000000000DF
:1001200000000000000000000000000000000000CF
:1001300000000000000000000000000000000000BF
:1001400000000000000000000000000000000000AF
:10015000000000000000000000000000000000009F
:10016000000000000000000000000000000000008F


When I export with MPLAB same start and stop I have:
Code:

:020000040000FA
:10000000C6EF9BF0FFFFFFFF046ED8CF05F0E0CFF7
:1000100006F00001E9CF0CF0EACF07F0E1CF08F0DD
:10002000E2CF09F0D9CF0AF0DACF0BF0F3CF12F01C
:10003000F4CF13F0FACF14F0F5CF15F0F6CF16F099
:10004000F7CF17F0F8CF18F0FBCF19F000C00EF083
:1000500001C00FF002C010F003C011F0F2AA34EF9B
:1000600000F0F2B4ACEF23F0F2A83AEF00F0F2B2F5
:1000700048EF24F0F0A640EF00F0F0B00DEF24F0D0
:10008000F0A846EF00F0F0B244EF24F09DAA4CEF48
:1000900000F09EBA8EEF24F00EC000F00FC001F009
:1000A00010C002F011C003F00CC0E9FF07C0EAFF66
:1000B000078E08C0E1FF09C0E2FF0AC0D9FF0BC0EC
:0200C000DAFF65
:00000001FF


I use #export as follow:

Code:

#define   FW_VER_1       8
#define   FW_VER_2       4
#define   FW_VER_3       3
#define EXPNAME(a,b,c,d,e,f) a ##b ##c ##d ##e ##f

#export (RANGE=0x00:0x000c0, hex,file= EXPNAME(COMP-REL2-GLCD_VER_,FW_VER_1,FW_VER_2,FW_VER_3,_LOADER,.hex))



I desire exported hex file as MPLAB.

Thanks for support,

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