ST意法半导体
直播中

刘玲

7年用户 189经验值
私信 关注
[问答]

在写入STM8S003中的eeprom后,CPU偶尔会锁定

在STM8S003上:
当我向eeprom写一个页面时,它偶尔似乎会导致CPU的锁定。当我用勺子检查时,它似乎完成了写入但是毫秒后发生了锁定。如果在写入eeprom期间禁用中断,则无效。

以上来自于谷歌翻译


以下为原文




On an STM8S003:
When I write a page to eeprom it sporadically seems to cause a lockup of the CPU. When I check with a scoop it seems to finish the writing but milliseconds thereafter a lockup happens. It does not help if I disable interrupts during the writing to eeprom.

回帖(5)

刘玲

2018-10-23 17:03:55
请注意,我不使用EEPROM EOP中断。

以上来自于谷歌翻译


以下为原文




Note that I do not use the EEPROM EOP interrupt.
举报

符伯峪

2018-10-23 17:23:14
如果它类似于STM32,当你尝试从FLASH执行同时擦除/写入正在进行时,它只会填充等待状态,从而导致系统完全停顿。外设将保持时钟,但如果不提供实时需求,则会发生上溢/下溢。
在STM32上,您可以通过从RAM运行代码或使用双库闪存来避免这种情况。

以上来自于谷歌翻译


以下为原文




If it is anything like the STM32, it just stuffs wait-states when you try to execute from FLASH while an erase/write is in progress, causing a complete stall of the system. Peripherals will keep clocking, but will overflow/underflow if real time needs are not serviced.
On the STM32 you avoid this by running code from RAM, or having a dual-bank flash.
举报

冬妮

2018-10-23 17:36:34
正好注意到,先生。

以上来自于谷歌翻译


以下为原文




Duly noted, sir.
举报

刘玲

2018-10-23 17:45:19
EERPOM写例程是从RAM执行的,因为我使用STM8S003,它不能从Flash执行EEPROM例程。

以上来自于谷歌翻译


以下为原文




The EERPOM write routines are execute from RAM as I use the STM8S003 which can not execute EEPROM routines from Flash.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分