Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

LPC2294 GNUARM load script

LPC2294 GNUARM load script

2005-04-28 by deunhido

I've got an Olimex LPC-H2294 and I can't get anything to run. I've
tried a number of "blinking led" projects and nothing works. I've
tried to modify LPC21xx load scripts for the 256K flash and 16K ram
and changed assembly and C files toflip the 0x40000000 GPIO port and
it still won't blink!

Is there something wrong with the link script below? I usually get a
"File compare failed" when I do a Compare Flash against the same file
I just uploaded. This doesn't happen with the Olimex file, though.

Thanks,
Brian

SECTIONS
{
	.text 0x0 : {			/* Real text segment */
		_text = .;		/* Text and read-only data */
		*(.text)
		. = ALIGN(4);
		_etext = .;		/* End of text section */
	}

	.data 0x40000000 : {
		__data_start = .;
		*(.data)
		. = ALIGN(4);
		_edata = .;
	}

	.bss : {
		__bss_start = .;	/* BSS */
		*(.bss)
		. = ALIGN(4);
		_end = .;
	}

	.stack 0x40004000 : {
		__stack = .;		/* STACK */
	}
}

Re: [lpc2000] LPC2294 GNUARM load script

2005-04-28 by Robert Adsett

At 09:50 AM 4/28/05 +0000, deunhido wrote:

>I've got an Olimex LPC-H2294 and I can't get anything to run. I've
>tried a number of "blinking led" projects and nothing works. I've
>tried to modify LPC21xx load scripts for the 256K flash and 16K ram
>and changed assembly and C files toflip the 0x40000000 GPIO port and
>it still won't blink!
>
>Is there something wrong with the link script below? I usually get a
>"File compare failed" when I do a Compare Flash against the same file
>I just uploaded. This doesn't happen with the Olimex file, though.

The file compare failed error may be misleading.  Are you using the Philips 
serial download facility?  If so you should calculate the checksum before 
doing the compare otherwise the in flash version will have the proper 
checksum but your internal copy in the download utility will not.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Re: [lpc2000] LPC2294 GNUARM load script

2005-04-28 by Robert Adsett

At 09:50 AM 4/28/05 +0000, deunhido wrote:

>I've got an Olimex LPC-H2294 and I can't get anything to run. I've
>tried a number of "blinking led" projects and nothing works. I've
>tried to modify LPC21xx load scripts for the 256K flash and 16K ram
>and changed assembly and C files toflip the 0x40000000 GPIO port and
>it still won't blink!

Having made my previous comments about the download program I just took a 
look at your ld script.  You are definitely missing things.  At the very 
least you are not placing .rodata anywhere.  I belive there are example ld 
scripts in the files area and there is one in the newlib-lpc support  ( 
http://www.aeolusdevelopment.com ) as well you could use as an initial 
guide.  That one doesn't have a 2294 specific version but the 2104 version 
should be a good starting point.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.