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.

Factory reset msp432 RevB Silicon

I'm trying to use the factory reset command on RevB silicon using the BSL to remove security settings and clear flash.

The command response indicates BSL Core Message 0x07  "Unknown Command".  All the other commands seem to work OK on the Rev B silicon.  Is this command implemented?  I've added the Command_Factory_Reset to the mailbox.  Is there anything else I need to do?

Thanks

Dan Powell

  • Hi Dan,

    Which BSL version are you using?? This command was not supported on early versions. Updating your BSL to 0000.0003.0007.0205.000A (software-dl.ti.com/.../index_FDS.html) should do the trick.

    Hopefully this helps.

    David

  • David,

    Thanks for the reply.  I'm using 0000.0002.0003.0102.0003.  That's probably the issue.  I hesitate to upgrade since I have an application depending on the command formats of this version.  Do you know if the command formats are the same in the version you are referencing?  The document I used for design is the SLAU622B Revised August 2016.  Again...thanks for the response.  While I have your ear, How much do you know about the Security and Update tool?  I'm having lots of issues with it.  If you have a chance, please look at my post regarding  "Security and Update tool."  I've gotten little support on this issue.  Again, Thanks

    Best Regards

    Dan 

  • Hi Dan,

    The command format should be the same. And let me take a look at your other thread.

    Regards,

    David
  • David, More info on the other thread. I'm trying to use the Update Firmware in Protected Zone feature in the IP Protected Secure Zone. I've previously created an IP protected Zone and the resulting mailbox it generated compares favorably with my Rev B mailbox setup and I've verified the application IP protection has been created when I run my app. I'm now trying to test the encrypted operation. I'm wanting to use a 48K TITXT formatted file(my update) starting at @2000 (Temporary unused, unprotected area) to store my it. When I select the file in the New Firmware Image section of the form, the application goes away forever. I have to reboot to gain access back to the txt file. It seems to work fine for small updates. (i.e examples). It also has problems with starting addresses greater then 0xA000 as I said in my other thread. I can upload my 48K txt file if you'd like, just send me a link
  • Hey David,
    What's the process for updating the BSL. I followed the link, downloaded the new BSL. Used CCS to build the project. When I run, it flashes the new bsl to 2000. How does it get to 202000? Is there an app not available?
    Thanks
    Dan
  • David,
    I think I understand more about the process. I set up a release version and set up the msp432 options to enable BSL clearing , etc. The flash now programs at 0x202000 but it doesn't match when I use the memory browser (comparing with the TITXT output file created). The BSL also doesn't work. I'm using the following script file to test.

    // for bsl new version check
    LOG
    MODE msp432p4xx UART 9600 COM7 PARITY
    //VERBOSE
    RX_PASSWORD_32
    TX_BSL_VERSION_32
    //RX_DATA_BLOCK_32 mailbox.txt
    TX_DATA_BLOCK_32 0x202000 0x1000 ReadBlock_BSL.txt
    REBOOT_RESET

    Any ideas? I can send you a screen shot of my CCS display if you'd like.
  • David, I was mistaken. I was looking at the TITXT output file for debug not release. The BSL looks like it loaded correctly, but still doesn't work. Are you sure this version works on the XMS432P401R RevB??
  • Hi Dan,

    I made a mistake, that version of the BSL is not intended for RevB. So we have a couple of options:

    1. Implement the factory reset command in the RevB BSL (0000.0002.0003.0102.0003).
    2. Move to RevC sillicon

    I can help with either one, but I would probably recommend #2.

    Best regards,

    David
  • Hi David,

    I appreciate the reply.  Unfortunately we are stuck with 250 boards with RevB processors which will be shipping before Christmas and I'd sure like to get this feature into them before our first field update occurs in early 2017.  Therefore, option 1 is more favorable at this time.  Naturally RevC would be the best choice but my hands are tied.  If you'd have the source for the BSL Version I have or a link to it, I'd have no problem adding it in...assuming you could help?

    Again, thanks,

    Dan Powell

    P.S.  Bad news about the Security and Update Tool.  I guess I'll have to wait till the next release.

  • Hi Dan,

    The source code is part of MSP432 Custom BSL Package, you can download the RevB version from here:

    software-dl.ti.com/.../index_FDS.html

    And the RevC from here:

    software-dl.ti.com/.../index_FDS.html

    Please let me know if you run into any issues.

    Best regards,

    David
  • Thanks David,
    I found the source for my version last night. I downloaded and tried to compile. No luck 120 errors, primarily undefined values
    Here are some typical errors:

    in BSL432_Peripherial_Interface_eUSCI_UART_SPI_I2C.c:

    uint32_t BSL432_UART_MODULE = EUSCI_A0_MODULE;
    uint32_t BSL432_SPI_MODULE = EUSCI_B0_MODULE;
    uint32_t BSL432_I2C_MODULE = EUSCI_B2_MODULE;

    all EUSCI_Ax_MODULE references are undifined.

    Something appears to be missing
    another one:

    FLCTL_MAINWEPROT_BNK0_P IN BSL432_API is undefined.

    I must not have some inclusions is the a specific version of the compiler I need?

    I haven't searched for the missing definitions yet. I'll do that today.
    Thanks
    Dan
  • Hi Dan

    I ran into similar issues and most likely you will also have some dependencies problems (depending on your CCS version, please take a look at this link processors.wiki.ti.com/.../XMS432_Support).

    I'll contact you offline so I can share you a working project.

    Best regards,

    David

**Attention** This is a public forum