Hello, I am trying out a simple PIL S32CT example with MBDT for S32K3** version 1.5.0 on MATLAB 2023b. The board I am working on is NXP S32K311EVB-Q100. Now when I tried Simulink example model, I get the following error in Simulink.
also, after checking the s32k3xx_pil_harness_s32ct_example_readme.html, I didn’t found my board under the hardware required instruction. Is that affect.
Knowing that I changed the processor package in the hardware board settings inside Simulink with no problem.
Please help me with this! Thank you in advance
Please provide guidance on how I can resolve this.
Thank you
For the processors our toolbox offers support for, MBDT delivers default configuration projects (in both EBT and S32CT), for ensuring an initial starting point in terms of hardware setup, i.e. peripherals, pins, and clocks configuration. These configurations are created based on the NXP's evaluation boards that we have used for development and testing.
When you selected the S32K311 processor inside the model's Hardware Settings, such a default configuration project, targeting S32K311 processor, was brought next to the model and used for the build process. However, since the S32K311-Q100EVB is not officially supported by MBDT for S32K3 1.5.0 (in terms that we do not provide a configuration tageting such an evaluation board), the UART component, necessary for PIL Serial communication, is not configured.
However, this is not a limitation, as you can customize this configuration project to target your hardware, by configuring the UART hardware instance, according to the board's schematic, pins, clocks, and interrupts, inside the .mex file. For a step by step tutorial on how this can be achieved, please check the following article
Moreover, I would like to mention that MBDT for S32K3 1.6.0, which will be released at the beginning of next year, will offer such a configuration for S32K311-Q100EVB and will have the application examples it delivers tested and validated on this hardware as well.
Please let us know if you encounter any issues in enabling an UART instance for establishing PIL communication on S32K311.
Regards,
Irina