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.

MSPM0G1519: NONMAIN (BSLCONFIG0) reconfiguration after FW programming

Part Number: MSPM0G1519

Hi,

My customer is looking for a way to modify the READOUTEN[31:16] bits on BSLCONFIG0 register in NONMAIN from FFFFh to AABBh after Firmware has been programmed.

Is it possible ?  Specifically, is there any method to achieve this without performing a Factory Reset? 

Background
They want to read the data in the internal FLASH by using ROM writer when some issue occurred after programming their Firmware and mounting on the board.
In order to read the data by using ROM writer, the READOUTEN[31:16] on the BSLCONFIG0 register needs to be reset from FFFFh to AABBh.

They think that the MAIN area including the data which they want to read would be erased if Factory Reset is performed.

Thanks and regards,
Hideaki

  • Hello Hideaki,

    This register is just related to the "readout enable" when you use BSL. If you want to read out Flash data through SWD interface, this register won't affect it. If you want to read out FLASH data in BSL mode after the device has been programmed and mouting on the board, you can use "sector erase" commend through BSL to erase NONMIAN, then please remember remember remember to write data back to NONMAIN through BSL. Don't keep NONMAIN blank, it will make device locked.

    BR,

    Janz Bai

  • Hi Janz,

     

    Thanks for your response. Let me confirm a little more.

    The customer wants to read out the data from the FLASH after the device has been programmed and mounted on the board.

    In this case, can they read the data in the Flash via SWD interface without setting the READOUTEN[31:36] on the BSLCONFIG0 register ?

    Also, they don’t need to erase NONMAIN in this case ?

     

    Thanks and regards,

    Hideaki

  • Hello Matsumoto-san,

    1. Yes they can

    2. Yes, they don't need to erase NONMAIN

    They just need connect debugger with M0 using SWD interface and connect debugger with PC. Then they can read out Flash data without setting the READOUTEN in BSLCONFIG0 register.

    BR,

    Janz Bai

  • Hi Janz,

    Thank you for your answer. 

    If you want to read out FLASH data in BSL mode after the device has been programmed and mouting on the board, you can use "sector erase" commend through BSL to erase NONMIAN

    Just to clarify, is the "sector erase" command you are referring to the same as the "Flash Range Erase" command below ?

    However, this command can be used to erase only the Main Flash memory. Non-main erase is not possible.

    In the User's Guide of "MSPM0 Bootloader".

    Thanks and regards,

    Hideaki

  • Hi,

    Could you please provide any response ?  I think NONMAIN can only be erased by the factory reset command. Am I correct ?

    Thanks and regards,
    Hideaki