Problem with the linker file
Hi,
I started learning to program embedded system for my project. I use a board called viper-lite which works on PXA255 RISC based processor which contains 64Mb of RAM and 16MB of flash memory
I wrote a code which actually blink a LED with following some instruct from the book. And i wrote a liker script for that blinking problem which was giving in the book. But when i try to link the object file with the linker everything goes fine.
But when i try to load the exe to the target board it gives me an error.
Code:
C*** Abort! Attempt to load ELF data to address: 0x00000000 which is not in RAM
xyzModem - CRC mode, 8(SOH)/2(STX)/0(CAN) packets, 5 retrie
which looks like that its a linker problem. And here is the linker file which i wrote
Code:
ENTRY (main)
MEMORY
{
ram : ORIGIN = 0x00400000, LENGTH = 64M
rom : ORIGIN = 0x60000000, LENGTH = 16M
}
SECTIONS
{
data :
{
_DataStart = . ;
*(.data)
_DataEnd = . ;
} >ram
bss :
{
_BssStart = . ;
*(.bss)
_BssEnd = . ;
} >ram
text :
{
*(.txt)
} >ram
}
Can anyone know whats the problem, may be some one who have already work on viper lite.
thank you
ssharish2005