<?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>topic Re: S32G bootloader use Trace32 script cannot start A53_0 in S32G</title>
    <link>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1474930#M938</link>
    <description>&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;The script I'm using is as follow:&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;; Script for programming of S32Gxx.&lt;BR /&gt;;&lt;BR /&gt;; $Author: Vlad Furtuna $&lt;BR /&gt;; $Date: 2019-09-23 $&lt;BR /&gt;; This file is used to load code from the M7 bootloader, copying data&lt;BR /&gt;; from ram to ram memory and starting the application.&lt;BR /&gt;;========================================================================&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;JTAG.PIN NRESET 0&lt;BR /&gt;JTAG.PIN NTRST 0&lt;BR /&gt;WAIT 10ms&lt;BR /&gt;JTAG.PIN NRESET 1&lt;BR /&gt;JTAG.PIN NTRST 1&lt;BR /&gt;WAIT 10ms&lt;/P&gt;&lt;P&gt;; Boot on E2 samples, assume M7-HSE is not accessible anymore, the M7_0 should have clock&lt;BR /&gt;; but is not booted when there is no IVT, so it has to be manually booted through AXI interface&lt;BR /&gt;system.down&lt;BR /&gt;sys.Reset&lt;BR /&gt;symbol.sourcepath.reset&lt;BR /&gt;sys.cpu S32G-M7_0&lt;BR /&gt;SYStem.config.debugporttype JTAG&lt;BR /&gt;SYStem.Option TRST OFF&lt;BR /&gt;trace.DISABLE&lt;BR /&gt;ETM.OFF&lt;BR /&gt;ITM.OFF&lt;BR /&gt;SYStem.JtagClock 40MHz&lt;BR /&gt;sys.Option DUALPORT on&lt;BR /&gt;sys.memaccess DAP&lt;BR /&gt;sys.mode prepare&lt;/P&gt;&lt;P&gt;GOSUB InitSramEccViaRAMCtrl&lt;/P&gt;&lt;P&gt;;; Writing loop to self instruction to memory&lt;BR /&gt;D.S eaxi:0x34000000 %LE %Long 0x34000100&lt;BR /&gt;D.S eaxi:0x34000004 %LE %Long 0x34000025&lt;BR /&gt;D.S eaxi:0x34000024 %LE %Long 0xFFFEF7FF&lt;/P&gt;&lt;P&gt;GOSUB EnableCM7_0&lt;BR /&gt;GOSUB DisableSWTWatchdog&lt;/P&gt;&lt;P&gt;DO QuadSPI_Flash_Init.cmm&lt;/P&gt;&lt;P&gt;sys.Option DisMode THUMB&lt;/P&gt;&lt;P&gt;sys.MemAccess AXI&lt;BR /&gt;SYStem.Option DUALPORT ON&lt;BR /&gt;sys.attach&lt;BR /&gt;break&lt;/P&gt;&lt;P&gt;Data.Load.Elf ../bin_bootloader/Bootloader.elf /GLOBTYPES /AnySym&lt;/P&gt;&lt;P&gt;;Release the core from the loop from startup&lt;BR /&gt;data.set eaxi:CATCH_CORE_RESET 0x00000000&lt;BR /&gt;list&lt;/P&gt;&lt;P&gt;go main&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Want to know why use .cmm script debug the same project online, it does not work?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jun 2022 02:32:46 GMT</pubDate>
    <dc:creator>nevc</dc:creator>
    <dc:date>2022-06-16T02:32:46Z</dc:date>
    <item>
      <title>S32G bootloader use Trace32 script cannot start A53_0</title>
      <link>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1471107#M900</link>
      <description>&lt;P&gt;I'm using Platform_Software_Integration_S32G2XX_2021_09 version, when I use trace32 script to debug the bootloader, it is able to start cm7 app, but cannot start uboot; but when I use IVT version bootloader, and flash IVT&amp;nbsp; bootloader, cm7 app, uboot on the QSPI flash, power on the board, cm7 app and uboot all worked well.&lt;/P&gt;&lt;P&gt;When use Trace32 script to debug, why uboot can't work well?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 01:50:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1471107#M900</guid>
      <dc:creator>nevc</dc:creator>
      <dc:date>2022-06-09T01:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32G bootloader use Trace32 script cannot start A53_0</title>
      <link>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1473681#M933</link>
      <description>&lt;P&gt;Hello nevc,&lt;/P&gt;
&lt;P&gt;You have to change the script to a one that does not use the ivt, I guess trace has one of this if not you have to create one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1473681#M933</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2022-06-14T13:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32G bootloader use Trace32 script cannot start A53_0</title>
      <link>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1474930#M938</link>
      <description>&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;The script I'm using is as follow:&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;; Script for programming of S32Gxx.&lt;BR /&gt;;&lt;BR /&gt;; $Author: Vlad Furtuna $&lt;BR /&gt;; $Date: 2019-09-23 $&lt;BR /&gt;; This file is used to load code from the M7 bootloader, copying data&lt;BR /&gt;; from ram to ram memory and starting the application.&lt;BR /&gt;;========================================================================&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;JTAG.PIN NRESET 0&lt;BR /&gt;JTAG.PIN NTRST 0&lt;BR /&gt;WAIT 10ms&lt;BR /&gt;JTAG.PIN NRESET 1&lt;BR /&gt;JTAG.PIN NTRST 1&lt;BR /&gt;WAIT 10ms&lt;/P&gt;&lt;P&gt;; Boot on E2 samples, assume M7-HSE is not accessible anymore, the M7_0 should have clock&lt;BR /&gt;; but is not booted when there is no IVT, so it has to be manually booted through AXI interface&lt;BR /&gt;system.down&lt;BR /&gt;sys.Reset&lt;BR /&gt;symbol.sourcepath.reset&lt;BR /&gt;sys.cpu S32G-M7_0&lt;BR /&gt;SYStem.config.debugporttype JTAG&lt;BR /&gt;SYStem.Option TRST OFF&lt;BR /&gt;trace.DISABLE&lt;BR /&gt;ETM.OFF&lt;BR /&gt;ITM.OFF&lt;BR /&gt;SYStem.JtagClock 40MHz&lt;BR /&gt;sys.Option DUALPORT on&lt;BR /&gt;sys.memaccess DAP&lt;BR /&gt;sys.mode prepare&lt;/P&gt;&lt;P&gt;GOSUB InitSramEccViaRAMCtrl&lt;/P&gt;&lt;P&gt;;; Writing loop to self instruction to memory&lt;BR /&gt;D.S eaxi:0x34000000 %LE %Long 0x34000100&lt;BR /&gt;D.S eaxi:0x34000004 %LE %Long 0x34000025&lt;BR /&gt;D.S eaxi:0x34000024 %LE %Long 0xFFFEF7FF&lt;/P&gt;&lt;P&gt;GOSUB EnableCM7_0&lt;BR /&gt;GOSUB DisableSWTWatchdog&lt;/P&gt;&lt;P&gt;DO QuadSPI_Flash_Init.cmm&lt;/P&gt;&lt;P&gt;sys.Option DisMode THUMB&lt;/P&gt;&lt;P&gt;sys.MemAccess AXI&lt;BR /&gt;SYStem.Option DUALPORT ON&lt;BR /&gt;sys.attach&lt;BR /&gt;break&lt;/P&gt;&lt;P&gt;Data.Load.Elf ../bin_bootloader/Bootloader.elf /GLOBTYPES /AnySym&lt;/P&gt;&lt;P&gt;;Release the core from the loop from startup&lt;BR /&gt;data.set eaxi:CATCH_CORE_RESET 0x00000000&lt;BR /&gt;list&lt;/P&gt;&lt;P&gt;go main&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Want to know why use .cmm script debug the same project online, it does not work?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 02:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32G/S32G-bootloader-use-Trace32-script-cannot-start-A53-0/m-p/1474930#M938</guid>
      <dc:creator>nevc</dc:creator>
      <dc:date>2022-06-16T02:32:46Z</dc:date>
    </item>
  </channel>
</rss>

