Alexander Shabarshin wrote:
> to flash it under Linux. Yesterday I installed GCC-4.0.1 from
> gnuarm.com, BUT
> I did not find lpc2138.h, startup.S and .ld files to build code for
> FLASH and
> RAM of LPC2138 chip.
Those files are not part of the GCC environment but chip specific.
If you'd like to run code from RAM (as I do) to test some simple things,
the lpc21isp
program may not suit your needs (I got a 1.28 version and that one
definitely did not
support downloading and running to RAM).
On my website you will find an updated version that does download code
(up to 64 kB
should go but I was not able to write programs larger than 16 kB up to
now :-)) to
RAM and execute from there.
You will also find some test programs, these include startup code and a
link.ld file
that link the code to address 0x4000,0200. When the progam starts it
will copy the
vectors (loaded at 0x4000,0200) to 0x4000,0000 which is then remapped to
0x0000,0000
where the vectors should be.
I specifically skipped the memory below 0x4000,0200 because this is used
by the bootrom,
as is stated in the user manual.
Regards,
Rob - http://www.myvoice.nl/electronics/