KL46Z FRDM internal flash using

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL46Z FRDM internal flash using

跳至解决方案
765 次查看
mohamedessadoun
Contributor I

Hi,

I am using KL46Z FRDM board and I want to use internal flash to store data through FTFA commands. I am able to erase blocks and program longWords (4 bytes). The problem is about timing : it takes long time in each Program longword before CCIF flag is set (around 176us while datasheet KL46P121M48SF4.pdf says 65 us) so it takes around 500ms to program 32 KB.

Did someone experience same problem? Writing data 32 bits by 32 bits is the best way?

Thanks for your help

0 项奖励
回复
1 解答
575 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello mohamedessadouni:

The flashing time should be measured from the moment the command is launched by clearing CCIF (write 1 to clear). Also, the datasheet specifies 65 us as typical, but the maximum time is 145 us.

KL46_flash.png

About programming, for Kinetis L there is no "Program Section" command, so yes, you have to write 32 bits at a time.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
575 次查看
mohamedessadoun
Contributor I

Hi Jorge,
Sorry for my late answer

Yes I saw maximum was 145, but I was just surprised to see that we were around this value (which is the maximum) at each write operation. I was expecting to reach max value only sometimes.
Anyway, those times are acceptable for my application.

Thank you guys.

Mohamed Essadouni

0 项奖励
回复
576 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello mohamedessadouni:

The flashing time should be measured from the moment the command is launched by clearing CCIF (write 1 to clear). Also, the datasheet specifies 65 us as typical, but the maximum time is 145 us.

KL46_flash.png

About programming, for Kinetis L there is no "Program Section" command, so yes, you have to write 32 bits at a time.


Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复