2205273_en-US

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

2205273_en-US

2205273_en-US

S32DS SPI CS_VIA_GPIO

Hello,

I can see in the  Sbc_Fs26_HLD example that there is an option in the Spi component (MCAL) to set a CS pin, which allows manual control over the CS pin

Djuric_0-1763133632091.png
But I'm not clear where that option is if I don't want to use a MCAL layer.
So, not working according to a AUTOSAR framework.

In the same type of example but in the version Sbc_fs26_example_IP , which is not according to AUTOSAR standard, I don't have that option.
Where is SPI CS as GPIO pin control, option in the non autosar example?

Djuric_1-1763134045440.png

Thank you.

Re: S32DS SPI CS_VIA_GPIO

Hi @Djuric 

The pin should be configured only as a GPIO, not as an SPI pin. For example, instead of defining it like this in the Pins Tool:

VaneB_0-1763152493107.png

It should be configured as follows:

VaneB_1-1763152562933.png

Then, control the state of the pin using the API Siul2_Dio_Ip_WritePin(). 

Re: S32DS SPI CS_VIA_GPIO

Thanks for the answer.
How do I configure the CS pin in the S32DS tool to be a GPIO, when it is reserved for a Lpspi peripheral. There is a definition collision. One pin cannot be defined in two different components Lpspi and SIUL. Can you send me a screenshot of where this is exactly set up. I read the documentation, this chapter refers to settings in the AUTOSAR context.

Re: S32DS SPI CS_VIA_GPIO

Hi @Djuric 

Unlike the SPI driver (MCAL), the LPSPI driver (IP) does not provide an explicit option to indicate whether the CS will be managed via GPIO or by the HW engine. For the IP driver, handling CS through GPIO must be implemented in code, and in ConfigTool you need to configure the desired pin as a GPIO.

Additionally, please note that a low CLK pulse occurs when using the first workaround for ERR050456, which involves resetting the LPSPI module. If you select the second workaround, this low pulse will not appear.

For more details about how to enable the second workaround, refer to Section 3.6.8 of the User Manual for S32K3_S32M27x SPI Driver.


BR, VaneB

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