PARTNERデバッグ用NORファームでメインメモリも初期化しないスタートアップを使用。

git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@770 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
nakasima 2008-02-29 01:06:15 +00:00
parent a500703b62
commit 325d939d0b
5 changed files with 80 additions and 14 deletions

View File

@ -12,8 +12,8 @@
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev:$
# $Author:$
# $Rev$
# $Author$
#----------------------------------------------------------------------------
SUBDIRS =
@ -29,9 +29,12 @@ TWL_NO_STD_PCHDR = True
# Avoid to build THUMB version object
override TWL_CODEGEN = ARM
SRCS = crt0_firm.c
SRCDIR = . ../common
SRCS = crt0_firm.c \
crt0_jtag.c \
TARGET_OBJ = crt0_firm.o
TARGET_OBJ = crt0_firm.o \
crt0_jtag.o \
MACRO_FLAGS += -DSDK_NOINIT

View File

@ -12,8 +12,8 @@
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev:$
# $Author:$
# $Rev$
# $Author$
#----------------------------------------------------------------------------
SUBDIRS =
@ -26,9 +26,12 @@ TWL_NO_STD_PCHDR = True
# Avoid to build THUMB version object
override TWL_CODEGEN = ARM
SRCS = crt0_firm.c
SRCDIR = . ../common
SRCS = crt0_firm.c \
crt0_jtag.c \
TARGET_OBJ = crt0_firm.o
TARGET_OBJ = crt0_firm.o \
crt0_jtag.o \
MACRO_FLAGS += -DSDK_NOINIT

View File

@ -0,0 +1,50 @@
/*---------------------------------------------------------------------------*
Project: TwlIPL - libraries - init
File: crt0_jtag.c
Copyright 2008 Nintendo. All rights reserved.
These coded instructions, statements, and computer programs contain
proprietary information of Nintendo of America Inc. and/or Nintendo
Company Ltd., and are protected by Federal copyright law. They may
not be disclosed to third parties or copied or duplicated in any form,
in whole or in part, without the prior written consent of Nintendo.
$Date:: #$
$Rev: $
$Author: $
*---------------------------------------------------------------------------*/
#include <firm.h>
#include <twl/code32.h>
void _start(void);
void* const _start_ModuleParams[];
void* const _start_LtdModuleParams[];
/*---------------------------------------------------------------------------*
Name: _start
Description:
Arguments:
Returns:
*---------------------------------------------------------------------------*/
void _start( void );
asm void _start( void )
{
#ifdef SDK_ARM7
ldr r3, =REG_JTAG_ADDR
ldr r0, =REG_SCFG_JTAG_DSPJE_MASK | REG_SCFG_JTAG_CPUJE_MASK | REG_SCFG_JTAG_ARM7SEL_MASK
strh r0, [r3]
#endif
@10:
b @10
// link for compstatic.TWL
ldr r0, =_start_ModuleParams
ldr r0, =_start_LtdModuleParams
}
#include <twl/codereset.h>

View File

@ -12,10 +12,12 @@
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev:$
# $Author:$
# $Rev$
# $Author$
#----------------------------------------------------------------------------
FIRM_ONLY_JTAG = TRUE
TWL_PROC = ARM7
SUBDIRS =
@ -26,11 +28,14 @@ LINCLUDES = ../include
TARGET_BIN = firm_dev7.tef
CRT0_O = crt0_firm.o
SRCS = \
main.c \
CRT0_O = crt0_firm.o
ifdef FIRM_ONLY_JTAG
CRT0_O += crt0_jtag.o
endif
#SRCDIR = # using default
#LCFILE = # using default

View File

@ -12,10 +12,12 @@
# in whole or in part, without the prior written consent of Nintendo.
#
# $Date:: $
# $Rev:$
# $Author:$
# $Rev$
# $Author$
#----------------------------------------------------------------------------
FIRM_ONLY_JTAG = TRUE
SUBDIRS =
LINCLUDES = ../include
@ -27,6 +29,9 @@ TARGET_BIN = firm_dev9.srl
SRCS = main.c
CRT0_O = crt0_firm.o
ifdef FIRM_ONLY_JTAG
CRT0_O += crt0_jtag.o
endif
MAKEROM_ARM7 = ../ARM7/bin/$(TWL_BUILDTYPE_ARM7)/firm_dev7.tef
MAKEROM_ARM7_BASE = $(basename $(MAKEROM_ARM7))