After dd, file_full_range.bin is:Program codeZeroesZeroesZeroesFuses
Thank you very muchProgram codeZeroesZeroes (ending exactly on address 32768-1=32767 and without fuses as intended)
Look at 'objcopy', after doing the link. It can translate formats.
You might be
able to convince it the output size is 4K ( or some other "round number" ) in
order to fill unused memory. I've used the full-blown GNU version on 32-bit
systems and it is quite flexible. Output format of binary will strip
If that doesn't do it and you have UNIX tools, after using 'objcopy'
to strip the
header, try using 'dd' to get to a specific size....
dd if=myprog.bin of=readyfordownload.bin bs=4096
The 'bs=N' would be the size required by your loader to fill all of
will fill the extra bytes with zeros.
I'm just a lurker.....
On Sat, Jan 28, 2012 at 4:06 AM, Diego Herranz
> I want to use a bootloader (Scene Double bootloader) for PIC16 and it
> requires to export the full program memory range of your application (even
> unused range), with no eeprom nor fuses.
> This is the exact text present in the bootloader manual:
>> Exporting a HEX File from MPLAB
>> Once you have written some firmware (using Sample Application as a guide)
>> you will need to provide a hex file to format for
>> use with the Bootloader.
>> DO NOT use the hex file generated directly by MPLAB when you compile the
>> application, as this may not include the full
>> memory range (we need a file of a known size), and also contains
>> configuration bits which we do not want.
>> Instead, compile and the choose File->Export. Set it to only output
>> Program Memory (no EEPROM or configuration bits). The
>> memory range should be the whole range of the device (or, choose the start
>> to be the starting address of your user
>> application space, which is 0x2400 in the Sample Application example, and
>> then end to be the top program memory
>> address in the device).
> Does anybody know how to do this with SDCC?
> Is it related to linker as gplink is generating the COFF file from which the
> hex file is finally created?
> Thanks a lot.
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> Sdcc-user mailing list