ST意法半导体
直播中

刘艳

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

Aout IAP阻止标准程序时间?

Aout IAP阻止标准程序时间?

以上来自于谷歌翻译


以下为原文



Aout IAP block standard programm time?

回帖(6)

刘艳

2019-4-28 15:05:24
你好:
 
 
 我的CPU使用I2C IAP块标准程序STM8A并自动更新MCU,总块时间为15块标准程序,即10秒。是时候慢还是正常?
 
问候
wolver

以上来自于谷歌翻译


以下为原文




Hello:


My CPU use I2C IAP block standard programm STM8A and automatic updates MCU, Total time of 15 blocks standard programm which is 10 seconds. Is that time slow or normal?  

Regards  
wolver
举报

王凤兰

2019-4-28 15:24:23
嗨沃尔弗,
 
 
块(128字节)的编程时间约为6毫秒(包括擦除+编程时间)。如果你做一个字节或单词profgramming也一样。对于15个块=> 15 * 6 = ~90毫秒。
 
我想,10秒是通过I2C接收数据然后将其加载到存储器位置所需的总时间。你的cpu频率是多少?
 
您可以通过切换一些IO来计算代码的每个部分所花费的时间。
 
 
 
 
 
[此消息由Jatin于14-05-2009 09:12编辑]

以上来自于谷歌翻译


以下为原文




Hi Wolver,


The programming time for a block(128 bytes) is ~6msec (which includes erase+program time). Its same if you do a byte or word profgramming. For 15 blocks => 15*6 = ~90 msec.  

I think, 10 seconds is the total time taken to receive the data through I2C then loading it in the memory locations. what is your cpu frequency?  

You can calculate the time taken by the each section of your code by toggling some IOs.  





[ This message was edited by: Jatin on 14-05-2009 09:12 ]
举报

刘艳

2019-4-28 15:37:02
嗨贾丁
 
 
我的CPU工作(Linux_OS)在333MHz,I2C总线是100KHz,STM8A是从机。
我测试它并确保更新成功。
 
一切都是块标准程序,它不是字节或字程序...
 
 
 : - [
 
问候
wolver

以上来自于谷歌翻译


以下为原文




Hi Jatin


My CPU work(Linux_OS) on 333MHz, I2C bus is 100KHz, STM8A is slave.  
I test it and sure that update is successful.  

All is block standard programm, It do not a byte or word programm...  


:-[  

Regards  
wolver
举报

刘艳

2019-4-28 15:45:22
嗨贾丁
 
 
 你是对的!我查看我的程序,发现我忘了...如下:
 
//启用阻止程序
FLASH_CR2 = BIT(0);
FLASH_NCR2& =(u8)~BIT(0);
 
现在,15块程序不到1秒。我认为这是正常的。
 
 :-D
 
Redards
wolver

以上来自于谷歌翻译


以下为原文




Hi Jatin


You are right! I check my programm, find I forget ... as follow:  

// Enable Block programm  
FLASH_CR2 = BIT(0);  
FLASH_NCR2 &= (u8)~BIT(0);  

Now, 15 blocks programm is less than 1 second. I think that it is normal.  

:-D  

Redards  
wolver
举报

更多回帖

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