NEC ELECTRONICS GLOBAL
nec electronics global
HOME
APPLICATIONS
PRODUCTS
TECHNOLOGY
SUPPORT
BUY ONLINE
NEWS & EVENTS
ABOUT US
header
GO
AdvancedParametric
SITE MAP CONTACT US

[CA850] ROMization

Contents

    
FAQ-ID = CA850_ROM-nnnn
0941: What should be done to output the HEX code of a specified block?
0973: Can a source be debugged with a file output by the ROMization processor?
CA850_ROM
-0941
What should be done to output the HEX code of a specified block?
Q1
The internal flash memory of the microcontroller is divided into blocks.
What should be done to output the HEX code of a specified block?

A1
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:
-U0xff,0x3f800,0x800
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.

-I usr.const

Is this information useful for you ?
back to top  
(2006/07)

CA850_ROM
-0973
Can a source be debugged with a file output by the ROMization processor?
Q1
Can a source be debugged with a file output by the ROMization processor (object file for ROMization)?
A1
The files subject to source debug by a debugger (such as an integrated debugger) are limited to "object files containing symbol information and debug information".
The ROMization processor does not delete the symbol information and debug information contained in the input file when it outputs an object file for ROMization.

If the file input to the ROMization processor contains symbol information or debug information, therefore, source debug can be executed by using the object file for ROMization output by the ROMization processor.

An object file containing symbol information and debug information can be generated by specifying "Debug Build" in the build mode of PM+.

Is this information useful for you ?
back to top  
(2006/08)









































 LEGAL  RSS Feeds       © 1995-2008  NEC Electronics Corporation