Thank you very much for your reply.
The script I'm using is as follow:
;
; Script for programming of S32Gxx.
;
; $Author: Vlad Furtuna $
; $Date: 2019-09-23 $
; This file is used to load code from the M7 bootloader, copying data
; from ram to ram memory and starting the application.
;========================================================================
JTAG.PIN NRESET 0
JTAG.PIN NTRST 0
WAIT 10ms
JTAG.PIN NRESET 1
JTAG.PIN NTRST 1
WAIT 10ms
; Boot on E2 samples, assume M7-HSE is not accessible anymore, the M7_0 should have clock
; but is not booted when there is no IVT, so it has to be manually booted through AXI interface
system.down
sys.Reset
symbol.sourcepath.reset
sys.cpu S32G-M7_0
SYStem.config.debugporttype JTAG
SYStem.Option TRST OFF
trace.DISABLE
ETM.OFF
ITM.OFF
SYStem.JtagClock 40MHz
sys.Option DUALPORT on
sys.memaccess DAP
sys.mode prepare
GOSUB InitSramEccViaRAMCtrl
;; Writing loop to self instruction to memory
D.S eaxi:0x34000000 %LE %Long 0x34000100
D.S eaxi:0x34000004 %LE %Long 0x34000025
D.S eaxi:0x34000024 %LE %Long 0xFFFEF7FF
GOSUB EnableCM7_0
GOSUB DisableSWTWatchdog
DO QuadSPI_Flash_Init.cmm
sys.Option DisMode THUMB
sys.MemAccess AXI
SYStem.Option DUALPORT ON
sys.attach
break
Data.Load.Elf ../bin_bootloader/Bootloader.elf /GLOBTYPES /AnySym
;Release the core from the loop from startup
data.set eaxi:CATCH_CORE_RESET 0x00000000
list
go main
ENDDO
when I'm using this script download Bootloader.elf on board, debug it step by step, after copy uboot.bin and cm7_app.bin form QSPI flash to Ran, pull A53 out of reset but uboot can not run as well, pull cm7_1 core out of reset, cm7_app run well.
Use the same Bootloader.bin and make it with IVT information, then flash Bootloader_IVT.bin、uboot.bin、 cm7_app.bin on QSPI flash, reset the board, boot uboot and cm7_app run well.
Want to know why use .cmm script debug the same project online, it does not work?