SPI limitation variant management in PCS

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

SPI limitation variant management in PCS

292 Views
hafifi
Contributor II

Hello NXP team,

I'm facing limitation in variant management when configure PCS identifier between two variant so Can you please let me know which RTD package fix this limitation to be PCS support variant management or workaround to fix that ? 

I'm using RTD package:

S32K3_RTD_4_0_0_P25_D2406_ASR_REL_4_7_REV_0000_20240620
Sw Versoin : 4.0.0
 

Thanks

Hossam Afifi

0 Kudos
Reply
8 Replies

120 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hafifi

If possible, I would appreciate it if you could describe your problem more clearly.

I'm guessing you want to set multiple PCS, right?

If that's the case, I've thought of two methods:

1.First

2025-11-07_10-12-49.png

 

2025-11-07_10-16-30.png

2.Second.

Please refer to the document: User Manual for S32K3_S32M27x SPI Driver

2025-11-07_10-18-11.png

 

0 Kudos
Reply

262 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hafifi

Could you please clarify your question regarding the PCS identifier and variant management?
I'm not fully sure I understand the limitation you're facing. 
If you could describe the exact issue or error you're encountering, I’ll be happy to help you find the right RTD version or workaround.

0 Kudos
Reply

235 Views
hafifi
Contributor II

Hi Senlent

Thank you for reply.

I need to write in this register TCR bit 26:24 but when i tried writing  it the SW raised exception handler, Could you please explain this behavior ? 

hafifi_0-1762376254488.png

Thanks

hafifi

 

0 Kudos
Reply

209 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hafifi

There are some considerations when operating this register.

1.

Senlent_0-1762395869897.png

 

2.

Senlent_1-1762395884490.png

So which instance are you using? What is the PCS value being written? Did you operate on any unsupported PCS bits?

0 Kudos
Reply

173 Views
hafifi
Contributor II

Hi Senlent

I'm using LSPI0 and PCS[0], I'm not setting in CFGR11[PCSCFG] : 1 

Thanks

hafifi

0 Kudos
Reply

167 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hafifi

Also, please double check this limited.

70.3.2.1Transmit and command FIFO commands
You must initialize Transmit Command (TCR) before enabling LPSPI in Peripheral mode, although this register is not updated until after LPSPI is enabled. After LPSPI is enabled, you must make changes to this register only when LPSPI is idle. In Peripheral mode, the LPSPI command word in this register controls SPI attributes. Before the PCS input asserts, the transmit FIFO must be filled with transmit data, or the transmit error flag sets.

0 Kudos
Reply

158 Views
hafifi
Contributor II

Hi Senlent,

I have tried to writing in the TCR register PCS bit after SPI initialization, because to make sure after writing to avoid any over writing happen on it again but the same behavior.
Can we do that in EB tresos instead of write on it in runtime  ?

Thanks

hafifi

0 Kudos
Reply

168 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@hafifi

Could you share your test project?

0 Kudos
Reply