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
解決済! 解決策の投稿を見る。
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.
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!
-----------------------------------------------------------------------------------------------------------------------
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
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.
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!
-----------------------------------------------------------------------------------------------------------------------