cancel
Showing results for 
Search instead for 
Did you mean: 

Hi iam unable to assign spi1 pheripheral to cortex M4 on STM32MP157c

Maksh.1
Associate III

Hi , iam trying to use spi1 pheripheral for the cortex M4 and iam using Pz0 as CLK, pz1as MISO, pz2 as MOSI, pz3 as NSS , but i tried several ways to do it by changing the kernel DTS and TF-A as well but no result , could anyone please help me how can i configure a spi pheripheral to cortex M4 with above given pins

Thanks & regards

Akshay.

2 REPLIES 2
PatrickF
ST Employee

Hi @Maksh.1​ ,

did you generate your DT using CubeMx ?

Could you elaborate on the 'unable to assign' ? It there any error messages ?

Please have a look to this post which highlight the need to use pinctrl_z:

https://community.st.com/s/question/0D53W00001RM1kiSAD/linux-510-pinctrl-driver-fails-to-configure-gpio-port-z-pad-7-with-af7-usart1tx

Please also look at https://wiki.st.com/stm32mpu/wiki/How_to_assign_an_internal_peripheral_to_a_runtime_context

and ensure you have only and &spi1_m4 "okay" (i.e. keep &spi1 "disabled")

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Maksh.1​ ,

Do you progress on this subject ?

Regards.

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.