Update some makefiles and openocd config files
This commit is contained in:
parent
fb7e7c6ea7
commit
739b3b1699
11 changed files with 46 additions and 40 deletions
boards/base
Mikromedia-Plus-STM32-M4
Mikromedia-STM32-M4-ILI9341
Olimex-SAM7EX256-GE8/example
STM32F429i-Discovery
|
@ -16,10 +16,12 @@
|
||||||
GFXLIB = ../uGFX
|
GFXLIB = ../uGFX
|
||||||
GFXBOARD = Mikromedia-Plus-STM32-M4
|
GFXBOARD = Mikromedia-Plus-STM32-M4
|
||||||
GFXDEMO = modules/gdisp/basics
|
GFXDEMO = modules/gdisp/basics
|
||||||
|
GFXSINGLEMAKE = no
|
||||||
|
|
||||||
# ChibiOS settings
|
# ChibiOS settings
|
||||||
ifeq ($(OPT_OS),chibios)
|
ifeq ($(OPT_OS),chibios)
|
||||||
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
||||||
|
CHIBIOS_VERSION = 2
|
||||||
CHIBIOS = ../ChibiOS
|
CHIBIOS = ../ChibiOS
|
||||||
CHIBIOS_BOARD =
|
CHIBIOS_BOARD =
|
||||||
CHIBIOS_PLATFORM = STM32F4xx
|
CHIBIOS_PLATFORM = STM32F4xx
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is a script file for OpenOCD 0.7.0
|
# This is a script file for OpenOCD ?.?.?
|
||||||
#
|
#
|
||||||
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
||||||
#
|
#
|
||||||
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is a script file for OpenOCD 0.7.0
|
# This is a script file for OpenOCD ?.?.?
|
||||||
#
|
#
|
||||||
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
||||||
#
|
#
|
||||||
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
# ChibiOS settings
|
# ChibiOS settings
|
||||||
ifeq ($(OPT_OS),chibios)
|
ifeq ($(OPT_OS),chibios)
|
||||||
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
||||||
|
CHIBIOS_VERSION = 2
|
||||||
CHIBIOS = ../ChibiOS
|
CHIBIOS = ../ChibiOS
|
||||||
CHIBIOS_BOARD =
|
CHIBIOS_BOARD =
|
||||||
CHIBIOS_PLATFORM = STM32F4xx
|
CHIBIOS_PLATFORM = STM32F4xx
|
||||||
|
|
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
GFXLIB = ../uGFX
|
GFXLIB = ../uGFX
|
||||||
GFXBOARD = Olimex-SAM7EX256-GE8
|
GFXBOARD = Olimex-SAM7EX256-GE8
|
||||||
GFXDEMO = modules/gdisp/basics
|
GFXDEMO = modules/gdisp/basics
|
||||||
|
GFXSINGLEMAKE = no
|
||||||
|
|
||||||
# ChibiOS settings
|
# ChibiOS settings
|
||||||
ifeq ($(OPT_OS),chibios)
|
ifeq ($(OPT_OS),chibios)
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
GFXLIB = ../uGFX
|
GFXLIB = ../uGFX
|
||||||
GFXBOARD = STM32F429i-Discovery
|
GFXBOARD = STM32F429i-Discovery
|
||||||
GFXDEMO = modules/gdisp/basics
|
GFXDEMO = modules/gdisp/basics
|
||||||
|
GFXSINGLEMAKE = no
|
||||||
|
|
||||||
# ChibiOS settings
|
# ChibiOS settings
|
||||||
ifeq ($(OPT_OS),chibios)
|
ifeq ($(OPT_OS),chibios)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is a script file for OpenOCD 0.7.0
|
# This is a script file for OpenOCD ?.?.?
|
||||||
#
|
#
|
||||||
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
||||||
#
|
#
|
||||||
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
GFXLIB = ../path/to/ugfx
|
GFXLIB = ../path/to/ugfx
|
||||||
GFXBOARD = STM32F429i-Discovery
|
GFXBOARD = STM32F429i-Discovery
|
||||||
GFXDEMO = modules/gdisp/basics
|
GFXDEMO = modules/gdisp/basics
|
||||||
|
GFXSINGLEMAKE = no
|
||||||
|
|
||||||
# ChibiOS settings
|
# ChibiOS settings
|
||||||
ifeq ($(OPT_OS),chibios)
|
ifeq ($(OPT_OS),chibios)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is a script file for OpenOCD 0.7.0
|
# This is a script file for OpenOCD ?.?.?
|
||||||
#
|
#
|
||||||
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
# It is set up for the Mikromedia-STM32M4 board using the ST-Link JTAG adaptor.
|
||||||
#
|
#
|
||||||
|
@ -32,11 +32,11 @@ source [find interface/stlink-v2.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Loading CPU..."
|
echo "##### Loading CPU..."
|
||||||
source [find target/stm32f4x_stlink.cfg]
|
source [find target/stm32f4x.cfg]
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "##### Configuring..."
|
echo "##### Configuring..."
|
||||||
reset_config srst_only srst_nogate
|
#reset_config srst_only srst_nogate
|
||||||
#cortex_m maskisr (auto|on|off)
|
#cortex_m maskisr (auto|on|off)
|
||||||
#cortex_m vector_catch [all|none|list]
|
#cortex_m vector_catch [all|none|list]
|
||||||
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
#cortex_m reset_config (srst|sysresetreq|vectreset)
|
||||||
|
@ -58,10 +58,10 @@ proc Burn {file} {
|
||||||
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
# If this happens to you - use the ST-Link utility to set the option byte back to normal.
|
||||||
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
# If you are using a different debugger eg a FT2232 based adapter you can uncomment the line below.
|
||||||
#stm32f2x unlock 0
|
#stm32f2x unlock 0
|
||||||
flash protect 0 0 last off
|
#flash protect 0 0 last off
|
||||||
reset init
|
reset halt
|
||||||
flash write_image erase $file 0x08000000
|
flash write_image erase $file 0 elf
|
||||||
verify_image $file 0x0
|
verify_image $file 0x0 elf
|
||||||
#flash protect 0 0 last on
|
#flash protect 0 0 last on
|
||||||
reset
|
reset
|
||||||
echo "Burning Complete!"
|
echo "Burning Complete!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue