Hi,
I am using MIMXRT1170-EVK Board, uart example for cm7.
I am trying to load the binary on the target using the cspy tool (through lpuart_polling_cm7.debug.cspy.bat). It loads and running as expected but keeps the command line open and it never terminates until ended by user.
I tried to add argument --download_only for the .out file, it loads the image but not execute it until I attach using IAR and press Go.
My questions:
1. How to use the cspy tool to load the binary image and execute it without any manual intervention?
2. How to add script to let the target execute it I used --download_only option? Here I am using CMSIS-DAP connection?
The uart project which is part of RT1170 SDK is attached.
Snipped from the scripts:
"C:\iar\ewarm-9.60.2\common\bin\cspybat" -f "lpuart_polling_cm7.debug.general.xcl" --backend -f "lpuart_polling_cm7.debug.driver.xcl"C:\iar\ewarm-9.60.2\arm\bin\armPROC.dll
C:\iar\ewarm-9.60.2\arm\bin\armJET.dll
--download_only ..\Debug\lpuart_polling_cm7.out
--plugin=C:\iar\ewarm-9.60.2\arm\bin\armLibSupportUniversal.dll
--device_macro=C:\iar\ewarm-9.60.2\arm/config/debugger/NXP/iMXRT_1170.dmac
--device_macro=C:\iar\ewarm-9.60.2\arm/config/debugger/NXP/iMXRT_1170_cm7.dmac
--device_macro=C:\iar\ewarm-9.60.2\arm/config/debugger/NXP/iMXRT_1170_FlexSPI.dmac
--macro=C:\Users\nxg00411\Downloads\MIMXRT1170-EVK-lpuart_polling_cm7\lpuart_polling_cm7/evkmimxrt1170/evkmimxrt1170_connect_cm7.mac
--flash_loader=C:\iar\ewarm-9.60.2\arm/config/flashloader/NXP/FlashIMXRT1170_FlexSPI.board--endian=little
--cpu=Cortex-M7
--fpu=VFPv5_D16
-p
C:\iar\ewarm-9.60.2\arm\config\debugger\NXP\MIMXRT1176xxxA_M7.ddf
--semihosting
--device=MIMXRT1176xxxA_M7
--multicore_nr_of_cores=1
--jet_probe=cmsisdap
--jet_standard_reset=1,0,0
"--reset_style=\"0,-,0,Disabled__no_reset_\""
"--reset_style=\"1,SoftwareReset,1,Software\""
"--reset_style=\"2,-,0,Hardware\""
"--reset_style=\"3,CoreReset,0,Core\""
"--reset_style=\"4,-,0,System\""
--drv_interface=SWD
--drv_catch_exceptions=0x800
--jet_board_cfg=C:\iar\ewarm-9.60.2\arm/config/debugger/NXP/IMXRT1170.ProbeConfig
Regards,
Ahmed Habib
Hi @AhmedHabib ,
The C-SPY macros might help you on this purpose, for example,
Please kindly refer to https://wwwfiles.iar.com/RX/webic/doc/EWRX_DebuggingGuide.ENU.pdf for more details.
Please kindly contact IAR for further support. https://www.iar.com/about/contact
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------