MK12DN512VLH5 with no FlexMemory - how big are the logical program FLASH blocks (to erase/program them during runtime while the code is always running from this FLASH too)?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MK12DN512VLH5 with no FlexMemory - how big are the logical program FLASH blocks (to erase/program them during runtime while the code is always running from this FLASH too)?

ソリューションへジャンプ
722件の閲覧回数
hexman
Contributor II

Hi, I plan to use an MK12DN512VLH5 with 512KB of program FLASH and no FlexMemory. My question is, whether I can use say 16KB of it for firmware (instructions and data always executed from the 16KB portion of the FLASH) and the rest for data logging. K12 Sub-family Reference Manual says:"Read access to one logical program FLASH block is possible while programming or erasing data in the other logical program FLASH block." How big is the logical program FLASH block in the MK12DN512VLH5 in this situation/context? Thank you!

ラベル(1)
1 解決策
608件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello hexman:

Your device has 2 P-Flash blocks, each one of 256 KB. The addresses are described in the Reference Manual K12P64M50SF4RM:

Flash_blocks.png

So you can execute code or read variables from one of these blocks while writing or erasing the other.

Hope this helps.


Regards!,
Jorge Gonzalez

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

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
608件の閲覧回数
hexman
Contributor II

Hi Jorge, thank you for the quick reply! It seems I will have to have a copy of code and interrupt vectors in both FLASH blocks to be able to use the rest of FLASH for logging... Nice. The easier variant would be to use the lower 256KB just for the code, and the upper one for logging.

609件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello hexman:

Your device has 2 P-Flash blocks, each one of 256 KB. The addresses are described in the Reference Manual K12P64M50SF4RM:

Flash_blocks.png

So you can execute code or read variables from one of these blocks while writing or erasing the other.

Hope this helps.


Regards!,
Jorge Gonzalez

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

0 件の賞賛