The output start address and output size can be specified by using the -U option
of the HEX converter (hx850). However, a vacant area is replenished by a specified
value.
Specify the address and size of the block to be output using the -U option.
(Example) To output the HEX codes of block 127 (0x3f800 to 0x3ffff) of the UPD70F3318:
If sections are located in advance so that they do not straddle over the
boundary of blocks, the HEX code of a desired block can be output by specifying
a section with the -I option of the hx850.
(Example) To output the HEX codes of block 127 (0x3f800 to 0x3ffff) of the UPD70F3318:
Excute followng processing (1) to (3).
(1) Creating section
Specify a section name to the const data to be located to block 127 by using #pragma section.
#pragma section const "usr" begin
const int array[10]={0,1,2,3,4,5,6,7,8,9};
#pragma section const "usr" end
|
(2) Specifying link directive
Locate section usr.const specified in
(1) to block 127 (0x3f800 to 0x3ffff) by using a link directive.
USRCONST : !LOAD ?R V0x3f800 {
usr.const = $PROGBITS ?A usr.const;
}; |
(3) Specifying section using HEX converter (hx850)
Specify section
usr.const to be output (specified in (1) above) with the -I option of the HEX
converter.