cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g431 boot 0 pb8

omid hamdi
Senior

how disable boot 0 pin8 i used this pin for input make problem to boot from flash how can disable any condition mcu boot from flash not check this pin when reset

1 ACCEPTED SOLUTION

Accepted Solutions
Shirley.Ye
ST Employee

you can set the related option bytes to avoid the boot pin impact.

you can check the Boot configuration part of the reference manual.

nBOOT0 FLASH_OPTR[27] set to 1, and nSWBOOT0 FLASH_OPTR[26] set to 0 will make the chip boot from main flash and regard less of the boot pin.

View solution in original post

6 REPLIES 6

You've post this 6 times, please don't do that. Edit posts if you need to add or change details.

Check if there are Option Byte settings to fix nBOOT, or similar

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
omid hamdi
Senior

I SEND ONE TIME 6 TIME GOT MASAGE TRAY AGAIN

I USED PB8 FOR INPUT WHEN RESET IF THIS PIN HIGH NOT BOOT FROM INTERNAL FLASH I TRY TO FINED WAY HOW CANCEL THIS PIN NO ANY EFECT ON BOOT ADDRESS ALL CONDITION BOOT FROM INTERNAL FLASH MEMORY

Shirley.Ye
ST Employee

you can set the related option bytes to avoid the boot pin impact.

you can check the Boot configuration part of the reference manual.

nBOOT0 FLASH_OPTR[27] set to 1, and nSWBOOT0 FLASH_OPTR[26] set to 0 will make the chip boot from main flash and regard less of the boot pin.

omid hamdi
Senior

is possible example software give me how to do it becuse after reset cpu go to one address start

nSWBOOT0 FLASH_OPTR[26]  and nBOOT0 FLASH_OPTR[27]  this register or flash address must write ?

you can use the cubeprogrammer to do the option byte configuration​

omid hamdi
Senior

thanks fixed my problems