cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP1 OTP Word 5..7 function details for remapping to the altenate pins

tmkaran
Associate II

Hi everyone,

STM32MP1 ROM Code has default AF mux for SPI_NOR/NAND like this:

QUADSPI_CLK -> PF10 (AF9)

QUADSPI_BK1_NCS -> PB6 (AF10)

QUADSPI_BK1_IO0 -> PF8 (AF10)

QUADSPI_BK1_IO1 -> PF9 (AF10)

I want to remap to the new pins using the OTP CFG5..7

The poinst is, what is the order of usage.

Which part of which word should be assigned to which function.

My used pins like this:

QUADSPI_CLK -> PG7 (AF9)

QUADSPI_BK1_NCS -> PB10 (AF9)

QUADSPI_BK1_IO0 -> PD11 (AF9)

QUADSPI_BK1_IO1 -> PF9 (AF10)

so how should be seen the OTG Word 5 .. 7? My decision is like that. but i want to make sure it is true.

CFG5: 0x77912A97

CFG6: 0x4B9169A1

1 ACCEPTED SOLUTION

Accepted Solutions
ArmandG
ST Employee

Hello @tmkaran​ ,

You reverted CFG5 and CFG6 order, it should be like this:

CFG5: 0x2A97 7791

CFG6: 0x69A1 4B91

Else it seems correct. Don't forget to set to 1 in the word3 the parameter qspi_not_default_af.

Armand

View solution in original post

2 REPLIES 2
ArmandG
ST Employee

Hello @tmkaran​ ,

You reverted CFG5 and CFG6 order, it should be like this:

CFG5: 0x2A97 7791

CFG6: 0x69A1 4B91

Else it seems correct. Don't forget to set to 1 in the word3 the parameter qspi_not_default_af.

Armand

tmkaran
Associate II

Thank you very much @ArmandG. It works!

tmk