<?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>Model-Based Design Toolbox (MBDT)のトピックProblems with Hardware Triggers on S32K358</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problems-with-Hardware-Triggers-on-S32K358/m-p/2247237#M10530</link>
    <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;I'm having problems with Hw trigger functionality in a S32K358 custom board.&lt;/P&gt;&lt;P&gt;I'm using MBDT v1.5 in matlab 2024.&lt;/P&gt;&lt;P&gt;I've configured 3 cahnnels of EMIOS_1 (ch_9, ch_11, ch_19) in order to have 3 pwm signals and i've configured them as EMIOS_PWM_IP_MODE_OPWMT to enable trigger generation.&lt;/P&gt;&lt;P&gt;In AdcHwTrigger i've configured 3 Hardware Triggers with the correspondig BTCU sources and 3 ADC_1 groups with one injected channel each.&lt;BR /&gt;These cahnnels are latched on with the corresonding Hw Trigger as well. The ADC_1 works with interrupt method.&lt;/P&gt;&lt;P&gt;I've configured also the Platform ISR and MCU Clock correctly.&lt;/P&gt;&lt;P&gt;In the simulink model i enabled the Notifications and Hw Triggers in a subsystem called every 50ms by a stateflow chart. Once the adc channel is converted the application calls the&lt;BR /&gt;Interrupt Hw callback in which disables the Notification and the relative Hw Trigger for that group.&lt;BR /&gt;This is done for each of the 3 groups.&lt;/P&gt;&lt;P&gt;In this way i have 3 pwm signals that starts at the same time with the same periodicity (200Hz in my case), so based on what i've read on RM (64.3.1.9 Priority of simultaneous triggers)&lt;BR /&gt;i expect that the BCTU receives 3 triggers at the same time and perform the conversion of the adc channel attached to the highest priority trigger (BCTU_EMIOS_1_9 in my case)&lt;BR /&gt;while the others (BCTU_EMIOS_1_11 and BCTU_EMIOS_1_19) stay pending waiting for their turn to access ADC_1 and perform conversion as well.&lt;BR /&gt;When the conversion related to BCTU_EMIOS_1_9 trigger is performed i expect that his trigger would be disabled in the interrupt callback and the second pending trigger (BCTU_EMIOS_1_11 in my case)&lt;BR /&gt;starts the conversion...&lt;/P&gt;&lt;P&gt;Unfortunately i couldn't see this behavior… I only see that it performs the convertion of the adc attached to the highest priority trigger (BCTU_EMIOS_1_9 in my case),&lt;BR /&gt;ignoring the others.&lt;/P&gt;&lt;P&gt;Am i doing something wrong or misunderstanding something? How could i do to have the behavior descripted above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the mex file&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Simon&lt;/P&gt;</description>
    <pubDate>Mon, 24 Nov 2025 11:06:02 GMT</pubDate>
    <dc:creator>simon98</dc:creator>
    <dc:date>2025-11-24T11:06:02Z</dc:date>
    <item>
      <title>Problems with Hardware Triggers on S32K358</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problems-with-Hardware-Triggers-on-S32K358/m-p/2247237#M10530</link>
      <description>&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;I'm having problems with Hw trigger functionality in a S32K358 custom board.&lt;/P&gt;&lt;P&gt;I'm using MBDT v1.5 in matlab 2024.&lt;/P&gt;&lt;P&gt;I've configured 3 cahnnels of EMIOS_1 (ch_9, ch_11, ch_19) in order to have 3 pwm signals and i've configured them as EMIOS_PWM_IP_MODE_OPWMT to enable trigger generation.&lt;/P&gt;&lt;P&gt;In AdcHwTrigger i've configured 3 Hardware Triggers with the correspondig BTCU sources and 3 ADC_1 groups with one injected channel each.&lt;BR /&gt;These cahnnels are latched on with the corresonding Hw Trigger as well. The ADC_1 works with interrupt method.&lt;/P&gt;&lt;P&gt;I've configured also the Platform ISR and MCU Clock correctly.&lt;/P&gt;&lt;P&gt;In the simulink model i enabled the Notifications and Hw Triggers in a subsystem called every 50ms by a stateflow chart. Once the adc channel is converted the application calls the&lt;BR /&gt;Interrupt Hw callback in which disables the Notification and the relative Hw Trigger for that group.&lt;BR /&gt;This is done for each of the 3 groups.&lt;/P&gt;&lt;P&gt;In this way i have 3 pwm signals that starts at the same time with the same periodicity (200Hz in my case), so based on what i've read on RM (64.3.1.9 Priority of simultaneous triggers)&lt;BR /&gt;i expect that the BCTU receives 3 triggers at the same time and perform the conversion of the adc channel attached to the highest priority trigger (BCTU_EMIOS_1_9 in my case)&lt;BR /&gt;while the others (BCTU_EMIOS_1_11 and BCTU_EMIOS_1_19) stay pending waiting for their turn to access ADC_1 and perform conversion as well.&lt;BR /&gt;When the conversion related to BCTU_EMIOS_1_9 trigger is performed i expect that his trigger would be disabled in the interrupt callback and the second pending trigger (BCTU_EMIOS_1_11 in my case)&lt;BR /&gt;starts the conversion...&lt;/P&gt;&lt;P&gt;Unfortunately i couldn't see this behavior… I only see that it performs the convertion of the adc attached to the highest priority trigger (BCTU_EMIOS_1_9 in my case),&lt;BR /&gt;ignoring the others.&lt;/P&gt;&lt;P&gt;Am i doing something wrong or misunderstanding something? How could i do to have the behavior descripted above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the mex file&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 11:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Problems-with-Hardware-Triggers-on-S32K358/m-p/2247237#M10530</guid>
      <dc:creator>simon98</dc:creator>
      <dc:date>2025-11-24T11:06:02Z</dc:date>
    </item>
  </channel>
</rss>

