HI @US.2
Note that Boot from SD-Card using default SDMMC1 pins (See AN5031 or wiki) does not requires any OTP programming. Maybe worth to challenge your design choice as this could simplify your production setup.
some answers
- please see Product Reference Manual (RM0436), OTP mapping section. You will see all the OTP set in ST factory (mostly internal trimming/setup as well as unique identification)
- Please have a look to AN5031 or wiki. By default SDMMC1 is used for SD-Card boot
- There is no need to change to SDMMC2 for primary, but you should define SD-Card boot to SDMMC2 (using OTP Word3 = 0x00000010) as well defining the SDMMC2 pins you want to be used, using OTP Word5 to 7 (mandatory here). Please look at this post for an example: https://community.st.com/s/question/0D53W00001X1VehSAF
- USB Boot not needed as you could either have it changing Boot pins (from SD-Card to Serial Boot) or simply removing SD-Card as BootROM will fallback to serial if fail to load FSBL from Flash. See https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_code_overview#Boot_device_selection
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.