Hi @dashe ,
From the S32DS screenshot you attached I notice 2 issues that may cause the problem you are currently facing and I am going to elaborate on each of them as it follows:
1. S32K344.h file cannot be found.
This file is part of the RTD (Real Time Drivers). MBDT uses RTD for configuring and controlling the MCU peripherals and the MBDT blocks generate code on top of the RTD APIs. Since MBDT delivers RTD within its package, the Simulink build process knows where to look for such general RTD files, like the S32K344.h.
However, when exporting and importing a project in the IDE, we are moving to a different applications development environment. Hence, in this case, since S32K344.h is not found, my guess would be that the RTD package is not installed inside S32DS. Therefore, first of all, could you please check this by accessing the Help menu -> S32DS Extensions and Updates?
If the package is not there, you just need to click on the Add Update Sites button and include there the .zip file that you can download from nxp.com. You can find it under Automotive SW - S32K3 Standard Software / Automotive SW - S32K3 - Real-Time Drivers for Cortex-M / S32K3 Real Time Drivers Version 1.0.0.

Please also note that the versions I am using are:
- MBDT 1.1.0 (using the integrated RTD 2021_10)
- S32DS v3.4, where I have SW32K3_RTD_4.4_1.0.0_DS_updatesite_D2110 installed.
2. Inside the project imported in S32DS, the generate folder is missing.
The generate folder contains the hardware components configuration code, generated based on the configuration project that is associated to the model. The MBDT for S32K3 integrates the usage of configuration tools (S32 Config Tools and EB Tresos), specialized on setting and initializing the hardware used by an application.
If you open one of the MBDT Simulink examples, you will see that either a .mex file or a TresosProject folder will be brought next to the model, based on the selected Configuration Tool, which can be set from the model's Hardware Settings. These files represent the default configuration MBDT provides for hardware initializing of all the components it provides support for. The MBDT blocks read the settings of the configuration project associated to the model and display in their masks the available options for implementing the logic of your design.
In addition to that, a modelName_Config folder will also be brought next to the model. This one contains the drivers, linker files, basically all the necessary hardware aware sources. During the Simulink build process, all these files are cross compiled with the Simulink application generated code, and with the hardware configuration project generated code into an executable file automatically downloaded on the MCU.
We provide application examples that use both EB Tresos and S32CT and you can find them under the S32K3_Examples folder.
Therefore, I would recommend you to test this export functionality on one of the models MBDT provides, as the steps from this post indicate. In this way, we can validate your current MBDT setup. Please note that if the Simulink model does not compile successfully (if executable files are not generated when the building process ends), the export functionality won't behave as expected either. Hence, please report to us any issues that may occur during the Simulink model build process.
You can then export the model's code as a S32DS project using the Export functionality form the Hardware Settings, and its import into the IDE should display the complete structure of the project.
Hope this helps,
Irina