Skip to main content
emre ozdemir
Associate III
September 8, 2021
Solved

User byte address in option byte (store 2 byte except flash memeory)

  • September 8, 2021
  • 2 replies
  • 985 views

Hello All,

I am using stm32g030f6 mcu.

I have done this project before with stm32f0 mcu and now i am porting it to stm32g0 mcu.

flash size of each is 32kB.

The project is filling up all the processor's memory.So I used option bytes to keep some values in memory with stm32f0 mcu.2 bytes is needed to store only.

I want to do the same with this stm32g0 mcu.But I cant find the user option byes in the option bytes.I found the option bytes but I don't have info about where is user option byte that doesn't effect operation of the processor.

I know how to write and read to option bytes.

Or if you know another locatiıon to store 2 bytes except flash memory it would be also helpfull.

Thanks.

Regards.

EMRE

This topic has been closed for replies.
Best answer by Mike_ST

Hello,

Some suggestions, but there is no magic solution when there is no space:

  • OTP flash, but it's OTP
  • TAMP.BKPxR registers that can survive RESET, but not power OFF
  • Optimize/shrink your code to free a 2Kb page
  • Use an external I2C flash if your design has already an I2C bus

2 replies

Mike_ST
Mike_STBest answer
ST Technical Moderator
September 8, 2021

Hello,

Some suggestions, but there is no magic solution when there is no space:

  • OTP flash, but it's OTP
  • TAMP.BKPxR registers that can survive RESET, but not power OFF
  • Optimize/shrink your code to free a 2Kb page
  • Use an external I2C flash if your design has already an I2C bus

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
emre ozdemir
Associate III
September 16, 2021

I optimize my code and use last 2 kb page for data.

Thanks.

EMRE