commit 8b9d697702056bef7d5493cec85f716ea99ffcdc
parent a15e2092bf15556a0fcf354952944d0d0cede77a
Author: Brian Swetland <swetland@frotz.net>
Date: Mon, 15 Jun 2015 05:37:13 -0700
scripts: remove no longer used flash scripts
Diffstat:
D | scripts/lpc13xx | | | 92 | ------------------------------------------------------------------------------- |
D | scripts/lpc15xx | | | 92 | ------------------------------------------------------------------------------- |
D | scripts/stm32f1xx | | | 80 | ------------------------------------------------------------------------------- |
3 files changed, 0 insertions(+), 264 deletions(-)
diff --git a/scripts/lpc13xx b/scripts/lpc13xx
@@ -1,92 +0,0 @@
-# scripts/lpc13xx
-#
-# Copyright 2011 Brian Swetland <swetland@frotz.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# 32K flash in 1K pages at 0
-set flash-start 0
-set flash-size 8000
-set flash-block 1000
-
-# use ram at 10000000 for download buffer
-set flash-buffer 10000000
-
-# flash-setup
-# - attach and reset
-# - allow on-die ROM to run (important for correct flash init)
-# - regain control when it attempts to read the reset vector
-function flash-setup
- attach
- reset-stop
- watch-rw 0
- go
-
- # write breakpoint at 10001000 and setup SP
- wr 10001000 be00be00
- wr sp 10001f00
-end
-
-# flash-erase <flash-addr>
-function flash-erase
- set page $1 >> .12
-
- # prepare for write
- wr pc 1fff1ff1
- wr lr 10001001
- wr r0 10001010
- wr r1 10001030
- wr 10001010 .50
- wr 10001014 $page
- wr 10001018 $page
- go
-
- # erase
- wr pc 1fff1ff1
- wr lr 10001001
- wr r0 10001010
- wr r1 10001030
- wr 10001010 .52
- wr 10001014 $page
- wr 10001018 $page
- wr 1000101c 2ee0
- go
-end
-
-# flash-write <flash-addr>
-function flash-write
- set page $1 >> .12
-
- # prepare for write
- wr pc 1fff1ff1
- wr lr 10001001
- wr r0 10001010
- wr r1 10001030
- wr 10001010 .50
- wr 10001014 $page
- wr 10001018 $page
- go
-
- # write
- wr pc 1fff1ff1
- wr lr 10001001
- wr r0 10001010
- wr r1 10001030
- wr 10001010 .51
- wr 10001014 $1
- wr 10001018 10000000
- wr 1000101c 1000
- wr 10001020 2ee0
- go
-end
-
diff --git a/scripts/lpc15xx b/scripts/lpc15xx
@@ -1,92 +0,0 @@
-# scripts/lpc13xx
-#
-# Copyright 2011 Brian Swetland <swetland@frotz.net>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# 32K flash in 1K pages at 0
-set flash-start 0
-set flash-size 40000
-set flash-block 1000
-
-# use ram at 02000000 for download buffer
-set flash-buffer 02000000
-
-# flash-setup
-# - attach and reset
-# - allow on-die ROM to run (important for correct flash init)
-# - regain control when it attempts to read the reset vector
-function flash-setup
- attach
- reset-stop
- watch-rw 0
- go
-
- # write breakpoint at 10001000 and setup SP
- wr 02001000 be00be00
- wr sp 02008f00
-end
-
-# flash-erase <flash-addr>
-function flash-erase
- set page $1 >> .12
-
- # prepare for write
- wr pc 03000205
- wr lr 02001001
- wr r0 02001010
- wr r1 02001030
- wr 02001010 .50
- wr 02001014 $page
- wr 02001018 $page
- go
-
- # erase
- wr pc 03000205
- wr lr 02001001
- wr r0 02001010
- wr r1 02001030
- wr 02001010 .52
- wr 02001014 $page
- wr 02001018 $page
- wr 0200101c 2ee0
- go
-end
-
-# flash-write <flash-addr>
-function flash-write
- set page $1 >> .12
-
- # prepare for write
- wr pc 03000205
- wr lr 02001001
- wr r0 02001010
- wr r1 02001030
- wr 02001010 .50
- wr 02001014 $page
- wr 02001018 $page
- go
-
- # write
- wr pc 03000205
- wr lr 02001001
- wr r0 02001010
- wr r1 02001030
- wr 02001010 .51
- wr 02001014 $1
- wr 02001018 02000000
- wr 0200101c 1000
- wr 02001020 2ee0
- go
-end
-
diff --git a/scripts/stm32f1xx b/scripts/stm32f1xx
@@ -1,80 +0,0 @@
-set flash-start 0
-set flash-size 40000
-set flash-block 800
-
-set flash-buffer 20008000
-
-set FLASH_ACR 40022000
-set FLASH_KEYR 40022004
-set FLASH_OPTKEYR 40022008
-set FLASH_SR 4002200c
-set FLASH_CR 40022010
-set FLASH_AR 40022014
-set FLASH_OBR 4002201c
-set FLASH_WRPR 40022020
-
-set FLASH_ENTRY_INIT 20001001
-set FLASH_ENTRY_ERASE_ALL 20001005
-set FLASH_ENTRY_ERASE_PAGE 20001009
-set FLASH_ENTRY_WRITE_PAGE 2000100d
-
-set FLASH_STACK 20008000
-
-function flash-setup
- attach
- reset-stop
-
- download out/stm32f1xx_flash.bin 20001000
- wr psr 01000000
- wr pc $FLASH_ENTRY_INIT
- wr 20007000 be00be00
- wr lr 20007001
- wr sp $FLASH_STACK
-
- go
- echo flash setup completed
- dw $FLASH_ACR
-end
-
-function flash-erase-all
- echo flash-erase-all
- wr pc $FLASH_ENTRY_ERASE_ALL
- wr 20007000 be00be00
- wr lr 20007001
- wr sp $FLASH_STACK
-
- go
- echo flash mass erase completed
-end
-
-function flash-erase
- echo flash-erase args $1
-
- wr r0 $1
- wr pc $FLASH_ENTRY_ERASE_PAGE
- wr 20007000 be00be00
- wr lr 20007001
- wr sp $FLASH_STACK
-
- go
- echo flash page erase completed
-end
-
-function flash-write
- echo flash-write args $1
-
- wr r0 $1
- wr pc $FLASH_ENTRY_WRITE_PAGE
- wr 20007000 be00be00
- wr lr 20007001
- wr sp $FLASH_STACK
-
- go
- echo flash page write completed
-end
-
-#flash-erase-all
-#dw 08000000
-
-#flash stm32.bin 08000000
-#dw 08000000