Hello @agus_idiada
Please find attached the .mex file with no errors. I have tested that when pressing the Update Code button it generates successfully configuration code, and I would like to add some comments on the problems you were encountering.
As a general mention, the process of migrating configurations from EB Tresos to S32 Configuration Tools is not completely automated. This means that, even if the .epc files are imported inside a .mex file, some manual changes must also be made to ensure a configuration without any errors.
For navigating to the setting that causes an error to be displayed in the Problems view, you could double click on that particular issue and the GUI will open the specific configuration tab which has the item which is not configured as expected. Hovering on the error provides details on what is expected from the drivers side. So, in the future, please note that this process could help you identify the cause of the errors.
What I have done, by following this approach, is described below:
1. I have removed the I2C, LIN, ICU and CAN components as they are not configured in the EB Tresos project since not being used by the demo. As the MCU and MCL components had a different configuration than the default one provided by the toolbox, some settings for the components in discussion were missing (e.g Lin peripheral reference clock, which is not configured in MCU, I2C FlexIO channels, which need to be enabled in MCL - these are just two examples).
2. Since ADC_DMA is enabled for the AdcHwUnits 3 and 4, the tool requires a DMA Channel to be enabled in the configuration as well. As this constraint seems to not be implemented by the drivers inside the EB Tresos tool, I will kindly ask
@Vincent_Deng to provide more information here, on which channel should be used for each of the configured SDADC instances. For now, I have just enabled them to fix the errors
3. Mcu component settings, inside the S32CT environment, need to match the ones enabled inside the Clocks Tool. Since Mcu component was imported from the EB Tresos project, containing the settings required by the application, I have updated the Clocks Tool settings to match the ones in Mcu. For performing this, you could check the faulty settings in the Mcu component, then go to the Clocks Tool and update them accordingly there. Modifications that were required imply:
- Change Clock Sources - this can be done my double clicking on the corresponding clock divider and choosing the appropriate source
- Enable Clock Sources dividers - by double clicking on the corresponding divider block and choosing the appropriate option from the right side options
This Search bar helps you to find the necessary MUXes and settings inside the Clocks Tool.
Please let us know if this configuration works on your setup as well.
Thank you,
Irina