This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

what is mean by blockid and moduleid in PSTORAGE

hi

i need store my data in internal flash memory (around 30kb). i have fixed memory map from 0x25000 to 0x35000. my, block size = 16 byte, block count =4096, no of pages= 64 pages, page start no. = 148, page end no. = 212,

my code could exceed address of 0x25000.

please check is it correct. i could not understand what is mean by blockid and moduleid and also PSTORAGE_MAX_APPLICATIONS.

here, i have given the value for PSTORAGE_MAX_APPLICATIONS=148. is it correct

Parents
  • Ok. What is that you don't understand?

    PSTORAGE_MAX_APPLICATIONS is the maximum number of applications that can be registered with the module. This is typically 1, 2 or 3, I'm not sure why you have set it to 148. Maybe because it is used in the calculation of PSTORAGE_DATA_START_ADDR? This is not necessary, set PSTORAGE_DATA_START_ADDR to the start address you want to use.

    Module ID identifies identifies the application, it could also have been called application ID.

    Block ID identifies the block.

Reply
  • Ok. What is that you don't understand?

    PSTORAGE_MAX_APPLICATIONS is the maximum number of applications that can be registered with the module. This is typically 1, 2 or 3, I'm not sure why you have set it to 148. Maybe because it is used in the calculation of PSTORAGE_DATA_START_ADDR? This is not necessary, set PSTORAGE_DATA_START_ADDR to the start address you want to use.

    Module ID identifies identifies the application, it could also have been called application ID.

    Block ID identifies the block.

Children
Related