FRDM K22F Internal Flash Writing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM K22F Internal Flash Writing

Jump to solution
1,894 Views
davidalain
Contributor II

Hi,

 

I'm trying to make a bootloader to my application using KDS v1.1.1.

I'm able to erase flash sectors and read any addres on flash, but I can't to write any byte into internal flash.

 

I have tried to use on KDS both components Internal Flash (IntFLASH) and FLASH_LDD, but both do not work to write data into flash.

 

I'm using KDS v1.1.1, but there is not the correct target CPU of FRDM-K22F (MK22FN512VLH12), even the KDS Release Notes saying that this target is supported.

To MK22F family appears as availables CPUs MK22FN1M0xxx12 and MK22FX512xxx12.

 

Because of this I'm using a similar target, the MK22FX512VLH12, but without FlexMemory and MPU because my target MK22FN512 do not have these features.

 

I know that the flash sector size is different.

On MK22FN512 the sector size is 2KB and on both MK22FN1M0 and MK22FX512 the sector size is 4KB.

Can this affect the flash writing feature?

 

Is there any component to FRDM-K22F that works the erasing, reading and writing data into flash properly?

Labels (1)
1 Solution
566 Views
DavidS
NXP Employee
NXP Employee

Hi David,

If you install the KSDK1.0.0 on your system too, then you can use the example flash_demo_frdmk22f120m example code.

KSDK1.0.0 is at following link:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&tid=vanKSDK

Chapter 7 of C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK K22 User's Guide.pdf is very helpful.

Chapter 5 C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK Demo Applications User's Guide.pdf specifically reviews the flash demo.

Please review the Release Notes for KDS in that same folder.  It has good overview of KDS.

Other docs to look at:

Kinetis Software Development Kit   Then click on Content and then Documents.

Regards,

David

View solution in original post

0 Kudos
2 Replies
567 Views
DavidS
NXP Employee
NXP Employee

Hi David,

If you install the KSDK1.0.0 on your system too, then you can use the example flash_demo_frdmk22f120m example code.

KSDK1.0.0 is at following link:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&tid=vanKSDK

Chapter 7 of C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK K22 User's Guide.pdf is very helpful.

Chapter 5 C:\Freescale\KSDK_1.0.0\doc\Kinetis SDK Demo Applications User's Guide.pdf specifically reviews the flash demo.

Please review the Release Notes for KDS in that same folder.  It has good overview of KDS.

Other docs to look at:

Kinetis Software Development Kit   Then click on Content and then Documents.

Regards,

David

0 Kudos
566 Views
davidalain
Contributor II

Thanks David,

I ran that example code and it could erase, read and write into flash :smileygrin:

I will integrate that source code to my project.

0 Kudos