Need clarification on UART module name and clock enable method on S32K324/S32K344

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

Need clarification on UART module name and clock enable method on S32K324/S32K344

488 Views
minjaekang99
Contributor I

Hello,

I am working with the S32K324 evaluation board and using the S32K344-based HSE Demo project (S32K3XX_demo_app).
I am trying to initialize UART, but the header file provided in the demo (S32K344.h) does not contain any UART-related definitions.

The following symbols do NOT exist in the header:
- LPUART1 / LPUART0~4
- PCC_LPUARTx
- LPUART_CTRL_*_MASK, LPUART_STAT_*_MASK
- Baud register macros (OSR/SBR)

In the Reference Manual (Table 263), I can only see entries like “Low Power UART0~4” under Partition 2 clock mapping,
but there is no information about the actual peripheral module name or register block associated with these UARTs.

**I need clarification on the following:**

1. What is the exact UART peripheral name used on S32K324/S32K344?
(Is it LPUART, LINFlexD, FLEXIO-UART, or something else?)

2. What is the correct base address and register structure for this UART module?

3. How should I properly enable the UART clock?
- Which MC_ME COFB REQ bit corresponds to UART?
- Or should the clock be enabled via PCC instead?

4. Which SIUL2 MSCR pins correspond to UART TX/RX, and what ALT/SSS value should be used?

The S32K344.h header in the demo project contains no UART definitions, so I am unsure which UART module to use or how to enable it.
Any guidance or an official reference to the correct UART module and registers would be appreciated.

Thank you.

0 Kudos
Reply
2 Replies

390 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

there are individual header files for each peripheral 

1) IP_LPUART_x (IP_LPUART_0,...), IP_FLEXIO. See respective header files
2)  This is specified in the device RM, in each peripheral chapter. Also check headers S32K344_LPUART.h, S32K344_FLEXIO.h etc
3) check Table 263. MC_ME partition peripheral mapping and clock control of the RM
4) not sure of the module do you refer to. It can be it is available on more pins. Refer to S32K344_IO Signal Table sheet of S32K344_IOMUX excel file attached to the RM. chapter 4
Signal Multiplexing describe how to work with IO signal table.

BR, Petr

 

 

0 Kudos
Reply

398 Views
minjaekang99
Contributor I

Can anyone answer this question?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2245546%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENeed%20clarification%20on%20UART%20module%20name%20and%20clock%20enable%20method%20on%20S32K324%2FS32K344%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2245546%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20working%20with%20the%20S32K324%20evaluation%20board%20and%20using%20the%20S32K344-based%20HSE%20Demo%20project%20(S32K3XX_demo_app).%3CBR%20%2F%3EI%20am%20trying%20to%20initialize%20UART%2C%20but%20the%20header%20file%20provided%20in%20the%20demo%20(S32K344.h)%20does%20not%20contain%20any%20UART-related%20definitions.%3C%2FP%3E%3CP%3EThe%20following%20symbols%20do%20NOT%20exist%20in%20the%20header%3A%3CBR%20%2F%3E-%20LPUART1%20%2F%20LPUART0~4%3CBR%20%2F%3E-%20PCC_LPUARTx%3CBR%20%2F%3E-%20LPUART_CTRL_*_MASK%2C%20LPUART_STAT_*_MASK%3CBR%20%2F%3E-%20Baud%20register%20macros%20(OSR%2FSBR)%3C%2FP%3E%3CP%3EIn%20the%20Reference%20Manual%20(Table%20263)%2C%20I%20can%20only%20see%20entries%20like%20%E2%80%9CLow%20Power%20UART0~4%E2%80%9D%20under%20Partition%202%20clock%20mapping%2C%3CBR%20%2F%3Ebut%20there%20is%20no%20information%20about%20the%20actual%20peripheral%20module%20name%20or%20register%20block%20associated%20with%20these%20UARTs.%3C%2FP%3E%3CP%3E**I%20need%20clarification%20on%20the%20following%3A**%3C%2FP%3E%3CP%3E1.%20What%20is%20the%20exact%20UART%20peripheral%20name%20used%20on%20S32K324%2FS32K344%3F%3CBR%20%2F%3E(Is%20it%20LPUART%2C%20LINFlexD%2C%20FLEXIO-UART%2C%20or%20something%20else%3F)%3C%2FP%3E%3CP%3E2.%20What%20is%20the%20correct%20base%20address%20and%20register%20structure%20for%20this%20UART%20module%3F%3C%2FP%3E%3CP%3E3.%20How%20should%20I%20properly%20enable%20the%20UART%20clock%3F%3CBR%20%2F%3E-%20Which%20MC_ME%20COFB%20REQ%20bit%20corresponds%20to%20UART%3F%3CBR%20%2F%3E-%20Or%20should%20the%20clock%20be%20enabled%20via%20PCC%20instead%3F%3C%2FP%3E%3CP%3E4.%20Which%20SIUL2%20MSCR%20pins%20correspond%20to%20UART%20TX%2FRX%2C%20and%20what%20ALT%2FSSS%20value%20should%20be%20used%3F%3C%2FP%3E%3CP%3EThe%20S32K344.h%20header%20in%20the%20demo%20project%20contains%20no%20UART%20definitions%2C%20so%20I%20am%20unsure%20which%20UART%20module%20to%20use%20or%20how%20to%20enable%20it.%3CBR%20%2F%3EAny%20guidance%20or%20an%20official%20reference%20to%20the%20correct%20UART%20module%20and%20registers%20would%20be%20appreciated.%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E