EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

AN10438 Philips LPC2000 CAN driver Problems

Started by "davidj.vpac" March 21, 2008
I'm sure that here must have been an update to this or resolution
logged somewhere.

Have installed uVision3 and gcc.

My target is a MCB2100 / LPC2129 system.

Q1. The source is a mixture of LPC2129 and LPC2294 references
The target is 2129 but the specific header files are 2294
????

Q2. The AN says:
Make sure that ADS1.2 is installed in your C:\Program
Files\ARM\ADSV1_2
???

Q3.
On build get:
(Bssides 2 unreachable code warnings)
.\Debug_in_RAM\LPC2000_CAN.axf: Warning: L3910W: Old syntax, please
use '--entry'.
.\Debug_in_RAM\LPC2000_CAN.axf: error: L6938E: Invalid value for --ro-
base.

I can resolve the first one in the Link tab (Misc. Controls)
I seem to remember that a suitble value is required in R/O Base on
same tab, and for R/W Base. These are empty.

What value should I use.

Q3. When I put a value in R/O Base I then get an error:
.\Debug_in_RAM\LPC2000_CAN.axf: Error: L6218E: Undefined symbol
__initial_sp (referred from entry.o).

==============Is there a version of thsi project that will compile off-the-shelf ir
I am I missing something?

Thanks

An Engineer's Guide to the LPC2100 Series

>From compiler to compiler, the assemble and linker
setting are all different. If you want the code
running in RAM, set RO to 0x40000000, RW to 0x40004000,
if code runs in flash, RO to 0x00000000 RW to 0x40000000.

RO is for code, RW is for data. When code runs in RAM,
allocate first half of RAM for code, second half for
variables and stacks, just make sure no overlap among
stacks, RO, and RW.

Before jump into CAN, use some simple examples, LED blink,
from the tool vendor first, get familar with the known
working projects first.

Best,
Tom

--- In l..., "davidj.vpac" wrote:
>
> I'm sure that here must have been an update to this or resolution
> logged somewhere.
>
> Have installed uVision3 and gcc.
>
> My target is a MCB2100 / LPC2129 system.
>
> Q1. The source is a mixture of LPC2129 and LPC2294 references
> The target is 2129 but the specific header files are 2294
> ????
>
> Q2. The AN says:
> Make sure that ADS1.2 is installed in your C:\Program
> Files\ARM\ADSV1_2
> ???
>
> Q3.
> On build get:
> (Bssides 2 unreachable code warnings)
> .\Debug_in_RAM\LPC2000_CAN.axf: Warning: L3910W: Old syntax,
please
> use '--entry'.
> .\Debug_in_RAM\LPC2000_CAN.axf: error: L6938E: Invalid value for --
ro-
> base.
>
> I can resolve the first one in the Link tab (Misc. Controls)
> I seem to remember that a suitble value is required in R/O Base on
> same tab, and for R/W Base. These are empty.
>
> What value should I use.
>
> Q3. When I put a value in R/O Base I then get an error:
> .\Debug_in_RAM\LPC2000_CAN.axf: Error: L6218E: Undefined symbol
> __initial_sp (referred from entry.o).
>
> ==============> Is there a version of thsi project that will compile off-the-shelf
ir
> I am I missing something?
>
> Thanks
>


The 2024 Embedded Online Conference