Files
2025-10-14 09:52:32 +09:00

45 lines
1.3 KiB
Plaintext

; --------------------------------------------------------------------------------
; @Title: Microsemi SmartFusion2 Dev Kit Start script
; @Description:
; Load a simple sieve demo into the SRAM of the Microsemi SmartFusion2.
; Prerequisites:
; * J93 JTAG SEL - Short Pin 2-3
; * FPGA Design loaded which clocks the Cortex-M
; * RVI-Header, place a 1k Resistor between Pin 1,3
; * debugger is connected to MIPI-20 connector
; @Author: AME
; @Board: SmartFusion2
; @Chip: M2S*
; @Copyright: (C) 1989-2022 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: start-sieve.cmm 20803 2023-04-20 09:33:18Z bschroefel $
RESet
SYStem.RESet
SYStem.CPU M2S050
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