how to change internal flash writing address without affecting code

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

how to change internal flash writing address without affecting code

584 Views
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

Labels (1)
0 Kudos
Reply
1 Reply

402 Views
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 Kudos
Reply