<?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 Error .mexw64 is not a valid Win32 application in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Error-mexw64-is-not-a-valid-Win32-application/m-p/1074568#M4641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have a Windows 10 PC (64-bit operating system, x64-based processor) and I followed the Model-Based Design Toolbox MPC57xx Series Quick Start Guide for running the Hello World example on the DEVKIT MPC5744P. I use the current version of the toolbox, i.e. 4.2.0.&lt;BR /&gt;When I try to build the Simulink model, i.e. Step 3 of Section 2.4 I get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error while obtaining sizes from MEX S-function 'uart_mpc_config' in 'uart_hello_world_mpc574xP/UART_Config'.&lt;BR /&gt;Caused by:&lt;BR /&gt;Invalid MEX-file 'C:\Users\username\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64': C:\Users\&lt;SPAN style="background-color: #f6f6f6;"&gt;username&lt;/SPAN&gt;\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64 is not a valid Win32 application..&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;By a short research, I have figured out that it might have to do with some libraries (DLL), but I have thought that they are installed during the installation of S32_Design_Studio by additionally installing&amp;nbsp;Visual Studio redistributables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to specify the compiler path explicitly by the environment variable S32DS_PA_TOOL as described in the quick start guide. Then the following error occurs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;Error while obtaining sizes from MEX S-function 'uart_mpc_config' in 'uart_hello_world_mpc574xP/UART_Config'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invalid MEX-file 'C:\Users\&lt;SPAN style="background-color: #f6f6f6;"&gt;username&lt;/SPAN&gt;\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64': The specified module&amp;nbsp;could not be found.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There still seems to be a library problem...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;BR /&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2020 07:13:21 GMT</pubDate>
    <dc:creator>patrick_schmid</dc:creator>
    <dc:date>2020-08-28T07:13:21Z</dc:date>
    <item>
      <title>Error .mexw64 is not a valid Win32 application</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Error-mexw64-is-not-a-valid-Win32-application/m-p/1074568#M4641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;I have a Windows 10 PC (64-bit operating system, x64-based processor) and I followed the Model-Based Design Toolbox MPC57xx Series Quick Start Guide for running the Hello World example on the DEVKIT MPC5744P. I use the current version of the toolbox, i.e. 4.2.0.&lt;BR /&gt;When I try to build the Simulink model, i.e. Step 3 of Section 2.4 I get the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error while obtaining sizes from MEX S-function 'uart_mpc_config' in 'uart_hello_world_mpc574xP/UART_Config'.&lt;BR /&gt;Caused by:&lt;BR /&gt;Invalid MEX-file 'C:\Users\username\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64': C:\Users\&lt;SPAN style="background-color: #f6f6f6;"&gt;username&lt;/SPAN&gt;\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64 is not a valid Win32 application..&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;By a short research, I have figured out that it might have to do with some libraries (DLL), but I have thought that they are installed during the installation of S32_Design_Studio by additionally installing&amp;nbsp;Visual Studio redistributables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to specify the compiler path explicitly by the environment variable S32DS_PA_TOOL as described in the quick start guide. Then the following error occurs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;Error while obtaining sizes from MEX S-function 'uart_mpc_config' in 'uart_hello_world_mpc574xP/UART_Config'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invalid MEX-file 'C:\Users\&lt;SPAN style="background-color: #f6f6f6;"&gt;username&lt;/SPAN&gt;\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code\mbdtbx_mpc\blocks\uart\uart_mpc_config.mexw64': The specified module&amp;nbsp;could not be found.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There still seems to be a library problem...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;BR /&gt;Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2020 07:13:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Error-mexw64-is-not-a-valid-Win32-application/m-p/1074568#M4641</guid>
      <dc:creator>patrick_schmid</dc:creator>
      <dc:date>2020-08-28T07:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error .mexw64 is not a valid Win32 application</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Error-mexw64-is-not-a-valid-Win32-application/m-p/1133155#M4955</link>
      <description>&lt;P&gt;I fixed the problem by installing Visual Studio Community 2019 and thus implicitly install&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Microsoft Visual C++ 2015-2019 Redistributable (x64)&lt;/LI&gt;&lt;LI&gt;Microsoft Visual C++ 2015-2019 Redistributable (x86)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Consequently, it might be helpful to install these packages already with S32 Design Studio in future releases.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 15:14:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Error-mexw64-is-not-a-valid-Win32-application/m-p/1133155#M4955</guid>
      <dc:creator>patrick_schmid</dc:creator>
      <dc:date>2020-09-01T15:14:24Z</dc:date>
    </item>
  </channel>
</rss>

