cancel
Showing results for 
Search instead for 
Did you mean: 

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

emre ozdemir
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Mike_ST
ST Employee

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

View solution in original post

2 REPLIES 2
Mike_ST
ST Employee

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

emre ozdemir
Associate III

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

Thanks.

EMRE