Skip to main content
Visitor II
September 15, 2020
Solved

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

  • September 15, 2020
  • 2 replies
  • 909 views

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

    This topic has been closed for replies.
    Best answer by ArmandG

    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

    2 replies

    ArmandGAnswer
    ST Employee
    September 16, 2020

    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

    tmkaranAuthor
    Visitor II
    September 16, 2020

    Thank you very much @ArmandG. It works!

    tmk