<?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: S32K344 Mcu integration with AUTOSAR (Vector SIP) problem in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1453469#M15275</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;Problem solved.&lt;/STRIKE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the default values were incorrect and set for all peripherals as for McuPeripheral_0 (TRGMUX).&lt;BR /&gt;The solution was to remove Mcu driver completely and re-import it to the project from RTD again.&lt;/P&gt;&lt;P&gt;I had to configure it from the scratch, but in the same manner as previously configured and this time warnings were gone.&lt;BR /&gt;This way, the peripheral clock enable bit is now correctly set for all peripherals, without any warnings in DaVinci Configurator:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stolaart_0-1651748802747.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178880iA1E851C4B2090A64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stolaart_0-1651748802747.png" alt="stolaart_0-1651748802747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: Problem is &lt;STRONG&gt;NOT&lt;/STRONG&gt; solved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It works fine as long as project was open in DaVinci Configurator after manual configuration of Mcu (from scratch).&lt;BR /&gt;Once reloaded - problem appears again!&lt;/P&gt;&lt;P&gt;The root cause is the &lt;STRONG&gt;&lt;EM&gt;Mcu.xdm&lt;/EM&gt;&lt;/STRONG&gt; file provided with&amp;nbsp;SW32K3_RTD_4.4_2.0.0. Why on earth so many containers are marked with flag READONLY = 'true' in this config file? Because of this flag it is impossible to enable/disable any peripheral clock in DaVinci CFG (you can't modify .xdm files on your own since they are signed)!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stolaart_0-1651767940889.png" style="width: 711px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178918iA8D78D37EEEE7B48/image-dimensions/711x700?v=v2" width="711" height="700" role="button" title="stolaart_0-1651767940889.png" alt="stolaart_0-1651767940889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the NXP examples it works nice, since there is provided .mex file with configuration that can be changed from S32 Design Studio. I don't know how it works, but looks like S32DS does not use EB Tresos generators and/or does not read its .xdm configurations.&lt;/P&gt;&lt;P&gt;But DaVinci CFG does, since it uses EB Tresos generator for MCAL drivers. Therefore, the whole&amp;nbsp;SW32K3_RTD_4.4_2.0.0 is unusable as MCAL drivers integrated with Vector's toolchain.&lt;/P&gt;&lt;P&gt;Is there any chance to get a hotfix for this issue?&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2022 16:29:58 GMT</pubDate>
    <dc:creator>stolaart</dc:creator>
    <dc:date>2022-05-05T16:29:58Z</dc:date>
    <item>
      <title>S32K344 Mcu integration with AUTOSAR (Vector SIP) problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1451633#M15225</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am struggling to bring-up AUTOSAR (&lt;STRONG&gt;Vector SIP&lt;/STRONG&gt; delivery) on &lt;STRONG&gt;S32K344&lt;/STRONG&gt; eval-board using &lt;STRONG&gt;SW32K3_RTD_4.4_2.0.0&lt;/STRONG&gt;, and I encoutered some problems with running peripherals (&lt;EM&gt;STM_0&lt;/EM&gt; and &lt;EM&gt;FlexCAN_0&lt;/EM&gt;) properly.&lt;/P&gt;&lt;P&gt;The board hits unexpected exception during &lt;EM&gt;Gpt_Init&lt;/EM&gt;, or &lt;EM&gt;Can_Init&lt;/EM&gt; (if Gpt is deactivated in the first place) on accessing peripheral registers, since these peripherals are gated (corresponding values in&amp;nbsp;&lt;STRONG&gt;MC_ME_PRTNx_COFBx_STATUS&lt;/STRONG&gt; registers set to 0x0, instead of 0x1).&lt;/P&gt;&lt;P&gt;The problem is that these peripherals stay gated, although the checkbox '&lt;EM&gt;Peripheral Clock Enable&lt;/EM&gt;' is marked in DaVinci Configurator (so the registers&amp;nbsp;&lt;STRONG&gt;MC_ME_PRTNx_COFBx_CLKEN[REQx]&lt;/STRONG&gt; should be set properly).&lt;/P&gt;&lt;P&gt;I noticed that for PeripheralName and ModeEntrySlot there are some strange warnings, that these attributes are RO (and it looks so in Mcu.xdm file) and default values shall be used - but it seems that default values are the same as the one configured:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="McuPeripheralConfig.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178508i83459DF352E789D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="McuPeripheralConfig.png" alt="McuPeripheralConfig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, does it might have any impact on Peripheral Clock Enable setting? How to enforce Mcu to apply these settings? Is there any additional register/setting to be configured that I am not yet aware of?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;First, I thought there might be some code that overrides these settings during vBRS (Vector Basic Runtime System) stage, but it doesn't seem to be the case after I took a closer look - when I hit the breakpoint on Gpt_Init entry which is right after execution of Mcu_Init, the&amp;nbsp;&lt;STRONG&gt;MC_ME_PRTNx_COFBx_STATUS &lt;/STRONG&gt;for STM_0 (used by Gpt) is still 0x0, not 0x1!&amp;nbsp; The result is that when Gpt tries to configure STM_0 registers, I catch the exception. Exactly the same thing happens for FlexCAN0 (when I comment out Gpt_Init call).&lt;/P&gt;&lt;P&gt;I would be most grateful for any hints and feedback, since I don't know where do I make the mistake (or if there is any known issue with SW32K3_RTD_4.4_2.0.0 integration with AUTOSAR from Vector)&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Artur&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 23:11:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1451633#M15225</guid>
      <dc:creator>stolaart</dc:creator>
      <dc:date>2022-05-01T23:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Mcu integration with AUTOSAR (Vector SIP) problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1453469#M15275</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Problem solved.&lt;/STRIKE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the default values were incorrect and set for all peripherals as for McuPeripheral_0 (TRGMUX).&lt;BR /&gt;The solution was to remove Mcu driver completely and re-import it to the project from RTD again.&lt;/P&gt;&lt;P&gt;I had to configure it from the scratch, but in the same manner as previously configured and this time warnings were gone.&lt;BR /&gt;This way, the peripheral clock enable bit is now correctly set for all peripherals, without any warnings in DaVinci Configurator:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stolaart_0-1651748802747.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178880iA1E851C4B2090A64/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stolaart_0-1651748802747.png" alt="stolaart_0-1651748802747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: Problem is &lt;STRONG&gt;NOT&lt;/STRONG&gt; solved.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It works fine as long as project was open in DaVinci Configurator after manual configuration of Mcu (from scratch).&lt;BR /&gt;Once reloaded - problem appears again!&lt;/P&gt;&lt;P&gt;The root cause is the &lt;STRONG&gt;&lt;EM&gt;Mcu.xdm&lt;/EM&gt;&lt;/STRONG&gt; file provided with&amp;nbsp;SW32K3_RTD_4.4_2.0.0. Why on earth so many containers are marked with flag READONLY = 'true' in this config file? Because of this flag it is impossible to enable/disable any peripheral clock in DaVinci CFG (you can't modify .xdm files on your own since they are signed)!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stolaart_0-1651767940889.png" style="width: 711px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178918iA8D78D37EEEE7B48/image-dimensions/711x700?v=v2" width="711" height="700" role="button" title="stolaart_0-1651767940889.png" alt="stolaart_0-1651767940889.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the NXP examples it works nice, since there is provided .mex file with configuration that can be changed from S32 Design Studio. I don't know how it works, but looks like S32DS does not use EB Tresos generators and/or does not read its .xdm configurations.&lt;/P&gt;&lt;P&gt;But DaVinci CFG does, since it uses EB Tresos generator for MCAL drivers. Therefore, the whole&amp;nbsp;SW32K3_RTD_4.4_2.0.0 is unusable as MCAL drivers integrated with Vector's toolchain.&lt;/P&gt;&lt;P&gt;Is there any chance to get a hotfix for this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 16:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1453469#M15275</guid>
      <dc:creator>stolaart</dc:creator>
      <dc:date>2022-05-05T16:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 Mcu integration with AUTOSAR (Vector SIP) problem</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1462874#M15617</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Sorry for late reply, this thread hasn't been assigned correctly somehow.&lt;/P&gt;
&lt;P&gt;This is an issue relating to the integrator itself rather than a RTD driver issue. The reason is quite complicated, however I will try to explain as simplest as it can. After configured all the stuff, the following arxml file will be generated in DaVinci:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_0-1653365490997.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180772i4E1E32B134450AFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_0-1653365490997.jpeg" alt="namnguyenviet_0-1653365490997.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This file will be used as an input for a generation tool. As you can see, the order of the peripheral is&amp;nbsp;McuPeripheral_0,1,10,100…, but the generation tool expect an order like&amp;nbsp;McuPeripheral_0,1,2… As a result, the generated code will not matched with the configured values.&lt;/P&gt;
&lt;P&gt;Please follow the below steps as workaround:&lt;/P&gt;
&lt;P&gt;1. Start from EB Tresos, you create a project with S32K3xx platform and configure all of the MCU peripherals, enable the peripheral clocks that you want to use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_1-1653365855963.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180773iEB9AEE3E3CBD955F/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_1-1653365855963.jpeg" alt="namnguyenviet_1-1653365855963.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Change the &lt;STRONG&gt;Name &lt;/STRONG&gt;field of the peripheral as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_2-1653365904070.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180774iF8E84CC77437431B/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_2-1653365904070.png" alt="namnguyenviet_2-1653365904070.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Export the project to arxml file, by Right click to the project -&amp;gt; select &lt;EM&gt;Im – and Exporters…&lt;/EM&gt;. An Importer/Exporter window will be shown. Press the Plus button (the green one) to add a new im/exporter object. Select &lt;EM&gt;Export Only&lt;/EM&gt; then press &lt;EM&gt;Next&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_3-1653365950749.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180775i23F1E0A8DF66C8A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_3-1653365950749.jpeg" alt="namnguyenviet_3-1653365950749.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4. Fill the exported arxml file with &lt;STRONG&gt;full path&lt;/STRONG&gt;, select the AUTOSAR version (4.4.0), then &lt;EM&gt;Finish&lt;/EM&gt;. After that, press &lt;EM&gt;Run Exporter&lt;/EM&gt; to get the exported arxml file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="namnguyenviet_4-1653365989781.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/180776iEBF0F6C290103DF7/image-size/large?v=v2&amp;amp;px=999" role="button" title="namnguyenviet_4-1653365989781.jpeg" alt="namnguyenviet_4-1653365989781.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5. Import the generated&amp;nbsp;&lt;EM&gt;arxml&amp;nbsp;&lt;/EM&gt;file to DaVinci tool.&lt;/P&gt;
&lt;P&gt;Hope it helps and sorry for any inconvenience.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Nam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 04:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-Mcu-integration-with-AUTOSAR-Vector-SIP-problem/m-p/1462874#M15617</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2022-05-24T04:22:17Z</dc:date>
    </item>
  </channel>
</rss>

