STM32MP1 OTP Word 5..7 function details for remapping to the altenate pins
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-15 12:04 PM
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
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-16 6:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-16 6:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-16 8:51 AM
Thank you very much @ArmandG. It works!
tmk
