gnupic: Re: [gnupic] Re: [PATCH] CONFIG feature progress


Previous by date: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] error making lcd, Scott Dattalo
Next by date: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] need pic18fxxx programmer!!, George M. Gallant, Jr.
Previous in thread: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] Re: [PATCH] CONFIG feature progress, Michael Ballbach
Next in thread: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] Re: [PATCH] CONFIG feature progress, Michael Ballbach

Subject: RE: [gnupic] Re: [PATCH] CONFIG feature progress
From: "Chen Xiao Fan" ####@####.####
Date: 24 Jan 2006 09:28:25 +0000
Message-Id: <7D4AB72251D4D949AB2732ABEABDA54F12FFF5@PFSG-MX1.ap.p-f.biz>


> -----Original Message-----
> From: Michael Ballbach ####@####.####
> Sent: Friday, January 20, 2006 4:59 PM
> To: ####@####.####
> Subject: Re: [gnupic] Re: [PATCH] CONFIG feature progress

> I've not confirmed all of this experimentally, but it's my current
> thinking.  I'll have to try mixing CONFIG directives through multiple
> ASM files in MPASM and see what it does. My gut feeling is that if it
> allows it, it will be non-trivial to make work in GPASM, but I'm still
> pretty new to the code base.

MPASM allows it. I just tried out the 2550tmpo.asm example and I
add another two asm files with only one line of
configuration setting in each file. The first one has 
"CONFIG WRTC = ON" and the second one has "CONFIG BOR = ON".

From the map files we can see clearly what MPASM/MPLINK are doing. 
.config_300001_2550TMPO.O  romdata   0x300001    program   0x000001
.config_300002_2550TMPO2.O romdata   0x300002    program   0x000001
.config_30000B_2550TMPO1.O romdata   0x30000b    program   0x000001

The hex file generated:
:020000040030CA
:0100010000FE 	(CONFIG FOSC = XT_XT)
:010002000FEE	(CONFIG WRTC = ON)
:01000B00C034	(CONFIG BOR = ON)

> I just gpvo'd an object file with a bunch of CONFIG 
> directives in it and it did look like it had a section per CONFIG
> address. You may need my newcoff patch on the website to view such 
> coff files, since they have 1 byte sections (the patch will pad it 
> out to a word so that it gets displayed).

Yes the patched gpvo works with the COFF files generated by
MPLAB 7.22. For example, the file with "CONFIG WRTC = ON"
generates the one byte section. I also notice that
maybe there is a bug in the patched gpvo. The Time Stamp
is wrong. It is still Tuesday Jan 24 2006 here.

$ gpvo 2550tmpo2.o
COFF File and Optional Headers
Processor Type       18f2550
Time Stamp           Wed Jan 25 06:07:35 2006  <maybe bug!>
Number of Sections   1
Number of Symbols    11
Characteristics      0

Section Header
Name                    .config_300002_2550TMPO2.O
Address                 0x300002
Size of Section         1
Number of Relocations   0
Number of Line Numbers  1
Flags                   0x1100
  Initialized data for ROM.
  Absolute.

Data
300002:  ff0f
memory is : 0
...<skipped>...

Regards,
Xiaofan

Previous by date: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] error making lcd, Scott Dattalo
Next by date: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] need pic18fxxx programmer!!, George M. Gallant, Jr.
Previous in thread: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] Re: [PATCH] CONFIG feature progress, Michael Ballbach
Next in thread: 24 Jan 2006 09:28:25 +0000 Re: [gnupic] Re: [PATCH] CONFIG feature progress, Michael Ballbach


Powered by ezmlm-browse 0.20.