gnupic: Re: [gnupic] gplink throws away configuration (PIC18F458)
Subject:
Re: [gnupic] gplink throws away configuration (PIC18F458)
From:
Craig Franklin ####@####.####
Date:
19 Dec 2005 21:03:05 +0000
Message-Id: <43A7208D.4030400@users.sourceforge.net>
Craig Franklin wrote:
> Chen Xiao Fan wrote:
>
>>
>>
>>> -----Original Message-----
>>> From: Ian Jackson Sent: Friday, December 16, 2005 8:57 PM
>>>
>>
>>
>>
>>
>>> As you can see from the complete transcript below:
>>> gpasm -p18f458 -c test.asm gpasm -p18f458 -c config.asm gplink
>>> test.o config.o produces an a.hex file which doesn't conttain the
>>> configuration.
>>> gpvo config.o suggests that the config.o is right. Using gpasm in
>>> absolute mode like this works:
>>> gpasm -p18f458 test.asm gpasm -p18f458 config.asm ./merge-hex
>>> test.hex config.hex >merged.hex
>>>
>>
>>
>> This seems to be a bug with gplink. MPASM/MPLINK
>> (tested with MPLAB 7.22) are okay with the code.
>>
>> If I combine the two asm file manually, both gpasm
>> and MPASM produce the same code.
>>
>>
>>
>
> It is not a gplink bug. It is a gpasm bug. If you view config.o, the
> section size is 0 bytes. So gplink doesn't include the section in the
> output. This only happens if the .config section is the last section
> in the file. If you put a dummy section after the config, the output
> will be correct. I will fix gpasm. Give me a couple hours.
>
Fixed in cvs and the snapshot. Please test it and let me know. I will
release it.
>> Regards,
>> Xiaofan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>