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.

MSPM0G1107:Two app firmware flashing problem

Part Number: MSPM0G1107
Other Parts Discussed in Thread: MSPM0C1104

Tool/software:

你好,

我有兩個APP代碼需要 編程 到同一個晶片中。我可以調整擦除方法來實現此目的嗎?

應用1 應用2

 ------

和我的兩個APP(.map)

目前,將 APP1 寫入快閃記憶體會導致 (M0G1107) 出現下列錯誤:

CORTEX_M0P:快閃記憶體編程器:位址 0x20000 處的磁區 80 擦除失敗
CORTEX_M0P:錯誤:(錯誤 -1001 @ 0x0)此裝置不支援要求的操作。 (仿真包12.7.0.00130)

我是否缺少任何設定?謝謝。

  • Revision  APP1 

  • If you want to program two different application code into the chip at the same time, you need to define the two application code in different memory. The cmd file must be changed in the two different application's project to define which memory it is located. You can't use the same cmd file for the two application code that will make the application address conflicted.

  • Hi Gary Gao

    I have cmdA and cmdB documents.They are  different projects

    cmdA                                                                                                   cmdB

    I Flashing cmdB will result in an error.

    error code

    CORTEX_M0P: Error: (Error -1001 @ 0x0) Requested operation is not supported on this device. (Emulation package 12.7.0.00130)
    CORTEX_M0P: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 12.7.0.00130)

  • Due to app B is not start from 0x00, the MCU will go into 0x00 when start up due to all the values are both 0xFFFF, so it will hang up and the error above. If you want to debug app B, you can put it at 0x00 first when you finished the debug then you can move it to other address.

  • Thank you for your response. I encountered an error during the flashing process (although it's working fine now). Currently, I can successfully flash the firmware, but if I try to flash appB it again, an error occurs. The only way I can flash it again is by performing a "MSPMO_MassErase_Manual" function first.

    The settings for my app B are as follows:

    error code

    CORTEX_M0P: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 12.7.0.00130)
    CORTEX_M0P: Unable to determine target status after 20 attempts
    CORTEX_M0P: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
    CORTEX_M0P: File Loader: Memory write failed: Could not read 0x20200014: target is not connected
    CORTEX_M0P: GEL: File: C:\Users\1130512\Documents\work1\TI_workspace\em_T1107T\Debug\em_T1107T.out: Load failed.

  • Please choose this one

    Could you help to provide the TI-TXT format firmware of the two application code to me? Let me check if any address conflict 

  • Thank Gary Gao

    This is my app. TXT file.em_T1107T.txt

    em_T1107T2.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    @0000
    00 40 20 20 D1 0F 00 00 AF 08 00 00 AF 08 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 00 00 00 00 AF 08 00 00
    00 00 00 00 00 00 00 00 AF 08 00 00 AF 08 00 00
    AF 08 00 00 AF 08 00 00 AF 08 00 00 B1 08 00 00
    AF 08 00 00 AF 08 00 00 00 00 00 00 00 00 00 00
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    I've successfully flashed both apps now. And I want to jump between app-switching function for in-app programming (IAP). Are there any resources you can recommend?

  • You can refer to the demos in the sdk ...\ti\mspm0_sdk_2_01_00_03\examples\nortos\LP_MSPM0C1104\bsl, it has the jump functions.

  • Thanks a lot.