how to change internal flash writing address without affecting code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to change internal flash writing address without affecting code

852 次查看
sudhakarp
Contributor V

Hi

i am using KDS2.0 and ksdk 1.1.0 example.

     i am facing some problem in internal flash writing. so can you explain following parameter what purpose we are using

FTFx_REG_BASE,

P_FLASH_BASE,

P_FLASH_SIZE,

P_SECTOR_SIZE

and also can i change following parameter,

      #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SIZE (524288) to//524288 //1048576

    /* @brief P-Flash sector size. */

    #define FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE (4096)

    /* @brief P-Flash write unit size. */

    #define FSL_FEATURE_FLASH_PFLASH_BLOCK_WRITE_UNIT_SIZE (8)

if yes how to assign value for that.
actually i studied flash demo code there mention user should initialize following parameter,

ftfxRegBase,P_FLASH_BASE,P_FLASH_SIZE. i tried flash demo project its working fine. but i want to change flash writing address

so for that what are the changes Required.?

regards,

sudhakar p

标签 (1)
0 项奖励
回复
1 回复

670 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello sudhakar p:

Please DO NOT change any of those macros. Those are predefined macros describing the flash memory module (block size, sector size, write unit size). These parameters are static due to the flash memory nature, not defined by the user.

Regarding your question about writing to flash, please see my response to your other post:

K64 MQX Flash questions

Regards!

Jorge Gonzalez

0 项奖励
回复