<?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>S32 Design StudioのトピックUse Reset Script File to configure MCU during download</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Use-Reset-Script-File-to-configure-MCU-during-download/m-p/789051#M3182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;I'm using S32 Design Studio for NXP MCU S32R372.&lt;BR /&gt;For some reason, I need modify some peripherals registers within the 256ms time window after MCU reset.&lt;BR /&gt;I modified the reset script file "S32e200_s32r372.mac"&lt;BR /&gt;For example, I add the two lines so as to write to register at 0xFFFC0240 and at 0xFFFC1300:&lt;BR /&gt;This means set PTA[0] to output high.&lt;BR /&gt;mm.l 0xFFFC0240 0x02000000&lt;BR /&gt;mm.l 0xFFFC1300 0x01000000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also modified the cflash algorithm file "Nxp_s32r372_1x32x328k_cflash.pcp".&lt;BR /&gt;Add the following two lines: (same meaning as above)&lt;BR /&gt;WRITE_LONG=02000000/FFFC0240/&lt;BR /&gt;WRITE_LONG=01000000/FFFC1300/&lt;/P&gt;&lt;P&gt;I saved these two files and start the debug/download process in S32DS.&lt;BR /&gt;I use an oscilloscope to monitor the RESET signal&lt;BR /&gt;I can see PTA[0] output high after RESET signal released to high.&lt;BR /&gt;So I think the script modifications work as I expected.&lt;/P&gt;&lt;P&gt;During the S32DS download process, I found that the mac file run twice and pcp file run once.&lt;BR /&gt;But there are totally 5 reset pulses observed on oscilloscope.&lt;BR /&gt;I attached the waveform figure I captured during the process.&lt;BR /&gt;1st reset with mac file, 2nd reset no script, 3rd reset with pcp file, 4th reset no script, 5th reset with mac file.&lt;/P&gt;&lt;P&gt;My questions are:&lt;BR /&gt;1) Can I have the manual or guide to show the available commands in mac file and pcp file?&lt;BR /&gt;2) Why are there 5 resets occurred during the debug process and 2 resets maybe run no scripts?&lt;BR /&gt;3) The delay between RESET release and the write operation to register is too long (more than 200ms).&lt;BR /&gt;How can I reduce the delay? I want to have the write operation run immediately after reset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LeCroy--00000.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66535i136A419987EAC376/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy--00000.png" alt="LeCroy--00000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 09:47:40 GMT</pubDate>
    <dc:creator>jinjingyang</dc:creator>
    <dc:date>2018-07-26T09:47:40Z</dc:date>
    <item>
      <title>Use Reset Script File to configure MCU during download</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Use-Reset-Script-File-to-configure-MCU-during-download/m-p/789051#M3182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;I'm using S32 Design Studio for NXP MCU S32R372.&lt;BR /&gt;For some reason, I need modify some peripherals registers within the 256ms time window after MCU reset.&lt;BR /&gt;I modified the reset script file "S32e200_s32r372.mac"&lt;BR /&gt;For example, I add the two lines so as to write to register at 0xFFFC0240 and at 0xFFFC1300:&lt;BR /&gt;This means set PTA[0] to output high.&lt;BR /&gt;mm.l 0xFFFC0240 0x02000000&lt;BR /&gt;mm.l 0xFFFC1300 0x01000000&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also modified the cflash algorithm file "Nxp_s32r372_1x32x328k_cflash.pcp".&lt;BR /&gt;Add the following two lines: (same meaning as above)&lt;BR /&gt;WRITE_LONG=02000000/FFFC0240/&lt;BR /&gt;WRITE_LONG=01000000/FFFC1300/&lt;/P&gt;&lt;P&gt;I saved these two files and start the debug/download process in S32DS.&lt;BR /&gt;I use an oscilloscope to monitor the RESET signal&lt;BR /&gt;I can see PTA[0] output high after RESET signal released to high.&lt;BR /&gt;So I think the script modifications work as I expected.&lt;/P&gt;&lt;P&gt;During the S32DS download process, I found that the mac file run twice and pcp file run once.&lt;BR /&gt;But there are totally 5 reset pulses observed on oscilloscope.&lt;BR /&gt;I attached the waveform figure I captured during the process.&lt;BR /&gt;1st reset with mac file, 2nd reset no script, 3rd reset with pcp file, 4th reset no script, 5th reset with mac file.&lt;/P&gt;&lt;P&gt;My questions are:&lt;BR /&gt;1) Can I have the manual or guide to show the available commands in mac file and pcp file?&lt;BR /&gt;2) Why are there 5 resets occurred during the debug process and 2 resets maybe run no scripts?&lt;BR /&gt;3) The delay between RESET release and the write operation to register is too long (more than 200ms).&lt;BR /&gt;How can I reduce the delay? I want to have the write operation run immediately after reset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="LeCroy--00000.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/66535i136A419987EAC376/image-size/large?v=v2&amp;amp;px=999" role="button" title="LeCroy--00000.png" alt="LeCroy--00000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 09:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Use-Reset-Script-File-to-configure-MCU-during-download/m-p/789051#M3182</guid>
      <dc:creator>jinjingyang</dc:creator>
      <dc:date>2018-07-26T09:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Use Reset Script File to configure MCU during download</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Use-Reset-Script-File-to-configure-MCU-during-download/m-p/789052#M3183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for delay. Well, actually I don't have such information. The .pcp and .mac scripts are provided by PE Micro. I found this guide with some basic command description on PE Micro website:&amp;nbsp; -&amp;nbsp;&lt;A class="link-titled" href="http://www.pemicro.com/downloads/main_downloads_temp/201807310849476379000/CPROGPPCNEXUS%20User%20Guide.pdf" title="http://www.pemicro.com/downloads/main_downloads_temp/201807310849476379000/CPROGPPCNEXUS%20User%20Guide.pdf"&gt;http://www.pemicro.com/downloads/main_downloads_temp/201807310849476379000/CPROGPPCNEXUS%20User%20Guide.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Use-Reset-Script-File-to-configure-MCU-during-download/m-p/789052#M3183</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-31T12:51:36Z</dc:date>
    </item>
  </channel>
</rss>

