Hello,
I am currently working on the S32K311 MCU using S32 Design Studio 3.6.2.
Could you please provide me with a UART example project (basic transmit/receive demonstration) compatible with this setup?
Having this reference will help me get started with communication on S32K311 and build further applications.
Hello @Kaushal9511 ,
Thank you for the update.
To help isolate the issue, I recommend performing a simple loopback test — connect the TX and RX pins together and send a character. If reception works in this configuration, the issue is likely external (e.g., wiring, terminal settings, or signal integrity).
Best regards,
Pavel
Hello Pavel,
Thank you for your detailed guidance on reusing the LpuartFlexio_Uart_Ip_Example_S32K344 project for the S32K311. I followed your steps and was able to successfully transmit data using LPUART.
However, I am facing an issue with receiving data:
Could you please advise me on the correct configuration or additional steps required to enable UART reception on S32K311?
Hello @Kaushal9511 ,
I'm assuming you're using S32K3 RTD 6.0.0. Unfortunately, there are no pre-existing UART examples specifically for S32K311, but you can easily create one by reusing an example from a similar device. Here's a step-by-step guide:
Create a project from an existing example that uses the UART stack, e.g. LpuartFlexio_Uart_Ip_Example_S32K344
Open the Configuration Tool, resolve any issues, and build the project.
Now, create a new application project for S32K311 (make sure to attach the RTD version).
Open the Configuration Tool for the new project, resolve any issues, and click Update Code.
Stay in the Peripherals tab.
Go to File → Import → S32 Configuration Tools → Import Configuration (*.mex)
Some errors will appear - this is expected.
In the Peripherals tab, resolve all issues (e.g. missing drivers -> Manage SDK Components).
Click on the Pins tab. When prompted to switch the configuration to S32K311, click Yes.
Adjust the Clocks to meet the S32K311 requirements (refer to the S32K3 Reference Manual for details).
Click Update Code again.
Return to the C/C++ editor.
Copy the main.c file from the original example LpuartFlexio_Uart_Ip_Example_S32K344 into your new project.
Comment out or remove the lines with Exit_Example and #include "check_example.h"
This approach allows you to reuse existing examples even for devices that are not directly supported by preconfigured demos.
Best regards,
Pavel
I can't attach any SDK (RTD) version.
1. First, I selected the S32K348 MCU, which lacks RTD examples, as a new application project.
2. During the project creation process, I was unable to select an SDK at the section shown in the image above.
3. I also could not find a way to add one later, even after creating the project.
How can I attach an RTD?
Hello @Penta7 ,
You need to select correct GCC version based on S32K3 RTD Release Note. It has been discussed e.g. in this thread:
[S32DS 3.6.7] S32K1xx RTD 3.0.0 not detected when creating new project
Best regards,
Pavel