Emwin for LPC2478?

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

Emwin for LPC2478?

586 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vineeth.narikodan on Tue Apr 30 00:25:59 MST 2013

NXP free emWin library for LPC2478 ARM7 mcu is availble???.

Labels (1)
0 Kudos
4 Replies

507 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mcuevas on Fri Jul 31 08:12:02 MST 2015
Thanks for your quick response,

I have problem with adding emWin library to my IAR project. I have read emWin documentation, but I have not been successful at it.

I was able to run Segger example for LPC2478 from the link you sent me, and I even replace the GUIv5_4t_tl_i_trial.a  with emWin_ARM7TDMI.a but how can I add it to my IAR project?

What files do I need to modify or transfer to my IAR project ?

Please give mi advice in order what I should to do.
0 Kudos

507 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Wed Jul 29 11:56:04 MST 2015
Hi mcuevas,
You may want to check Segger example for LPC2478 at
https://www.segger.com/admin/uploads/evalBoardDocs/SeggerEval_LPC2478_EA_LPC2478_ARM_IAR_V5_FS_GUI_I...

Latest library are available at lpcware.com. See below link
https://www.lpcware.com/content/project/emwin-graphics-library
0 Kudos

507 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mcuevas on Wed Jul 29 11:46:26 MST 2015
Were you able to get the Library working on the LPC2478, I have been trying to get it to work but I have not been successful at it. I tried the following the tutorial “Adding emWin to the target program” (https://www.segger.com/cms/admin/uploads/productDocs/UM03001_emWin5.pdf) Has anyone done this?

This is my prep.bat
@ECHO OFF
GOTO START

******************************************************************************
*
* File      : Prep.bat
* Parameters: None
* Purpose   : Sets path and other environment variables as required by tool chain
*
* This file is written for the IAR ARM toolchain
*
* It needs to be modified if the compiler is installed in a different location.
*
******************************************************************************

:START
ECHO PREP.BAT:            Preparing environment for V850 IAR

if "%_PREP_ARM_IAR_%" == "_PREP_ARM_IAR_" goto cont
set _PREP_ARM_IAR_=_PREP_ARM_IAR_

SET TOOLPATH=C:\tool\C\IAR\Ew32_ARM_V3.30A\
set PATH=%TOOLPATH%\ARM\bin;%TOOLPATH%\common\bin;%PATH%
SET C_INCLUDE=%TOOLPATH%\ARM\INC;

:cont


This is my cc.bat
@ECHO OFF
GOTO START

******************************************************************************
*
* File      : CC.bat
* Parameters: %1 Name of file to compile (without extension; .c is added)
* Purpose   : Compile one file and add it to the list of files to put in
*             Library
*
* This file as is uses the IAR ARM Compiler
*
******************************************************************************

:START

ECHO CC.BAT:              Compiling %1.c with IAR ARM compiler
ICCARM -D OS_LIBMODE_DP -o temp\Output\ -s9 --library_module  --cpu_mode arm --code_model small --endian little --cpu ARM7TDMI --stack_align 8 --interwork -e --require_prototypes --silent temp\Source\%1.c
IF ERRORLEVEL 1 PAUSE
ECHO temp\Output\%1.r79>>temp\Lib.DAT


This is my LIB.bat
@ECHO OFF
GOTO START

******************************************************************************
*
* File      : Lib.bat
* Parameters: None
* Purpose   : Put all (object) files in linklist into the library
*
* This file is written for IAR ARM tool chain
*
******************************************************************************
:START

ECHO MAKELIB.BAT:         Creating GUI target library using IAR ARM tool-chain

REM ****************************************
REM   Create library
REM ****************************************

IF EXIST Lib\GUI_TARGET.LIB DEL Lib\GUI_TARGET.LIB
xar lib\GUI.r79 -x temp\lib.dat
IF ERRORLEVEL 1 PAUSE

0 Kudos

507 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by newegor on Thu May 02 04:30:07 MST 2013

Yes. Use ARM7TDMI core library.

0 Kudos