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.

CCS/MSP430FR5959: MSP430FR5959 make boot code using IPE and MPU

Part Number: MSP430FR5959

Tool/software: Code Composer Studio

I would like to understand if it is possible to create a boot solution (customized, not to use BSL) that use the MPU and IPE function in an MSP430FR5959.

That is, I ask if it's possible:

a) Define the boot code in the IPE area (memory area 1)
b) Leave the rest of the memory as code (memory area 2)
c) Define the entry point in the IPE area from BOR
d) Completed the execution in IPE (end of the boot), pass the execution of the code to the memory area (2)

It's possible ?
Is there any example?

Can any of you be able to give me a tip?

Thank you

Daniele

  • Hi Daniele,

    daniele banfi said:
    It's possible ?
    Is there any example?

    Yes, this is possible.  For a really good starting point, have a look at our MSP430 FRBoot main memory bootloader, which is customizable and has memory protection.  You would mainly need to add the IPE aspect to this.

    Here are some resources:

    daniele banfi said:
    a) Define the boot code in the IPE area (memory area 1)

    Yes, you can place your custom bootloader into the IPE area.

    daniele banfi said:
    Leave the rest of the memory as code (memory area 2)

    Yes.

    daniele banfi said:
    Define the entry point in the IPE area from BOR

    Do you mean to configure the reset vector to jump into the IPE area (into your custom boot code, I presume)?  I do not see an issue with this as long as the MPU grants execute access to the IPE section as well.

    daniele banfi said:
    Completed the execution in IPE (end of the boot), pass the execution of the code to the memory area (2)

    There is no issue with this.  When you jump from the IPE section to fetch from the non-IPE section, IPE area read/write access writes are removed and you continue to fetch code from the non-IPE section.  You can always jump back into the IPE section if needed.

    Regards,
    Walter

  • Thanks for info Walter, I think is my solution..

    Many Thanks for support

**Attention** This is a public forum