Sonsivri

Electronics => AVR, 8051 Family and ARM Area => Topic started by: acinonix14 on June 04, 2016, 06:03:11 18:03



Title: ARM LPC2138 newbie
Post by: acinonix14 on June 04, 2016, 06:03:11 18:03
Hello to everyone,

After years developing in 8-bit mcu (AVR,8051, and PIC) I take a decision to counter myself with ARM controllers.

I will try with the LPC2138 with Keil uVision v5.20.

I am not familiar with the Keil IDE and I try to create a simply test LED project.

From Project menu (Project --> New uVision Project ) I create the New Project File name TestLED.uvproj file and the wizard
Asked from me to choose the software pack.
From the tree I see only the arm with the leaf ARM Cortex M0,ARM Cortex M0 plus,
ARM Cortex M3, ARM Cortex M4,ARM Cortex M7.

There is no reference for the NXP arm processors. Ok, I thought that I must install through the pack installer extra nxp libraries.
But the NXP has only LPC1100,LPC1200,LPC1300,LPC1500,LPC1700,LPC1800,LPC4000 and LPC4300 series.

There is no reference for the LPC21xx. On the other side the uVision 4 has of course different steps in the choice of arm controller LPC2138 but it has reference for this explicitly.

Any idea how to build the project with LPC2138 with uVision IDE v5?

All tutorials I found works with uVision IDE 4. No reference for the  uVision IDE v5.


Thanks,









Title: Re: ARM LPC2138 newbie
Post by: Top on June 04, 2016, 07:45:05 19:45
Have you installed the legacy support?

http://www2.keil.com/mdk5/legacy/


Title: Re: ARM LPC2138 newbie
Post by: bobcat1 on June 05, 2016, 08:32:44 08:32
Hi
acinonix14

Finally you decide to move to 32 bit controller why to do it with an old controller who is no longer supported and best on old ARM7 core?

where you can learn the new controller best on Cortex-M far more easy to learn and to use like the STM32

All the best

Bobi


Title: Re: ARM LPC2138 newbie
Post by: acinonix14 on June 06, 2016, 10:11:25 10:11
The MDK v5 needs the legacy support. It is OK now.

Thanks a lot,


Title: Re: ARM LPC2138 newbie
Post by: Mega32 on June 09, 2016, 02:24:56 14:24
I would also recommend a newer Cortex-M0/3/4 if starting now.

The cheap STm32F103 boards can be has for less than 3$
Ie. *bay#: 311156408508

Then get a STlinkv2 debugger (clone) , and you're ready to go around 4$.
Ie. *bay#: 381237466793

I'm not using Keil , but are quite sure that the STlinkv2 would be supported for debugging/programming

Mega32


Title: Re: ARM LPC2138 newbie
Post by: jumulab on June 26, 2016, 05:55:40 17:55
Hi acinonix14
If you has not decided the processor or IDE to work,  another option very recommended is the use of Atmel Cortex M3 processors.
You have the Atmel Studio( free ) from Atmel with integrated support for these family and all other from the same manufacturer.
A good start point is the use of Arduino pcb  ( Arduino DUE, in this case) , where you can get an universe of examples and finished
projects. For the debugging,   can select the Arduino IDE directly to USB port or use the  Segger J-LINK debugger tool under the Atmel Studio
and only need an adapter for the JTAG bus/control.
All these tools are very professional and good ones. Used in comercial environments to design commercial products.
Later you can switch to IAR compiler/debugger usiong always the same J-Link debug probe.
In ebay , there are a lot of pcb, support modules and gadgets.

Regards