Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Assembler/compiler error L2321 (E) Section "S" overlaps section "R" , SH7047

$
0
0
hello Moe, first the simple question. Your constants are copied to RAM because you use the option "-rom=D=R". This tells the linker that section D holds initialisation data for initialised variables placed in section R. So it is copied by routine _INITSCT() called after reset. If you want to keep your data in ROM you should place it in section C or define your own section and place it in ROM As for the corrupted memory values, the simulator does NOT use memory in the processor memory map. Did you adjust the simulator memory, so you have memory in all parts of your application? For example, your P section is 120KB. By default the ROM section in the simulator is only 16KB. You can check and modify this in Setup Simulator Memory Resource... . So I believe corrupted values have already been copied from ROM to RAM.

Viewing all articles
Browse latest Browse all 59170

Trending Articles