2627 views|4 replies

89

Posts

0

Resources
The OP
 

When using the flash space of stm8 to store some data, how can we arrange the data space reasonably to avoid damaging the program code? [Copy link]

Because I don't know which address ranges the program occupies, and the data space I need may take up half of the flash, how should I plan the data space?

This post is from stm32/stm8

Latest reply

Reserve a certain amount of space for the code area, and then just change the space of other addresses!   Details Published on 2021-5-10 17:38
 

374

Posts

3

Resources
2
 

STM8 has EEPROM.

This post is from stm32/stm8
 
 

85

Posts

0

Resources
3
 
This post was last edited by book1 on 2021-5-10 08:21

This is separate and will not affect the code. A key is required to read and write the EEPROM, and it will not affect the data.

This post is from stm32/stm8
 
 

1w

Posts

142

Resources
4
 

If there is no need to rewrite, you can plan it however you want, as long as there is enough space. If rewriting is required, all data sectors must be independent and cannot share the same sector with the program. If frequent rewriting is required, you need to pay attention to the write cycle life of the sector, and use "balance algorithms" such as cyclic writing. At this time, you must consider the relationship between storage space and data volume, which determines the life.

This post is from stm32/stm8
 
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 

1942

Posts

2

Resources
5
 

Reserve a certain amount of space for the code area, and then just change the space of other addresses!

This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list