Hi.
The direct NOR boot assumes the configuration word at 0x60000000 and the boot code entry at 0x60000004. Would you tell me how to program a boot loader for the layout?
When I make sections for the configuration word and the boot code separately, the boot code can not be placed at 0x60000004 but 0x60000020, since the linker aligns the code to 32-byte boundary even if I put ".align 1".
.sect ".bootcfg"
.retain
.word 0x11 ; Boot Configuration Word
.sect ".bootcode"
.align 1
MVKL _c_int00,B0
MVKH _c_int00,B0
B B0
When I put the configuration word and the boot code in the same section, the following linker warning is generated:
.sect ".norboot"
.retain
.word 0x11 ; Boot Configuration Word
MVKL _c_int00,B0
MVKH _c_int00,B0
B B0
WARNING! at line 60: [W9999] Placing data in a code section (.norboot) is discouraged. The data may be interpreted as code. This section will not be compressed.
Would you please advise me on correct methods to program the NOR direct boot code?
Best regards,
Tsutomu Furuse