cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 default option bytes configuration

AShel.1
Associate III

Hello,

I've another observation, may be something wrong in board.

host controller is sTM32H573 which will update firmware of slave controllers interfaced on SPI one is sTM32G071 and is STM32G474, I'm using nucleo-g474re board

for sTM32g474 controller system memory boot configuration as per ref manual RM0440 Rev 4 pg no 89,

nBOOT1, nSWBOOT0 bits in option byte should be set to '1' and BOOT0 pin should be pulled high.

in reference manual RM0440 Rev 4 pg no 109 it is mentioned that default value of nSWBOOT0 bit is set to '1'. so no need to modify option byte to enable system memory boot.

I've tried reading option bytes of nucleo board(board is new) using STM32CubeProgrammer and it reads nSWBOOT0 as '0' if this is the case then again I'll have to modify option bytes to enable system memory boot. please check and provide your inputs.

0693W000006FmJtQAK.png0693W000006FmKNQA0.png0693W000006FmKhQAK.jpg

2 REPLIES 2
Amel NASRI
ST Employee

Hi @AShel.1​ ,

Could you please check the revision of the device you are using (check DBGMCU_IDCODE on Address: 0xE004 2000)?

For Rev B devices nSWBOOT0=0, but then it was changed to nSWBOOT0=1. That is why default ST production value is 0xFFEF F8AA in RM0440 (please note that there is currently a rev5 of this document on the web).

-Amel

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.

Hello,

if I read DBGMCU_IDCODE  0xE0042000 it gives value 0x20026469. how to decode revision? where it is mentioned if it is REV B device?