Content originally posted in LPCWare by tonko on Sun Oct 09 03:35:55 MST 2011 Is there available NXP free emWin library for LPC2478 ARM7 mcu. I try to compile emWin library : http://www.lpcware.com/sites/default/files/NXP_emWin512_EA1788_320240_260911.zip. Unfortunately included GUI.LIB is for ARM CORTEX-M3 micros only.
*Are there any tutorials on using the per-compiled libraries on LPC2478?
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
Content originally posted in LPCWare by mc on Tue Apr 08 18:49:00 MST 2014 Hiatul329, Yes, emWin and embOS can be used with LPC2478. See link below. http://www.segger.com/ebdownloads.html
Content originally posted in LPCWare by life_embedded on Wed Oct 12 07:30:29 MST 2011 I tried finding emWin source too... called SEGGER and they just offered a discount towards source for NXP users. Not a bad price, but free is always better :)