Hello,
I am currently working on setting up a FRDM-K64F and later a custom K24 board to use the C90TFS flash driver.
(MK64FN1Mxxx12 and MK24FN1M0xxx12)
I didn't see a flash derivative that matched the board, so I started working on my own.
I based mine, FTFx_KX_1024K_0K_0K_4K_0K.h, off of FTFx_KX_(512_256_128)K_0K_0K_2K_0K.h.
Where in the manual can I get the information on the command address alignments?
ie. PERSBLK_ALIGN_SIZE, PERSSEC_ALIGN_SIZE, PRD1BLK_ALIGN_SIZE, etc.
I guess while I am at it, where can I find the Program Unit Size?
Thank you,
Jason P
Original Attachment has been moved to: FTFx_KX_1024K_0K_0K_4K_0K.h.zip
Hello Jason P,
These information you can find in the related reference manual, for example k64fn1m0vll12 chip :
- erase one sector , the sector size if 4k :
- program once size : 8byte
- the block size is 512KB :
About the k24 chip , you can also find these information in the RM.
Hope it helps
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Have a great day,
Alice
Alice,
That is fine for the information I have already found.
I was looking more for something like this. I did not see this before. I hope this is correct.
#define PERSBLK_ALIGN_SIZE FTFx_DPHRASE_SIZE
#define PERSSEC_ALIGN_SIZE FTFx_DPHRASE_SIZE
#define PRD1BLK_ALIGN_SIZE FTFx_DPHRASE_SIZE
#define PRD1SEC_ALIGN_SIZE FTFx_DPHRASE_SIZE
#define PGMCHK_ALIGN_SIZE FTFx_LONGWORD_SIZE
#define RDRSRC_ALIGN_SIZE FTFx_PHRASE_SIZE
#define SWAP_ALIGN_SIZE FTFx_DPHRASE_SIZE
Regards,
Jason P