<?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 fcan_s32k_receive - Unrecognized function or variable 'mbd_s32k_fcan_receive_init' in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1717142#M8487</link>
    <description>&lt;P&gt;I have been successfully using the MBDB S32K1 4.3.0 add on, but it has now broke since I installed dSpace Configuration Desk&amp;nbsp;(Release 2022-B) which integrates with MATLAB SImulink.&lt;/P&gt;&lt;P&gt;For some reason, the FCAN Receive blocks now show question marks...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_0-1693911181371.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239573i74DFD17D663796D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johngreenjets_0-1693911181371.png" alt="johngreenjets_0-1693911181371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_1-1693911206565.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239574iB6BA5D528270A8E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_1-1693911206565.png" alt="johngreenjets_1-1693911206565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try to do an update (CTRL-D) or a build, I now get the following error...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_2-1693911396810.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239575i39836EB783D02750/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_2-1693911396810.png" alt="johngreenjets_2-1693911396810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I view the Mask Base of the block, the initialization tab seems to call the function 'mbd_s32k_fcan_receive_init'...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_3-1693911466455.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239576i87CBF6BB1DA73ACD/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_3-1693911466455.png" alt="johngreenjets_3-1693911466455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried reinstalling MBDB S32K1 4.3.0 and also tried running&amp;nbsp;mbd_s32k_path.m, but the problem still occurs.&lt;/P&gt;&lt;P&gt;If I run "which mbd_s32k_fcan_receive_init" from the MATLAB prompt it says it cannot be found.&lt;/P&gt;&lt;P&gt;Note: I am using the patch from this post which fixed a bug with the CAN extended ID...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869#&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869" target="_blank"&gt;M8460&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The blocks appear to display correctly in the library browser...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_4-1693911940951.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239577i94C26700330644A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_4-1693911940951.png" alt="johngreenjets_4-1693911940951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if I add the block from the library browser to the simulink model, it displays the question marks and I get the same error.&lt;/P&gt;&lt;P&gt;How can I fix this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 11:09:36 GMT</pubDate>
    <dc:creator>johngreenjets</dc:creator>
    <dc:date>2023-09-05T11:09:36Z</dc:date>
    <item>
      <title>fcan_s32k_receive - Unrecognized function or variable 'mbd_s32k_fcan_receive_init'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1717142#M8487</link>
      <description>&lt;P&gt;I have been successfully using the MBDB S32K1 4.3.0 add on, but it has now broke since I installed dSpace Configuration Desk&amp;nbsp;(Release 2022-B) which integrates with MATLAB SImulink.&lt;/P&gt;&lt;P&gt;For some reason, the FCAN Receive blocks now show question marks...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_0-1693911181371.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239573i74DFD17D663796D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johngreenjets_0-1693911181371.png" alt="johngreenjets_0-1693911181371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_1-1693911206565.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239574iB6BA5D528270A8E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_1-1693911206565.png" alt="johngreenjets_1-1693911206565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try to do an update (CTRL-D) or a build, I now get the following error...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_2-1693911396810.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239575i39836EB783D02750/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_2-1693911396810.png" alt="johngreenjets_2-1693911396810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I view the Mask Base of the block, the initialization tab seems to call the function 'mbd_s32k_fcan_receive_init'...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_3-1693911466455.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239576i87CBF6BB1DA73ACD/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_3-1693911466455.png" alt="johngreenjets_3-1693911466455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried reinstalling MBDB S32K1 4.3.0 and also tried running&amp;nbsp;mbd_s32k_path.m, but the problem still occurs.&lt;/P&gt;&lt;P&gt;If I run "which mbd_s32k_fcan_receive_init" from the MATLAB prompt it says it cannot be found.&lt;/P&gt;&lt;P&gt;Note: I am using the patch from this post which fixed a bug with the CAN extended ID...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869#&lt;/A&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1713869" target="_blank"&gt;M8460&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The blocks appear to display correctly in the library browser...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_4-1693911940951.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/239577i94C26700330644A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_4-1693911940951.png" alt="johngreenjets_4-1693911940951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, if I add the block from the library browser to the simulink model, it displays the question marks and I get the same error.&lt;/P&gt;&lt;P&gt;How can I fix this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 11:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1717142#M8487</guid>
      <dc:creator>johngreenjets</dc:creator>
      <dc:date>2023-09-05T11:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: fcan_s32k_receive - Unrecognized function or variable 'mbd_s32k_fcan_receive_init'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1720144#M8504</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216490"&gt;@johngreenjets&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know if the patch applied from this thread solved the reported issue as well?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1655647" target="_blank"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Extended-CAN-ID-not-working-UCANS32K146-development-board/m-p/1655647&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 07:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1720144#M8504</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2023-09-11T07:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: fcan_s32k_receive - Unrecognized function or variable 'mbd_s32k_fcan_receive_init'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1720159#M8505</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Marius&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The patch fixed the extended CAN ID bug (I marked the post as solved).&lt;/P&gt;&lt;P&gt;But there is this new issue with the FCAN receive blocks i.e. Unrecognized function or variable 'mbd_s32k_fcan_receive_init'.&lt;/P&gt;&lt;P&gt;I'm not sure yet whether the patch has cause this new issue, I'm going to play around with uninstalling and installing etc&lt;/P&gt;&lt;P&gt;I did notice that before the patch, the mask initialization calls the function 'mbd_s32k_fcan_receive'...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_0-1694418803084.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/240368iCEB583A86158DD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_0-1694418803084.png" alt="johngreenjets_0-1694418803084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whereas after the patch,&amp;nbsp;the mask initialization calls the function 'mbd_s32k_fcan_receive_init'...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_1-1694418898075.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/240369i6E571DC651818068/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_1-1694418898075.png" alt="johngreenjets_1-1694418898075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This seems to work after the patch has been installed, but&amp;nbsp; it appears that when MATLAB is restarted the blocks then show the 3 question marks and generates the error 'Unrecognized function or variable 'mbd_s32k_fcan_receive_init'&lt;/P&gt;&lt;P&gt;So that might be a clue ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 07:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1720159#M8505</guid>
      <dc:creator>johngreenjets</dc:creator>
      <dc:date>2023-09-11T07:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: fcan_s32k_receive - Unrecognized function or variable 'mbd_s32k_fcan_receive_init'</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1721098#M8510</link>
      <description>&lt;P&gt;I managed to find a work around.&lt;/P&gt;&lt;P&gt;In the following folder...&lt;/P&gt;&lt;P&gt;C:\MATLABAddOns\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mscripts\fcan&lt;/P&gt;&lt;P&gt;I made a copy of 'mbd_s32k_fcan_receive.p' and renamed the copy to 'mbd_s32k_fcan_receive_init.p' as shown in the screenshot below...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johngreenjets_0-1694512948730.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/240603iD15564DB313F2FA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="johngreenjets_0-1694512948730.png" alt="johngreenjets_0-1694512948730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This appears to have fixed the problem, including the the bug with the extended CAN ID.&lt;/P&gt;&lt;P&gt;The patch to fix the extended CAN ID seems to change the function call in the&amp;nbsp;&lt;SPAN&gt;the mask base of the FCAN receive block.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Before the patch, the initialization tab calls the function 'mbd_s32k_fcan_receive'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After the patch, the initialization tab calls the function 'mbd_s32k_fcan_receive_init' (when MATLAB has been restarted after installing the patch).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What I dont know is if there is a difference between the two functions ''mbd_s32k_fcan_receive' and&amp;nbsp;'mbd_s32k_fcan_receive_init' ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because the&amp;nbsp;'mbd_s32k_fcan_receive_init' file is not included in the patch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 10:08:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/fcan-s32k-receive-Unrecognized-function-or-variable-mbd-s32k/m-p/1721098#M8510</guid>
      <dc:creator>johngreenjets</dc:creator>
      <dc:date>2023-09-12T10:08:30Z</dc:date>
    </item>
  </channel>
</rss>

