2174143_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

タグ(1)
評価なし
バージョン履歴
最終更新日:
‎11-21-2025 06:17 AM
更新者: