how to change internal flash writing address without affecting code

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

how to change internal flash writing address without affecting code

534件の閲覧回数
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 返信

352件の閲覧回数
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 件の賞賛
返信