<?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 S32K144 with Function to call low level driver in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1371250#M6696</link>
    <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to trial some basic software of LED drive for calling header file of S32K144.&lt;/P&gt;&lt;P&gt;I have tried follow below thread to implement, then the compilation was success.&lt;/P&gt;&lt;P&gt;However, the LED does not show.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004&lt;/A&gt;&lt;BR /&gt;The Simulink have 2 blocks for this purpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) LED_Initialization : Setting up GPIO direction&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function LED_Initialization&lt;/P&gt;&lt;P&gt;% TODO: Update the bccPath with your project full path&lt;BR /&gt;bccPath = coder.const('C:\SVN_Checkout\MATLAB\devkit_S32K144_TICK\src\led');&lt;BR /&gt;coder.updateBuildInfo('addSourcePaths', bccPath);&lt;/P&gt;&lt;P&gt;if( coder.target( 'Rtw' ) )&lt;BR /&gt;%% Adding header information to the generated code&lt;BR /&gt;coder.cinclude('led_peripheries.h');&lt;BR /&gt;coder.cinclude('led_mbdt.h');&lt;/P&gt;&lt;P&gt;%% Adding source files to MakeFile&lt;BR /&gt;coder.updateBuildInfo( 'addSourceFiles', 'led_peripheries.c' );&lt;BR /&gt;coder.updateBuildInfo( 'addSourceFiles', 'led_mbdt.c' );&lt;/P&gt;&lt;P&gt;%% Initializing the BCC driver&lt;BR /&gt;coder.ceval('MBD_LED_Initialization');&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;2) LED_On : Write GPIO to be "LOW" for pull-down "RED LED" at PTD15&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function LED_On&lt;/P&gt;&lt;P&gt;if( coder.target( 'Rtw' ) )&lt;/P&gt;&lt;P&gt;coder.ceval('MBD_LED_On');&lt;/P&gt;&lt;P&gt;end&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Can you help advising which parts of code written wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;Narudol T.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 10:32:46 GMT</pubDate>
    <dc:creator>Narudol-T</dc:creator>
    <dc:date>2021-11-15T10:32:46Z</dc:date>
    <item>
      <title>S32K144 with Function to call low level driver</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1371250#M6696</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to trial some basic software of LED drive for calling header file of S32K144.&lt;/P&gt;&lt;P&gt;I have tried follow below thread to implement, then the compilation was success.&lt;/P&gt;&lt;P&gt;However, the LED does not show.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-Battery-Management/ta-p/1119004&lt;/A&gt;&lt;BR /&gt;The Simulink have 2 blocks for this purpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) LED_Initialization : Setting up GPIO direction&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function LED_Initialization&lt;/P&gt;&lt;P&gt;% TODO: Update the bccPath with your project full path&lt;BR /&gt;bccPath = coder.const('C:\SVN_Checkout\MATLAB\devkit_S32K144_TICK\src\led');&lt;BR /&gt;coder.updateBuildInfo('addSourcePaths', bccPath);&lt;/P&gt;&lt;P&gt;if( coder.target( 'Rtw' ) )&lt;BR /&gt;%% Adding header information to the generated code&lt;BR /&gt;coder.cinclude('led_peripheries.h');&lt;BR /&gt;coder.cinclude('led_mbdt.h');&lt;/P&gt;&lt;P&gt;%% Adding source files to MakeFile&lt;BR /&gt;coder.updateBuildInfo( 'addSourceFiles', 'led_peripheries.c' );&lt;BR /&gt;coder.updateBuildInfo( 'addSourceFiles', 'led_mbdt.c' );&lt;/P&gt;&lt;P&gt;%% Initializing the BCC driver&lt;BR /&gt;coder.ceval('MBD_LED_Initialization');&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;2) LED_On : Write GPIO to be "LOW" for pull-down "RED LED" at PTD15&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;function LED_On&lt;/P&gt;&lt;P&gt;if( coder.target( 'Rtw' ) )&lt;/P&gt;&lt;P&gt;coder.ceval('MBD_LED_On');&lt;/P&gt;&lt;P&gt;end&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Can you help advising which parts of code written wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;Narudol T.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 10:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1371250#M6696</guid>
      <dc:creator>Narudol-T</dc:creator>
      <dc:date>2021-11-15T10:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 with Function to call low level driver</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1371251#M6697</link>
      <description>&lt;P&gt;Add more pictures.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 10:33:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1371251#M6697</guid>
      <dc:creator>Narudol-T</dc:creator>
      <dc:date>2021-11-15T10:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 with Function to call low level driver</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1962518#M9564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/129276"&gt;@Narudol-T&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have the same needs as you.&lt;/P&gt;&lt;P&gt;I need to implement the LED function through a custom function.&lt;/P&gt;&lt;P&gt;Have the issues you encountered been resolved?&lt;/P&gt;&lt;P&gt;If so, how did you solve it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:40:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K144-with-Function-to-call-low-level-driver/m-p/1962518#M9564</guid>
      <dc:creator>SuperBeginner</dc:creator>
      <dc:date>2024-09-26T08:40:36Z</dc:date>
    </item>
  </channel>
</rss>

