cancel
Showing results for 
Search instead for 
Did you mean: 

where can I find a description (address, position) of the flash sectors of the STM32G family? The code generated by CUBE only says FLASH_SECTOR_0 etc, and the datasheet does not mention any sectors

VKoen.1
Associate
 
4 REPLIES 4
Javier1
Principal

which specific mcu? maybe try the reference manual

we dont need to firmware by ourselves, lets talk
VKoen.1
Associate

CPU is stm32G031F4. I need to do some programmatic flashing and I consulted the datasheet and was not successful there. I worked with STM CPUs before but never touched flashing. I assume there are app notes but a quick search in the web yielded nothing. I just hoped, it is common knowledge an I just did not find it

>I just hoped, it is common knowledge an I just did not find it.

i dont think its common knoledge, and it depends of the type of flash or the way its wired internally to the mcu.

If youre using HAL,the implementations are mostly the same.

  • Erase one page at a time minimum
  • And then write into previously erased space, byte/int16 or in32 sizes.

>stm32G031F4, so only 16KB of Flash.

Take a look at the ref manual.

0693W00000VOpJkQAL.png 

How did i knew whch reference manual was it?

I opened a new progect with cubeMx and went to help/docs and resources( ref manual

0693W00000VOpKiQAL.png

we dont need to firmware by ourselves, lets talk
woutnme
Associate II