<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRT1170 binary load using C-SPY utility</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1170-binary-load-using-C-SPY-utility/m-p/1970215#M229466</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using MIMXRT1170-EVK Board, uart example for cm7.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;My questions:&lt;/P&gt;
&lt;P&gt;1. How to use the cspy tool to&amp;nbsp;load the binary image and execute it without any manual intervention?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. How to add script to let the target execute it I used --download_only option? Here I am using CMSIS-DAP connection?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The uart project which is part of RT1170 SDK is attached.&lt;/P&gt;
&lt;P&gt;Snipped from the scripts:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;"C:\iar\ewarm-9.60.2\common\bin\cspybat" -f "lpuart_polling_cm7.debug.general.xcl" --backend -f "lpuart_polling_cm7.debug.driver.xcl"&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;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&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;--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




&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ahmed Habib&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 17:26:11 GMT</pubDate>
    <dc:creator>AhmedHabib</dc:creator>
    <dc:date>2024-10-09T17:26:11Z</dc:date>
    <item>
      <title>RT1170 binary load using C-SPY utility</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1170-binary-load-using-C-SPY-utility/m-p/1970215#M229466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using MIMXRT1170-EVK Board, uart example for cm7.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;My questions:&lt;/P&gt;
&lt;P&gt;1. How to use the cspy tool to&amp;nbsp;load the binary image and execute it without any manual intervention?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. How to add script to let the target execute it I used --download_only option? Here I am using CMSIS-DAP connection?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The uart project which is part of RT1170 SDK is attached.&lt;/P&gt;
&lt;P&gt;Snipped from the scripts:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;"C:\iar\ewarm-9.60.2\common\bin\cspybat" -f "lpuart_polling_cm7.debug.general.xcl" --backend -f "lpuart_polling_cm7.debug.driver.xcl"&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;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&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;--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




&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ahmed Habib&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 17:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1170-binary-load-using-C-SPY-utility/m-p/1970215#M229466</guid>
      <dc:creator>AhmedHabib</dc:creator>
      <dc:date>2024-10-09T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: RT1170 binary load using C-SPY utility</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1170-binary-load-using-C-SPY-utility/m-p/1970897#M229485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/241740"&gt;@AhmedHabib&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The C-SPY macros might help you on this purpose, for example,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kan_Li_0-1728533397302.png" style="width: 632px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/303894i6D0D17C51A61A6EC/image-dimensions/632x274?v=v2" width="632" height="274" role="button" title="Kan_Li_0-1728533397302.png" alt="Kan_Li_0-1728533397302.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please kindly refer to&amp;nbsp;&lt;A href="https://wwwfiles.iar.com/RX/webic/doc/EWRX_DebuggingGuide.ENU.pdf" target="_blank"&gt;https://wwwfiles.iar.com/RX/webic/doc/EWRX_DebuggingGuide.ENU.pdf&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please kindly contact IAR for further support.&amp;nbsp;&lt;A href="https://www.iar.com/about/contact" target="_blank"&gt;https://www.iar.com/about/contact&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 04:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1170-binary-load-using-C-SPY-utility/m-p/1970897#M229485</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-10-10T04:14:26Z</dc:date>
    </item>
  </channel>
</rss>

