changing form LPC1343 TO lpc1113

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

changing form LPC1343 TO lpc1113

1,246 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Thu Apr 15 07:30:43 MST 2010
I have a project working on the LPCxpresso1343 and need to migrate it to  the LPC1111 version. Can I just specify a new micro or do I need to  create an entirely new project? Thanks in advance.
0 Kudos
Reply
6 Replies

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Sat Apr 17 16:35:36 MST 2010
I had the correct header files and I thought I was using the cmsis lib (at least I specified it when I created the project.  I did finally get it working by doing the same thing I did with the original 1343 version and that was to load a working program (blinky) and adding and subtracting my own routines. I also use Rowley and IAR and always the main problem I have is making a new project. I sometimes think my old DOS days help contribute to the problem because I may cut and paste something that should be built up in a different way.

Anyway, the new program runs. The only surprise is the Text length on the LPC1343 was 19,200 and on the LPC1114 it was only 12,620.  It seems like a big difference. The optimization was the same so it must just be the different mpu architectures.

Thanks to all for the help.
0 Kudos
Reply

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Apr 17 01:55:55 MST 2010
Don't forget that the 1114 and the 1343 are different chips. Each has their OWN header files (gpio.h etc) and (as you have seen) they are not always compatible.

From your description, I think you are using the 1343 header files on the 1114.

It is for this reason, that we recommend the use of CMSIS (libraries and headers) as it hides a lot of the differences when switching between different cores (LPC11/13/17).

However, if you are not using CMSIS, you need to ensure that you are using the correct headers for the chip you are using.
0 Kudos
Reply

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Fri Apr 16 16:33:09 MST 2010
Update. Still the same problem. The 1343 version is ok but the 1114 gets these errors. I did find out that if in my main program I comment-out the #include gpio.h, these 2 errors go away and a different single error occurs where it cannot find the CLKOUT_Setup routine

I have included the clkconfig.c, clkconfig.h and config.h files just as they appear in the good lpc1343 version but for some reason in the bad  project tree they appear as single icons (c & h) and in the good version they appear as with a plus sign that can be expanded.

I don't know if that helps but his little bits represent 4 hours of my trying to get this thing working.
0 Kudos
Reply

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mayotte1 on Fri Apr 16 12:27:51 MST 2010
I generated a new project and only have 2 errors that I can't make go away. I get an error in my gpio.h file line 42: error: invalid storage class for function 'GPIOSetValue. Also the same for line 56. I imported the latest gpio.h file (I think). Its revision 1.05 for the LPC11xx Family. Any help would be appreciated.
0 Kudos
Reply

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 15 08:09:34 MST 2010
That is correct. The startup code is different and (if you use it) the CMSIS library and headers will be different. Easiest thing is to create a new project and copy of the files you want.
0 Kudos
Reply

1,237 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by leon_heller on Thu Apr 15 07:33:20 MST 2010
I'd create a new project, and copy the existing files to it. You probably want to keep your existing code for the LPC1343.
0 Kudos
Reply