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.

MSP430FR5872: CryptoBSL behavior

Part Number: MSP430FR5872

Hi,

My customer is facing following problem with combination of "MSP430FR5872 + CryptoBSL".
* Even though customer protect ".text"(program code) region by setting MPU(Memory Protect Unit), certain program regions(Ex. 0x92A2) get overwritten when uart function of customer application work.

Here is customer's detailed environment.

* Customer used "CryptoBootloader_1_00_00_01".
   And use "cryptoBSL.txt" which customer build and load by using IAR.
   (This means customer follow section 6.1.2 "Loading Crypto-Bootloader Using Source Code" of following app note.
   www.ti.com/.../slau657.pdf)
* Customer do not use "CryptoBootloader_005856B5.txt" which is provided as prebuild binary file.
* Customer do not change any code when they build above "cryptoBSL.txt".
* Customer set segment as shown below.
0x4400 - 0x53FF segment 1
0xF000 - 0xFFFF segment 2
0x5400 - 0xEFFF and 0x10000 - 0x13FFF Segment 3
And segment3 (overwritten area) of MPU set is "R/X : Y, W :N" (Means "MPUSAM register is set as "0x1513".)
* BSL interface is uart.

Then I have following question.

Q1. Here is quote of FRAM information
Left side show FRAM information of segment 2 after loading "CryptoBSL.txt"
Right side show FRAM information of segment 2 after loading "application" via CryptoBSL.

image.png
Accoriding to above, it seems that segment 2 region (cryptoBSL region) is overwritten after loading customer application FW.
Is it expected behavior ?

Best Regards,

  • Hi Ryuuichi,

    Can the customer try to use CryptoBootloader_005856B5.txt and see if the error persist?

    Best Regards,

    Diego Abad

  • Hello Diego-san,

    Thank you for your reply.
    I will check about your quesiton to customer.
    However, could you tell me your opinion about my question ?

    Best Regards,

  • Hi Diego-san,

    Here is feedback about your question.

    >Can the customer try to use CryptoBootloader_005856B5.txt and see if the error persist?
    Customer tried to use "CryptoBootloader_005856B5.txt".
    However, after writing above cryptoBSL, they tried to load their application FW via UART, but they could NOT load their application FW to device.

    * Customer tried to load "CryptoBootloader_005856B5.txt " by following below.
       - Use JTAG interface with CCS.
          (Performed "RUN" -> "LOAD" -> "Select program to load" on CCS.)
    * Customer tried to load their application FW by using "bsl_tool.exe".
      => However, they observed "communication timeout" error.

    Best Regards,

  • Hi Ryuuichi,

    Thanks for letting me know. I reviewed the document, and the area shouldn't be modifiable unless the setting protecting the BSL was disabled (Refer to 7.2.2 Changing Default MPU Settings and 7.2.3 Leaving MPU Unlocked for Application) Can the customer confirm this is not the case?

    Best Regards,

    Diego Abad

**Attention** This is a public forum