Hello,
Below is the given default setting for linker cmd file. I am using a similar .cmd file to link the example code: Dotp4clasm.
Then in the disassembler window, I found a lot of data mistranslated into instructions, like 0x00040003 end up to be NOP.
Also the section that contain data is named .far in the .map file. Anyone can explain why?I have read the data sheet spur186.
No such information.
What is the use of each section please? especially .far .stack .switch, etc.
Thank you very much.
Da
MEMORY
{
RAM : origin = 0x00000001, length = 0xFFFFFFFE
}
SECTIONS
{
.text : ALIGN(32) {} > RAM
.const : ALIGN(8) {} > RAM
.data : ALIGN(8) {} > RAM
.bss : ALIGN(8) {} > RAM
.cinit : ALIGN(4) {} > RAM ; cflag option only
.pinit : ALIGN(4) {} > RAM ; cflag option only
.stack : ALIGN(8) {} > RAM ; cflag option only
.far : ALIGN(8) {} > RAM ; cflag option only
.sysmem: ALIGN(8) {} > RAM ; cflag option only
.switch: ALIGN(4) {} > RAM ; cflag option only
.cio : ALIGN(4) {} > RAM ; cflag option only