Commit 4fb8de9c authored by Agustin Henze's avatar Agustin Henze

Imported Upstream version 1.92

parent 92ef7442
all: lpc21isp.exe
GLOBAL_DEP = lpc21isp.h adprog.h lpcprog.h lpcterm.h
RM = del
CC = cl
# CFLAGS = -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS
CFLAGS =
adprog.obj: adprog.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) adprog.c
lpcprog.obj: lpcprog.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpcprog.c
lpcterm.obj: lpcterm.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpcterm.c
lpc21isp.obj: lpc21isp.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpc21isp.c
lpc21isp.exe: lpc21isp.obj adprog.obj lpcprog.obj lpcterm.obj
$(CC) /Felpc21isp.exe lpc21isp.obj adprog.obj lpcprog.obj lpcterm.obj
clean:
$(RM) adprog.obj lpcprog.obj lpcterm.obj lpc21isp.obj lpc21isp.exe vc*.pdb
all: lpc21isp.exe
GLOBAL_DEP = lpc21isp.h adprog.h lpcprog.h lpcterm.h
RM = del
CC = cl
# CFLAGS = -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS
CFLAGS =
adprog.obj: adprog.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) adprog.c
lpcprog.obj: lpcprog.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpcprog.c
lpcterm.obj: lpcterm.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpcterm.c
lpc21isp.obj: lpc21isp.c $(GLOBAL_DEP)
$(CC) -c $(CFLAGS) lpc21isp.c
lpc21isp.exe: lpc21isp.obj adprog.obj lpcprog.obj lpcterm.obj
$(CC) /Felpc21isp.exe lpc21isp.obj adprog.obj lpcprog.obj lpcterm.obj winmm.lib
clean:
$(RM) adprog.obj lpcprog.obj lpcterm.obj lpc21isp.obj lpc21isp.exe vc*.pdb
/******************************************************************************
Project: Portable command line ISP for Philips LPC2000 family
Project: Portable command line ISP for NXP LPC family
and Analog Devices ADUC70xx
Filename: README
Compiler: Microsoft VC 6/7, GCC Cygwin, GCC Linux, GCC ARM ELF
Compiler: Microsoft VC 6/7, Microsoft VS2008, Microsoft VS2010,
GCC Cygwin, GCC Linux, GCC ARM ELF
Author: Martin Maurer (Martin.Maurer@clibb.de)
Copyright: (c) Martin Maurer 2003-2008, All rights reserved
Copyright: (c) Martin Maurer 2003-2013, All rights reserved
Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.com
This file is part of lpc21isp.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="lpc21isp" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin\Debug\lpc21isp" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Debug\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin\Release\lpc21isp" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="adprog.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="adprog.h" />
<Unit filename="lpc21isp.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="lpc21isp.h" />
<Unit filename="lpcprog.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="lpcprog.h" />
<Unit filename="lpcterm.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="lpcterm.h" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<ActiveTarget name="Release" />
<File name="lpc21isp.c" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor1 position="20180" topLine="309" />
</File>
<File name="lpc21isp.h" open="0" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor1 position="566" topLine="226" />
</File>
<File name="lpcprog.c" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor1 position="4072" topLine="74" />
</File>
<File name="lpcprog.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor1 position="0" topLine="63" />
</File>
</CodeBlocks_layout_file>
This diff is collapsed.
# Microsoft Developer Studio Project File - Name="lpcprog" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=lpcprog - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "lpcprog.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "lpcprog.mak" CFG="lpcprog - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "lpcprog - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "lpcprog - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "lpcprog - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "lpcprog - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "lpcprog - Win32 Release"
# Name "lpcprog - Win32 Debug"
# Begin Source File
SOURCE=.\adprog.c
# End Source File
# Begin Source File
SOURCE=.\lpc21isp.c
# End Source File
# Begin Source File
SOURCE=.\lpcprog.c
# End Source File
# Begin Source File
SOURCE=.\lpcterm.c
# End Source File
# End Target
# End Project
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "lpcprog"=.\lpcprog.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
......@@ -43,9 +43,15 @@ Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.c
* Any interrupt vectors must be copied to 0x4000,0000 and remapped to 0x0000,0000
* by the startup code.
*/
#define LPC_RAMSTART_LPC43XX 0x10000000L
#define LPC_RAMBASE_LPC43XX 0x10000200L
#define LPC_RAMSTART_LPC2XXX 0x40000000L
#define LPC_RAMBASE_LPC2XXX 0x40000200L
#define LPC_RAMSTART_LPC18XX 0x10000000L
#define LPC_RAMBASE_LPC18XX 0x10000200L
#define LPC_RAMSTART_LPC17XX 0x10000000L
#define LPC_RAMBASE_LPC17XX 0x10000200L
......@@ -55,6 +61,9 @@ Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.c
#define LPC_RAMSTART_LPC11XX 0x10000000L
#define LPC_RAMBASE_LPC11XX 0x10000300L
#define LPC_RAMSTART_LPC8XX 0x10000000L
#define LPC_RAMBASE_LPC8XX 0x10000270L
/* Return values used by NxpDownload(): reserving all values from 0x1000 to 0x1FFF */
#define NO_ANSWER_WDT 0x1000
......@@ -70,6 +79,8 @@ Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.c
#define USER_ABORT_SYNC 0x100A /* User aborted synchronisation process */
#define UNKNOWN_LPC 0x100B /* Unknown LPC detected */
#define UNLOCK_ERROR 0x1100 /* return value is 0x1100 + NXP ISP returned value (0 to 255) */
#define WRONG_ANSWER_PREP 0x1200 /* return value is 0x1200 + NXP ISP returned value (0 to 255) */
#define WRONG_ANSWER_ERAS 0x1300 /* return value is 0x1300 + NXP ISP returned value (0 to 255) */
......@@ -77,6 +88,7 @@ Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.c
#define WRONG_ANSWER_PREP2 0x1500 /* return value is 0x1500 + NXP ISP returned value (0 to 255) */
#define WRONG_ANSWER_COPY 0x1600 /* return value is 0x1600 + NXP ISP returned value (0 to 255) */
#define FAILED_RUN 0x1700 /* return value is 0x1700 + NXP ISP returned value (0 to 255) */
#define WRONG_ANSWER_BTBNK 0x1800 /* return value is 0x1800 + NXP ISP returned value (0 to 255) */
#if defined COMPILE_FOR_LPC21
#ifndef WIN32
......@@ -101,15 +113,20 @@ Portions Copyright (c) by Aeolus Development 2004 http://www.aeolusdevelopment.c
typedef enum
{
CHIP_VARIANT_NONE,
CHIP_VARIANT_LPC43XX,
CHIP_VARIANT_LPC2XXX,
CHIP_VARIANT_LPC18XX,
CHIP_VARIANT_LPC17XX,
CHIP_VARIANT_LPC13XX,
CHIP_VARIANT_LPC11XX
CHIP_VARIANT_LPC11XX,
CHIP_VARIANT_LPC8XX
} CHIP_VARIANT;
typedef struct
{
const unsigned long id;
const unsigned long id2;
const unsigned int EvalId2;
const char *Product;
const unsigned int FlashSize; /* in kiB, for informational purposes only */
const unsigned int RAMSize; /* in kiB, for informational purposes only */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment