TM4C123G Launchpad: Corrected processor configuration from Daniel Pereira de Carvalho
This commit is contained in:
parent
465250f7cd
commit
eeb118ebb9
6 changed files with 32 additions and 91 deletions
|
@ -748,8 +748,8 @@ config ARCH_BOARD_TEENSY
|
|||
on an Atmel AT90USB1286 MCU.
|
||||
|
||||
config ARCH_BOARD_TM4C123G_LAUNCHPAD
|
||||
bool "Tiva TM4C124G LaunchPad"
|
||||
depends on ARCH_CHIP_TM4C123GH6ZRB
|
||||
bool "Tiva TM4C123G LaunchPad"
|
||||
depends on ARCH_CHIP_TM4C123GH6PMI
|
||||
select ARCH_HAVE_LEDS
|
||||
select ARCH_HAVE_BUTTONS
|
||||
select ARCH_HAVE_IRQBUTTONS
|
||||
|
|
|
@ -520,7 +520,7 @@ TM4C123G LaunchPad Configuration Options
|
|||
CONFIG_ARCH_CHIP_name - For use in C code to identify the exact
|
||||
chip:
|
||||
|
||||
CONFIG_ARCH_CHIP_TM4C123GH6ZRB
|
||||
CONFIG_ARCH_CHIP_TM4C123GH6PMI
|
||||
|
||||
CONFIG_ARCH_BOARD - Identifies the configs subdirectory and
|
||||
hence, the board that supports the particular chip or SoC.
|
||||
|
|
|
@ -117,7 +117,7 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
|||
#
|
||||
# Tiva/Stellaris Configuration Options
|
||||
#
|
||||
CONFIG_ARCH_CHIP_TM4C123GH6ZRB=y
|
||||
CONFIG_ARCH_CHIP_TM4C123GH6PMI=y
|
||||
CONFIG_ARCH_CHIP_TM4C=y
|
||||
|
||||
#
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
#
|
||||
# TI Tiva Launchpad ek-tm4c123gxl Evaluation Kits
|
||||
#
|
||||
# http://www.ti.com/tool/ek-tm4c123gxl
|
||||
#
|
||||
|
||||
#
|
||||
# NOTE: using the bundled ICDI interface is optional!
|
||||
# This interface is not ftdi based as previous boards were
|
||||
#
|
||||
|
||||
# Interface configuration
|
||||
|
||||
#
|
||||
# TI Tiva In-Circuit Debug Interface (ICDI) Board
|
||||
#
|
||||
# This is the propriety ICDI interface used on newer boards such as
|
||||
# LM4F232 Evaluation Kit - http://www.ti.com/tool/ek-lm4f232
|
||||
# Tiva Launchpad - http://www.ti.com/stellaris-launchpad
|
||||
# http://www.ti.com/tool/ek-lm4f232
|
||||
#
|
||||
|
||||
interface hla
|
||||
hla_layout ti-icdi
|
||||
hla_vid_pid 0x1cbe 0x00fd
|
||||
|
||||
# Board configuration
|
||||
|
||||
# unused but set to disable warnings
|
||||
adapter_khz 1000
|
||||
|
||||
set WORKAREASIZE 0x8000
|
||||
set CHIPNAME tm4c123gh5qr
|
||||
|
||||
# Target configuration
|
||||
|
||||
#
|
||||
# lm3s icdi pseudo target
|
||||
#
|
||||
|
||||
if { [info exists CHIPNAME] } {
|
||||
set _CHIPNAME $CHIPNAME
|
||||
} else {
|
||||
set _CHIPNAME lm3s
|
||||
}
|
||||
|
||||
# Work-area is a space in RAM used for flash programming
|
||||
# By default use 16kB
|
||||
if { [info exists WORKAREASIZE] } {
|
||||
set _WORKAREASIZE $WORKAREASIZE
|
||||
} else {
|
||||
set _WORKAREASIZE 0x4000
|
||||
}
|
||||
|
||||
#
|
||||
# possible value are hla_jtag
|
||||
# currently swd is not supported
|
||||
#
|
||||
transport select hla_jtag
|
||||
|
||||
# do not check id as icdi currently does not support it
|
||||
hla newtap $_CHIPNAME cpu -expected-id 0
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME hla_target -chain-position $_TARGETNAME
|
||||
|
||||
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
|
||||
|
||||
# flash configuration ... autodetects sizes, autoprobed
|
||||
flash bank $_CHIPNAME.flash stellaris 0 0 0 0 $_TARGETNAME
|
||||
|
|
@ -15,12 +15,12 @@ fi
|
|||
# the following to run directly from the build directory
|
||||
|
||||
# OPENOCD_PATH="/home/OpenOCD/openocd/src"
|
||||
# OPENOCD_PATH="/usr/bin"
|
||||
OPENOCD_PATH="/usr/local/bin"
|
||||
OPENOCD_PATH="/usr/bin"
|
||||
# OPENOCD_PATH="/usr/local/bin"
|
||||
|
||||
# TARGET_PATH="/home/OpenOCD/openocd/tcl"
|
||||
# TARGET_PATH="/usr/share/openocd/scripts"
|
||||
TARGET_PATH="/usr/local/share/openocd/scripts"
|
||||
TARGET_PATH="/usr/share/openocd/scripts"
|
||||
# TARGET_PATH="/usr/local/share/openocd/scripts"
|
||||
|
||||
# Assume a Unix development environment. Uncomment to use a Windows
|
||||
# like environment
|
||||
|
|
12
configs/tm4c123g-launchpad/tools/tm4c123g-launchpad.cfg
Normal file
12
configs/tm4c123g-launchpad/tools/tm4c123g-launchpad.cfg
Normal file
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# TI Tiva C Series ek-tm4c123gxl Launchpad Evaluation Kit
|
||||
#
|
||||
# http://www.ti.com/tool/ek-tm4c123gxl
|
||||
#
|
||||
|
||||
source [find interface/ti-icdi.cfg]
|
||||
|
||||
set WORKAREASIZE 0x8000
|
||||
set CHIPNAME tm4c123gh6pm
|
||||
source [find target/stellaris_icdi.cfg]
|
||||
|
Loading…
Reference in a new issue