46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
; --------------------------------------------------------------------------------
|
|
; @Title: Microsemi SmartFusion2 Starter Kit Start script
|
|
; @Description:
|
|
; Load a simple sieve demo into the SRAM of the Microsemi SmartFusion2.
|
|
; Prerequisites:
|
|
; * JP2 JTAG SEL - Short Pin 1-2 (please see readme.txt)
|
|
; * FPGA Design loaded which clocks the Cortex-M
|
|
; * debugger is connected to P3 connector
|
|
; @Author: AME
|
|
; @Board: SmartFusion2
|
|
; @Chip: M2S*
|
|
; @Copyright: (C) 1989-2022 Lauterbach GmbH, licensed for use with TRACE32(R) only
|
|
; --------------------------------------------------------------------------------
|
|
; $Id: start-sieve.cmm 22664 2024-04-18 09:47:55Z gmehdi $
|
|
|
|
; Reviewed by GME, 2024-04-18
|
|
|
|
|
|
RESet
|
|
SYStem.RESet
|
|
SYStem.CPU M2S010
|
|
SYStem.CONFIG CONNECTOR MIPI20T
|
|
SYStem.CONFIG DEBUGPORTTYPE SWD
|
|
SYStem.Option ResBreak OFF
|
|
SYStem.Option WaitReset 1ms
|
|
SYStem.Option DUALPORT ON
|
|
SYStem.MemAccess DAP
|
|
SYStem.Up
|
|
|
|
; load stack pointer and PC from vector table
|
|
Register.RESet
|
|
|
|
; Init internal SRAM
|
|
Data.Set 0x20000000++0x13FFF % Long 0
|
|
|
|
; load debug information of demo application on the board
|
|
DO ~~/demo/arm/compiler/gnu-pic/demo_sieve 0x20008000
|
|
Go main
|
|
WAIT !STATE.RUN()
|
|
|
|
Mode.Hll
|
|
WinPOS 0% 0%
|
|
List.auto
|
|
|
|
ENDDO
|