2174143_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2174143_en-US

2174143_en-US

REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

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.

Re: REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

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

Re: REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

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:

  • Transmission works correctly and I can see the output on the terminal.
  • Reception does not seem to work, and no data is being captured by the MCU.

Could you please advise me on the correct configuration or additional steps required to enable UART reception on S32K311?

Re: REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

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:

  1. Create a project from an existing example that uses the UART stack, e.g. LpuartFlexio_Uart_Ip_Example_S32K344

  2. Open the Configuration Tool, resolve any issues, and build the project.

  3. Now, create a new application project for S32K311 (make sure to attach the RTD version).

  4. Open the Configuration Tool for the new project, resolve any issues, and click Update Code.

  5. Stay in the Peripherals tab.

  6. Go to File → Import → S32 Configuration Tools → Import Configuration (*.mex)

    • Select the .mex file from the previous project, e.g your_workspace\LpuartFlexio_Uart_Ip_Example_S32K344\LpuartFlexio_Uart_Ip_Example.mex
    • Choose "Import the configuration as a new one"
    • Click Finish
  7. Some errors will appear - this is expected.

  8. In the Peripherals tab, resolve all issues (e.g. missing drivers -> Manage SDK Components).

  9. Click on the Pins tab. When prompted to switch the configuration to S32K311, click Yes.

  10. Adjust the Clocks to meet the S32K311 requirements (refer to the S32K3 Reference Manual for details).

  11. Click Update Code again.

  12. Return to the C/C++ editor.

  13. Copy the main.c file from the original example LpuartFlexio_Uart_Ip_Example_S32K344  into your new project.

  14. Comment out or remove the lines with Exit_Example and #include "check_example.h"

 
  1. Build the project.

This approach allows you to reuse existing examples even for devices that are not directly supported by preconfigured demos. 

Best regards,

Pavel

Re: REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

I can't attach any SDK (RTD) version.

1. First, I selected the S32K348 MCU, which lacks RTD examples, as a new application project.

Penta7_1-1782282299315.png

2. During the project creation process, I was unable to select an SDK at the section shown in the image above.

Penta7_2-1782282409465.png

3. I also could not find a way to add one later, even after creating the project.

How can I attach an RTD?

Re: REQUEST TO PROVIDE ME UART EAMPLE PROJECT FOR S32K311 USING S32 DS3.6.2

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

Tags (1)
No ratings
Version history
Last update:
2 hours ago
Updated by: