Topic : NXP LPC2xxx

Forum : ARM

Original Post
Post Information Post
March 2, 2009 - 9:37am
Guest

Hi,

Has Raisonance ported the NXP LPC2xxx examples to the RKit-Arm?

Best regards,
Boris

Replies
Post Information Post
+1
0
-1
March 2, 2009 - 10:12am
Raisonance Support Team

Hi,

We are in the process of adding the LPC2xx support in Ride.
For now we are still not able to program and debug the whole familly, and nothing is officially available, even things that work.
If you are willing to help us validate the software, I can send you a beta version, with all it implies: potential bugs, incomplete features, etc.
Which LPC(s) are you working with?

In the first release, there will be very few examples. Probably just a toggle for each supported device.
But as Ride interfaces to GCC, it is very easy to port any example that was already ported to any GCC toolchain, which is the case of most of them.

Best Regards,

Vincent

+1
0
-1
March 2, 2009 - 12:19pm
Guest

Hi,

I'm working with LPC2103 and LPC2106. I'm new into gcc, as I've worked with Iar Systems tools.
Send me please a beta version or download link.

Best Regards,

Boris

+1
0
-1
March 30, 2009 - 10:32am
Guest

Hi,

I am also working with the LPC2106 and I just found a quite circular way to work on my code. I am also interested in The Beta version. I also spoke to your exponent on the embedded world exhibition how to implement the LPC2106 support into Ride7 but my effort didn't show any result yet.

Please send my the beta via email or the download link.

Best regards,

Daniel

+1
0
-1
April 13, 2009 - 8:38pm
Guest

Hello,

which members of the LPC2xxx family are planned to be included?

When (approximately) will the LPC2106 be available?

Best regards,
Florian

+1
0
-1
April 14, 2009 - 10:19am
Raisonance Support Team

Hi,

We plan to support as many ARM devices as possible, and of course all the LPC ARMs.

The new version of Ride, released one week ago, supports the following LPC devices:
LPC2129
LPC2138
LPC2148
LPC2378
LPC2387
LPC2468

The subsets of these devices should work too, (LPC212x, LPC23xx, etc.) but I could not validate that because I don't have the hardware for now. Any feedback is welcome, positive or negative. ;)

I have a LPC2106 board but I haven't had time to implement support for it.
It's the next in the list, with the LPC2103. (it's starting to work, but still not there yet :( )
I will see if I can make a patch for you to test when I have something correct. (hopefully this week or the next, but the official release will be much later)

Best Regards,

Vincent

+1
0
-1
May 17, 2009 - 5:31pm
Guest

Hello,

I'm trying to use a NXP LPC2468 without success wuth RLink Pro and last Ride7's intalled that is :
"Ride7_BN38.exe" and "RKit-ARM_BN35.exe".
I'm using an evaluation board of Embedded Artists for LPC2468.

The issues are:
- Trying to erase Flash with RLink Pro gives these results :
Check connection to target button :
JTAG Connection to target OK.
Taget's iDCode is : 0x4F1F0F0F

Dump target button :
Unable to read IdCode.
Please check that the target is connected.

JTAG clock is default value set to 4000 khz
CPU frequency is 72 MHz.

How can I erase, write and read internal MCU Flash ?

- Trying to compile a project MP3 reader and linking it gives the errro message
"region FLASH overflowed by 55552 bytes".
But the LPC2468 contains enough room of 512 KB Flash.
When adding all sizes of all project files, I compute 96 KB of total program size.
What was wrong ?

Please can you help us ?
We are ready to work with Raisonance to debug this target MCU if needed.

Thank you
Best regards

+1
0
-1
May 19, 2009 - 7:37pm
Guest

Dear Raisonance team,
Possible to add the user command to Rkit-ARM7 ? After compile the C project, I do not found .BIN result file. Possible to add this feature ?

+1
0
-1
May 22, 2009 - 6:43pm
Guest

VincentC wrote:
If you are willing to help us validate the software, I can send you a beta version, with all it implies: potential bugs, incomplete features, etc.
Which LPC(s) are you working with?

Greetings -

I am an IT administrator looking for an alternative platform for some of our projects. Currently we are utilizing both LPC2214 and LPC2148 hardware.

Would it be possible to be included in the beta testing process?

+1
0
-1
May 24, 2009 - 9:55pm
Guest

Hi
My English isn't very good but maybe I help someone
I tested RIDE7-RKit-ARM with LPC2378 and I found little error in startup.
When I use IRQ with yours startup uP, crashed so I changed code like this
This code isn't my I found him in one of forum and change for LPC2378
Generally this code should allow use nested IRQ. I tested with timer0 and uart0 irq and worked good.
If you want use other LPC like LPC2138 you must change address of VICVectAddr
in LP2138 is 0xFFFFF030

 .equ VICVectAddr, 0xFFFFFF00  
.
.
.

_startup:
_start:

Vectors:

   ldr     PC, =Reset_Handler
   ldr     PC, =UndefinedHandler
   ldr     PC, =SWIHandler
   ldr     PC, =PrefetchAbortHandler
   ldr     PC, =DataAbortHandler
   nop                          /*; Reserved vector*/
   ldr     PC, =IRQHandlerMy                          // go to my code 
   ldr     PC, =FIQHandler
.
.
.
IRQHandlerMy:          

      stmfd sp!, { lr }              /* ; save return address on IRQ stack */ 
      mrs lr, spsr                   /* ; use lr to save spsr_irq */ 
      stmfd sp!, { r4-r5, lr }       /* ; save work regs & spsr on stack */ 

      ldr r4, =VICVectAddr           /* ; get the ISR address from VIC */ 
      ldr r5, [r4] 

      msr cpsr_c, #0x13              /* ; supervisor mode, interrupts ON */ 
  /*  msr cpsr_c, #0x93              /* ; supervisor mode, interrupts OFF */ 

      stmfd sp!, { r0-r3, r12, lr }  /* ; save work regs & lr_svc on stack */ 
      mov lr, pc                     /* ; set return to common exit of ISR */ 
      mov pc, r5                     /* ; go handle the interrupt */ 
      ldmfd sp!, { r0-r3, r12, lr }  /* ; restore regs & lr_svc */ 

      msr cpsr_c, #0x92              /* ; IRQ mode, interrupts OFF */ 

      str lr, [r4]                   /* ; update VICVectAddr */ 

      ldmfd sp!, { r4-r5, lr }       /* ; restore work regs and spsr_irq */ 
      msr spsr_cxsf, lr              /* ; put back spsr_irq */ 
      ldmfd sp!, { lr }              /* ; restore return address */ 

      subs pc, lr, #0x4              /* ; return, restoring CPSR from SPSR */

This code change method of handle IRQ and in this case irq routine is like other function without __attribute__ ((interrupt("IRQ")));

Example in C

//--------------------------------------
 void IRQTimer0( void ); // __attribute__ ((interrupt("IRQ")));  //delete or comment __attribute__


//-----------------------------------------------------------------------------
//   Timer0 IRQ routine  
//-----------------------------------------------------------------------------
 void IRQTimer0( void )
{

 T0IR   = 1 << 3;
 T0EMR |= 3; 
 //VICVectAddr = 0x00;         // delete or comment this line, startup respond   

} 

//-----------------------------------------------------------------------------
// Function name:      RcInit
//-----------------------------------------------------------------------------
 void RcInit( void )
{

 PINSEL7  |= 0x2 << 18;  
 PINSEL7  |= 0x2 << 20;  

 T0TCR = 0x2;
 T0TCR = 0x0;
 
 VICIntEnClr  = 0x10;                                       // disable timer0 routine    
 VICVectAddr4 = (unsigned long)IRQTimer0;   // instal IRQ routine address in VIC slot 
 VICVectCntl4 = 4;                                           // set priority
 VICIntEnable = 0x10;                                     // enable timer0 routine        
  
 T0PR  = 1999;
 T0MR0 = 100;
 T0MR1 = 1;
 T0MR2 = 10;
 T0MR3 = 199;              // count 20ms and reset 
 T0MCR = 3 << 9;         // 

 T0EMR = ( 0x1 << 4 | 0x1 << 6 );
 T0TCR = 0x1;

}
+1
0
-1
May 25, 2009 - 6:15pm
Raisonance Support Team

Hi,

TomK, unfortunatelly, the LPC22xx support is not implemented yet in our software, even in the internal test-version, so I cannot propose you a patch for that right now.

I cannot tell when I will be able to make one, as my first tests showed some major differences between the LPC22xx devices and the other LPC2xxx devices in the debugging and programming algorithms, and I have many more urgent things to address before I can return on this.

Best Regards,

Vincent

+1
0
-1
May 25, 2009 - 6:20pm
Raisonance Support Team

Hi,

Radoslaw, thank you for the information.

I will look at it closely later, but for now I would need to know if the modification you propose contains any copyrighted code? If yes, under which conditions may we copy it? Can you post a pointer to the original file or forum?

Can you please also send me the Ride project that you used for testing this?

Best Regards,

Vincent

+1
0
-1
May 26, 2009 - 12:48pm
Guest

Hi,
link
http://www.embeddedrelated.com/groups/lpc2000/show/39029.php
I also send test files at if you want you can use this files as LPC2378 example.