<?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: S32G2 How to trigger a destructive reset from software ? (with RTD) in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/S32G2-How-to-trigger-a-destructive-reset-from-software-with-RTD/m-p/1605333#M5482</link>
    <description>&lt;P&gt;oook, it works now. Both with&amp;nbsp; Mcu_PerformReset() and Mcu_SetMode(). Maybe it eas the debugger disturbing the process, it works fine when bookting from&amp;nbsp; Flash.&lt;/P&gt;&lt;P&gt;Topic closed&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 15:03:39 GMT</pubDate>
    <dc:creator>SSyb</dc:creator>
    <dc:date>2023-02-24T15:03:39Z</dc:date>
    <item>
      <title>S32G2 How to trigger a destructive reset from software ? (with RTD)</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/S32G2-How-to-trigger-a-destructive-reset-from-software-with-RTD/m-p/1602942#M5478</link>
      <description>&lt;P&gt;I have a question to trigger a destructive reset from within the software on an S32G2xx device.&lt;BR /&gt;I work with an S32G274A on the RDB2 board, my application is a multicore (M7_0 and M7_1) classic AUTOSAR stack, the A53s I don't use (and it is ok that the complete SoC is reset)&lt;BR /&gt;I use the SW32G_RTD_4.4_3.0.2_HF01 under my AUTOSAR BSW stack, with Tresos 27.1.0.&lt;/P&gt;&lt;P&gt;When performing the shutdown/reset sequence, at the end there is a callout were we usually (on other targets) call the AUTOSR API Mcu_PerformReset(). In Tresos, I have configured the Mcu Reset Module to do a destructive reset.&lt;/P&gt;&lt;P&gt;Problem: after the call my software is still stuck in the end of the Os Shutdown, but a proper reset and reboot I don't see.&lt;/P&gt;&lt;P&gt;What I see in the Mcu code and during debugging is:&lt;BR /&gt;- at some point the MC_ME_MODE_CONF register is filled,&lt;BR /&gt;- then the UPD register is set,&lt;BR /&gt;- then the control keys are written&lt;BR /&gt;after this the reset should happen in my humble opinion, but the software gets stuck in an OS shutdowen loop after this.&lt;/P&gt;&lt;P&gt;I am not writing anything else to any other MC_ME register (was hoping the reset could be performed only with AUTOSAR / MCAL APIs.) But in the callout I have the freedom to do so if required.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Questions:&lt;/P&gt;&lt;P&gt;1) In General: does a destructive reset lead me though the BootROM again ? or Can I trigger to go through the BootROM again from SW ?&lt;/P&gt;&lt;P&gt;2) is Mcu_PerformReset() the correct way ? or do I need to swith a mode with the Mcu_SetMode() API ? or something else ?&lt;/P&gt;&lt;P&gt;3) In case I need to use Mcu_SetMode(): Is there an example for the configuration (in Tresos) ? I played a little bit with it, but without success so far. For instance, I am not really clear whether the "Boot Address" should be the address of the Reset_Handler, or the start of the int vec table ? I also naturally thought to activate the "Core reset Enable Checkbox", but that triggers an error in the Tresos tool.&lt;/P&gt;&lt;P&gt;any hints welcome &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;BR /&gt;Stefan&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 13:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/S32G2-How-to-trigger-a-destructive-reset-from-software-with-RTD/m-p/1602942#M5478</guid>
      <dc:creator>SSyb</dc:creator>
      <dc:date>2023-02-21T13:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32G2 How to trigger a destructive reset from software ? (with RTD)</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/S32G2-How-to-trigger-a-destructive-reset-from-software-with-RTD/m-p/1605333#M5482</link>
      <description>&lt;P&gt;oook, it works now. Both with&amp;nbsp; Mcu_PerformReset() and Mcu_SetMode(). Maybe it eas the debugger disturbing the process, it works fine when bookting from&amp;nbsp; Flash.&lt;/P&gt;&lt;P&gt;Topic closed&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 15:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/S32G2-How-to-trigger-a-destructive-reset-from-software-with-RTD/m-p/1605333#M5482</guid>
      <dc:creator>SSyb</dc:creator>
      <dc:date>2023-02-24T15:03:39Z</dc:date>
    </item>
  </channel>
</rss>

