This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P4111: MSP432 TI-RTOS flash segmentation & access question

Part Number: MSP432P4111

Dear friends,

My customer has two questions about MSP432 flash during software development:

  1. Flash segmentation: customer wants to have a dedicated flash space for their application task, the application task will be fixed in this location and called remotely from main function in other flash location. The reason doing this is they want only the application task region to be modified for different applications and keep the main function region as a platform block for their whole products echo systems, that’s how they do for all their MCU platforms. The question is how do we do it in the .cmd file to archive this, do we have any examples, or can you do a simple example project for them?
  2. NVS semaphore question: since it is RTOS system, how do different tasks to access flash at the same time by NVS APIs? Looks like we use semaphore in the NVS to control the flash access, and only one task could have the access at one time, what if multi tasks wants to have the access to the different flash location at the same time?

 

Thanks!

  • This is answer I got from internal, just here to publish for sharing and follow up.

    (1)    Examples of the flash segmentation and modification can be found in the over the air download example.  I cannot include the associated linker command file in email but here is a link to the project. In this example three distinct regions are created: OAD_BSL, MAIN, and SBL_STORAGE_BLOCK.  In the oad_bootloader.c file you can find the pragmas for associating the memory with specific variables and code.

    (1)    The CPU will execute one task at a time.  Please note in the SLA chapter on execution only one thread is running at one time.

    It is possible for the DMA within the MSP432 to try to access the FLASH at the same time.  Bus contentions are described in the datasheet and handled with the following priority:

  • Thanks Yan, for posting the questions and the solution on the forum!

    Regards,
    Sai

**Attention** This is a public forum