Hi Erich,
Attachment is my project which include the default .ld.
i think i figure out why it append 0x00 after i read the content on this link:
Configuring the Vector Table offset when using ... | element14 | Freedom development platform
i change the .ld by changing the m_cfmprotrom line from
MEMORY {
m_interrupts (RX) : ORIGIN = 0x00040000, LENGTH = 0x000001E8
m_text (RX) : ORIGIN = 0x00040410, LENGTH = 0x0003FBF0
m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000
m_cfmprotrom (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010
}
to:
MEMORY {
m_interrupts (RX) : ORIGIN = 0x00040000, LENGTH = 0x000001E8
m_text (RX) : ORIGIN = 0x00040410, LENGTH = 0x0003FBF0
m_data (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000
m_data_20000000 (RW) : ORIGIN = 0x20000000, LENGTH = 0x00010000
m_cfmprotrom (RX) : ORIGIN = 0x00040400, LENGTH = 0x00000010
}
with this change, i am able to see the binary without padding.
i load this binary to the flash by the boot loader, but then, it seems to brick my board now :smileysad:
I used segger IDE to erase all content, and such, but still not able to download code to it yet.
Henry