MK12 Using FlexRAM

cancel
Showing results for 
Search instead for 
Did you mean: 

MK12 Using FlexRAM

74 Views
Contributor IV

Hi, I would like to find out how to use the FlexRAM to as storage of device information eg. Device Address & configuration parameters.

I am using MK12DX128VLH5 which has 64KB FlexNVM & 4KB FlexRAM.


I have referred to MCUXpresso SDK API Reference Manual and \twrk21d50m\driver_examples\flash.

I have only have 10 bytes of data to be saved.

Can I check if the pflash example is the right reference to use?

Thanks.

0 Kudos
3 Replies

22 Views
NXP TechSupport
NXP TechSupport

Hi mylim,

  Share one Kinetis K20 50Mhz  eeprom register level source code for you.

   You can check it, just check the related register is the same as your K12 or not, then you can use that code do EEPROM partition and the data writing.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

22 Views
Contributor IV

Hi kerryzhou‌, 

I have a question, is there any difference between

int partition_flash(int eeprom_size, int dflash_size)

and splitting the flash in the properties?

pastedImage_1.png

Thanks.

0 Kudos

22 Views
NXP TechSupport
NXP TechSupport

Hi mylim,

   Split function is just divide the original defined flash range to a lot of other range and length:

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Split is not the partition, you can consider it as the linker file flash definition.

but EEPROM partition means use the flexNVM as the EEPROM backup area, use the FlexRAM as the EEPROM emulated address.

More details, please check the kinetis reference manual flash chapter, find the eeprom partition, you will be more clear about it.

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos