<?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>S32K中的主题 Re: S32K144EVB PWM Example getting errors in generated header and source file</title>
    <link>https://community.nxp.com/t5/S32K/S32K144EVB-PWM-Example-getting-errors-in-generated-header-and/m-p/1818745#M32324</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create new example as well, open mex file, click update code then changed &lt;SPAN&gt;Pwm_channel_0 to 0U and&amp;nbsp;&lt;/SPAN&gt;build project, no errors appeared, project can be compiled. So not sure what you did/changed.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 12:09:35 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2024-02-29T12:09:35Z</dc:date>
    <item>
      <title>S32K144EVB PWM Example getting errors in generated header and source file</title>
      <link>https://community.nxp.com/t5/S32K/S32K144EVB-PWM-Example-getting-errors-in-generated-header-and/m-p/1814325#M32024</link>
      <description>&lt;P&gt;Hi Community Members,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I'm working on the PWM example from S32K1 AUTOSAR 4.4 RTD 1.0.1 D2202 Example projects. When i use PAL based example its working fine but when I use MCAL based example it's throwing me errors in generated header/source file. Please provide me with a solution to work in MCAL based projects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For Pwm_example_S32K144 I've made changes in main file for&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Initialize the Mcu driver */&lt;BR /&gt;Mcu_Init(NULL_PTR); //0 Macro Expansion&lt;/P&gt;&lt;P&gt;/* Initialize the clock tree */&lt;BR /&gt;Mcu_InitClock(McuClockSettingConfig_0); //0U Macro Expansion&lt;/P&gt;&lt;P&gt;/* Apply a mode configuration */&lt;BR /&gt;Mcu_SetMode(McuModeSettingConf_0);&amp;nbsp;//0U Macro Expansion&lt;/P&gt;&lt;P&gt;/* Set new period and duty cycle*/&lt;BR /&gt;Pwm_SetPeriodAndDuty(0U, 0x5000, 0x2000);&lt;/P&gt;&lt;P&gt;/* Increasing LED brightness, using Pwm_SetDutyCycle*/&lt;BR /&gt;Pwm_SetDutyCycle(0U, 0x7000);&lt;/P&gt;&lt;P&gt;/* Decreasing LED brightness, using Pwm_SetDutyCycle*/&lt;BR /&gt;Pwm_SetDutyCycle(0U, 0x200);&lt;/P&gt;&lt;P&gt;since 0U is the macro expansion for the Pwm_channel_0, NULL_PTR , . But there are other errors for&amp;nbsp;&lt;/P&gt;&lt;P&gt;const Mcu_DemConfigType Mcu_Dem_Config =&lt;BR /&gt;{&lt;BR /&gt;/* DEM error reporting MCU_E_TIMEOUT_FAILURE */&lt;BR /&gt;{(uint32)STD_OFF, 0U},&lt;BR /&gt;/* DEM error reporting MCU_E_INVALIDFXOSC_CONFIG */&lt;BR /&gt;{(uint32)STD_OFF, 0U},&lt;BR /&gt;/* DEM error reporting MCU_E_CLOCKMUXSWITCH_FAILURE */&lt;BR /&gt;{(uint32)STD_OFF, 0U},&lt;BR /&gt;/* DEM error reporting MCU_E_CLOCK_FAILURE */&lt;BR /&gt;{(uint32)STD_OFF, 0U},&lt;BR /&gt;/* DEM error reporting MCU_E_SWITCHMODE_FAILURE */&lt;BR /&gt;{(uint32)STD_OFF, 0U}&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;these in Mcu_Cfg.c. STD_OFF have macro expansion 0x00 in StandardTypes.h generated header file. and there are other errors same as this in other generated header/source files.&lt;/P&gt;&lt;P&gt;Since it's generated code I'm hesitating to do changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Screenshots has been attached. Any help or lead would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SDRS&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 08:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144EVB-PWM-Example-getting-errors-in-generated-header-and/m-p/1814325#M32024</guid>
      <dc:creator>Coding_Torque-SDRS</dc:creator>
      <dc:date>2024-02-23T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144EVB PWM Example getting errors in generated header and source file</title>
      <link>https://community.nxp.com/t5/S32K/S32K144EVB-PWM-Example-getting-errors-in-generated-header-and/m-p/1818745#M32324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create new example as well, open mex file, click update code then changed &lt;SPAN&gt;Pwm_channel_0 to 0U and&amp;nbsp;&lt;/SPAN&gt;build project, no errors appeared, project can be compiled. So not sure what you did/changed.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 12:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144EVB-PWM-Example-getting-errors-in-generated-header-and/m-p/1818745#M32324</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-02-29T12:09:35Z</dc:date>
    </item>
  </channel>
</rss>

