<?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: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2 in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688467#M1507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one change in the default compiler settings in v1.2.&lt;/P&gt;&lt;P&gt;Strict volatile bitfields are not forced anymore by default for e200zX cores&lt;/P&gt;&lt;P&gt;I'd recommend you to add this compiler flag to your project settings:&lt;/P&gt;&lt;PRE&gt;-fstrict-volatile-bitfields

&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/24813i6D36397474DCB3C9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:58:53 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2020-11-02T13:58:53Z</dc:date>
    <item>
      <title>Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688460#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Evening,&lt;/P&gt;&lt;P&gt;We found some quite interesting problem regarding new S32 version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We were working on S32 V1.1 for quite some time now and today we have switched on V1.2. Hardware we are working on is MPC5744P and problem emerged on our STM (System Timer Module) driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is when it tries to set PRESCALER value program jumps to IVOR1 machine check. Digging deeper we found that when writing PRESCALER value to STM_0.CR.B.CPS register it tries to write value as BYTE and not as WORD which is of course triggering error because as said in MPC5744P Reference Manual STM registers can only be accessed using 32-bit (word) accesses.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25109i0E80ED32A7110C9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.jpg" alt="pastedImage_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As seen on picture above S32 Design Studio V1.1 is used and it writes value as word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25183i80022BE8E3132E54/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.jpg" alt="pastedImage_3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On picture above v1.2 is used and it can be seen that on same line of code it tries to write value as BYTE which results in MachineCheck IVOR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem can be solved by OR-ing value as:&amp;nbsp;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;STM_0.CR.R |= STM-&amp;gt;prescaler - 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but it is not readable as above solution.&lt;/P&gt;&lt;P&gt;Why is only prescaler value being written as BYTE and the rest are written as WORDs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688460#M1500</guid>
      <dc:creator>ivanjuresa</dc:creator>
      <dc:date>2017-07-07T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688461#M1501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ivan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reproduce your issue - but when I'm using unsigned char and int - in both cases is code working for me and disassembly uses word instructions - even with -O3 optimization. How is defined your STM-&amp;gt;prescaler variable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 08:23:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688461#M1501</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2017-07-10T08:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2 </title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688462#M1502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We are using -O1 optimisation but have also tried it on -O3. Same machine check is happening in both cases. Below is attached picture with STM structure.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26822i11CECAE6F295C9E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you sure you are using V1.2?&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 09:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688462#M1502</guid>
      <dc:creator>ivanjuresa</dc:creator>
      <dc:date>2017-07-10T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688463#M1503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using v. 1.2 - build number 170217. With your structure, -O1 and this source code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27251i14CC41957C025ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got &amp;nbsp;this disassembly and STM_0.CNT is counting without any exception.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27294iED7BD6FB14A9FE0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have installed all updates? (main menu bar -&amp;gt; help -&amp;gt; check for updates) Wich language dialect are you using? (i left the section in default settings).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:12:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688463#M1503</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2017-07-10T11:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2 </title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688464#M1504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using&amp;nbsp;Version: 1.2 and Build id: 170613. S32 is up to date. Language dialect is left blank. Optimisation is also on -O1.&lt;/P&gt;&lt;P&gt;I tried your code and it still tries to write it as byte.&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 11:39:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688464#M1504</guid>
      <dc:creator>ivanjuresa</dc:creator>
      <dc:date>2017-07-10T11:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688465#M1505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the 170613 version (I had some pre-release version) - and you are right - output code is using byte instruction also with unsigned int as a variable for prescaler storage or with direct number. Thank you for catching this. I'll create JIRA ticket S32DS team.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a temporary workaround - you can use OR or switch back to previous version. I'm not sure if this error is affecting other read/write operations with registers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688465#M1505</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2017-07-10T12:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2 </title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688466#M1506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your feedback. We&amp;nbsp;didn't get any strange behaviour from other drivers so hopefully its isolated case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 12:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688466#M1506</guid>
      <dc:creator>ivanjuresa</dc:creator>
      <dc:date>2017-07-10T12:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688467#M1507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one change in the default compiler settings in v1.2.&lt;/P&gt;&lt;P&gt;Strict volatile bitfields are not forced anymore by default for e200zX cores&lt;/P&gt;&lt;P&gt;I'd recommend you to add this compiler flag to your project settings:&lt;/P&gt;&lt;PRE&gt;-fstrict-volatile-bitfields

&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/24813i6D36397474DCB3C9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688467#M1507</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2020-11-02T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrading S32 Design Studio for Power Architecture from V1.1 to V1.2 </title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688468#M1508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working now. Jiri and Stanislav thank you for your help. I will mark Stanislav's answer as correct one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 06:34:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Upgrading-S32-Design-Studio-for-Power-Architecture-from-V1-1-to/m-p/688468#M1508</guid>
      <dc:creator>ivanjuresa</dc:creator>
      <dc:date>2017-07-11T06:34:06Z</dc:date>
    </item>
  </channel>
</rss>

