Porting KEIL code to LPCXpresso

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Porting KEIL code to LPCXpresso

5,058件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frankvnk on Sun Nov 11 02:26:14 MST 2012
[FONT=Arial][SIZE=2]I bought a LPC1768 board on E-bay (NXP LPC1768-Mini-DK DevBoard+2.8"SPI Interface TFT LCD).[/SIZE][/FONT]
[FONT=Arial][SIZE=2]The kit contains a CD with sample code written for Keil uvision 4, a LAN cable and 2 USB cables (mini USB to female A and mini USB to male A).[/SIZE][/FONT]
[FONT=Arial][SIZE=2]Ethernet PHY used on this board: DM9161A.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]Is there a step by step guide to port KEIL code to the LPCXpresso environment?[/SIZE][/FONT]
0 件の賞賛
返信
9 返答(返信)

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Jun 30 03:42:26 MST 2014
First of all, please don't reopen 2 year old threads!

Sorry, we are not familiar with this specific board. But general information on porting code from other toolchains to LPCXpresso IDE can be found here:

http://www.lpcware.com/content/faq/lpcxpresso/porting-code-other-toolchains

However, you may find it more sensible to start off by looking at an LPCOpen package for LPC4357...:

http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc43xx-packages

and creating your own board layer - as described in:

http://www.lpcware.com/content/faq/how-do-i-port-lpcopen-new-baord

Regards,
LPCXpresso Support
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mrabbasi61 on Sun Jun 29 01:13:41 MST 2014
Hi,

I have been given a development kit, Open43xxE2 from Waveshare, and on the CD it has some sample projects for Keil IDE.
But I am going to migrate to LPCXpresso IDE. Actually I am still a dummy and a beginner in using NXP Cortex-M Microcontrollers and LPCXpresso IDE. But I am trying to learn it, because it is now very
I have download projects for LPC4357 for LPCXpresso IDE, but these projects don't run on my Dev. Board.
I have attached sample Keil project for LED_Blinky project, and also schematic of my Dev. Board.
Please help me how can I have a simple project like this for LPCXpresso IDE for my Dev. Board.
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frankvnk on Mon Dec 10 02:46:55 MST 2012
[B][U][SIZE=4]CODE UPDATE (10/12/12)[/SIZE] [/U][/B]
The touchscreen code is fully functional - A drawing demo is included.
Download : http://mbed.org/media/uploads/frankvnk/lpcxpresso_mini-dk_v1.1.zip
Calibration routine is based on based on code from Carlos E. Vidales tutorial : How To Calibrate Touch Screens.
http://www.embedded.com/design/configurable-systems/4023968/How-To-Calibrate-Touch-Screens
Now i will tackle the ethernet part.

[U]Does anybody have experience with the DM9161 PHY - is it compatible with the mbed dp83848j?[/U]

[U][B][SIZE=4]MAJOR UPDATE (11/01/2013)[/SIZE][/B][/U]
Since my LPCXpresso IDE is the limited version, i ported the code back to the mbed community. I got help from a fellow mbed user to drastically speed up the LCD writes and i also got the Ethernet part working (based on EasyWeb code). Most recent code is available at: http://mbed.org/users/frankvnk/
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frankvnk on Sat Dec 01 03:51:32 MST 2012

Quote: TheFallGuy
I have to ask if it is a good deal. You may save a few dollars on the board (compared with Code Red, Keil, IAr etc) but you are going to spend hours trying to get it, and the examples going. I guess it depends on whether cash or hours is more important to you. Personally, I'd rather spend the additional money and get something that works immediately, so I can spend my valuable hours developing my product. Just my 2c.



You are right that this board needs time consuming coding rework when used with LPCXpresso but i do think it is an excellent deal for learning to drive peripherals with the LPC1768 (you do save more than a few dollars).
As you mentioned, if you need to start developing immediately, there are better solutions than this board.
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by frankvnk on Sat Dec 01 03:23:42 MST 2012

Quote: micrio
I just got a LPC1768-Mini-DK from Thaoyu.   I was wondering if you have made any progress with using the LPCXpresso environment?   At $40 it is a real good deal!

Pete.



At first (as kayoda mentioned), i copied the KEIL 'TouchPanel (for LCDB)' code from the CD delivered with the Mini-DK to the LPCXpresso environment (fortunately, no asm code was present).
This was not without trouble - i only got it partially working (the drawing part does not work). The demo code is written in C, i prefer the C++ approach.
Since i do this in my spare time, i started looking for other code as a starting point (i'm not a coding guru, but i learn along the way).
I went back to the mbed community and searched for a project where TFT driving was well coded/documented (graphics and text).
I ran into Peter Drescher's code
(http://mbed.org/cookbook/SPI-driven-QVGA-TFT). While this was written for the HX8347D TFT controller, it was a good starting point.
After heavy modification (replaced dma with spi, updated init and driving for ILI9320, ...) i managed to get it working for displaying text and graphics at an acceptable speed (albeit the ILI9320 is not the fastest TFT driver, it runs quite good).
I just started testing the touch screen with mbed code from Ale C
(http://mbed.org/users/Suky/code/TouchADS7843/). This is a very basic example, but again, a good starting point (amongst other things, calibration needs to be added).

The last, and probably most difficult step, is the ethernet part (DM9161).

As you can see, a lot of work still needs to be done.
My code has not been cleaned up yet, nor is it well documented.
If you are interested, you can download the project on http://mbed.org/media/uploads/frankvnk/lpcxpresso_mini-dk.zip
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sat Dec 01 02:21:02 MST 2012
I have to ask if it is a good deal. You may save a few dollars on the board (compared with Code Red, Keil, IAr etc) but you are going to spend hours trying to get it, and the examples going. I guess it depends on whether cash or hours is more important to you. Personally, I'd rather spend the additional money and get something that works immediately, so I can spend my valuable hours developing my product. Just my 2c.
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by micrio on Fri Nov 30 16:32:17 MST 2012
I just got a LPC1768-Mini-DK from Thaoyu.   I was wondering if you have made any progress with using the LPCXpresso environment?   At $40 it is a real good deal!

Pete.
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ex-kayoda on Mon Nov 12 07:53:48 MST 2012

Quote:

Generally where example code is provided for another toolchain it will normally port across to the Code Red IDE fairly easily. Simply create a new project within the Code Red IDE, then copy the required source files across.

See: http://www.support.code-red-tech.com/CodeRedWiki/PortingCodeOtherToolchains

Note: That's not my personal opinion ;)
0 件の賞賛
返信

4,766件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Brutte on Mon Nov 12 06:50:25 MST 2012
Both are ~C but there are some slight differences.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka14717.html

Modifying asm part is also a challenge.

Mind __GNUC__ does not support some built-in functions of __CC_ARM (like "__breakpoint(n)" for example) and v.v. (like "__builtin_constant_p(n)" for example) and many other.
0 件の賞賛
返信