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.

MSPM0L1304: After Uniflash writing, the SWD port does not work

Genius 3186 points
Part Number: MSPM0L1304
Other Parts Discussed in Thread: UNIFLASH, SYSCONFIG, MSPM0L1306

Hi

May I have advice for MSPM0L1304 recoverly?

My customer is developing custom boad on MSPM0L1304.

Question :

Is there any way to recoverly( reset to factory statr or write another program ) in stuation that could not use SWD?

--

Background:

Now my customer is testing to write binary file using uniflash.

It was succesfully .out, .txt file.

Only After write .hex that generated same project, MSPM0L's SWD will not work.

SWD error message:

Error connecting to the target: (Error -614 @ 0x0) The target indicates there is an error condition from a previous SWD  request. Clear the error the condition, and try the SWD request again. (Emulation package 9.12.0.00150)

I think this mean MSPM0 SWD reject connection.

And we had test BSL entry(PA18 Hi same timing of power up)

But SWD connection was not success.

Thanks,

GR

  • Hi GR,

    It sounds like the customer is either invoking security level 2 (see attached ppt file) or they are disabling the SWD as part of the application code.

    Have the customer check their Sysconfig settings (see slide #2).  Else have the customer provide a copy of their sysconfig file and I can take a look.

    locked SWD.pptx

  • Hi Dennis-san,

    Thanks for your supporting,

    My customer does not set security level.

    I will send my customer's CCS project, hex/txt/out file on private chat.

    And I tested on my EVM(MSPM0L1306), after flash write I could not connect SWD in CCS debug, Uniflash.

    However test connection in CCS target configration was sucess.

    Is there any tool that let MSPM0L factory state, like dbjtag for MSP432?

    Best regards,

    GR

  • HI GR,

    I received the customers' output file. I don't see anything in the data that would overwrite the Configuration memory.

    Does the customer have access to the BSL and NRST pins on their PCB?  If so, here is a simple procedure from the SDK user's guide FAQ section:

    Recovery Action 3. Force BSL with physical Reset:

    • Press-and-hold the BSL_Invoke button while pressing and releasing the Reset button.
    • The device should go to BSL and stay in Active mode for ~10secs.
    • Attempt to program immediately after releasing reset.

    Regarding a "reset tool", there is a tool that can recover MSPM0L, but it requires the SWD pins be enabled.  Here is link to factory reset tool.

     

  • Hi GR,

    Interesting... I tried both the project you provided as well as the generated output files and all programmed multiple times, which means my SWD pins are working.

    How did you create the MSP0L1304 project? Converted L1306 example? or new 'empty' project?

  • Hi Dennis-san,

    Thanks for your information.

    In my enviorment(MSPM0L1306 EVM), the fuctory reset tool works.

    And sucess to reset, SWD will be works!

    Thank you very much!

    Interesting... I tried both the project you provided as well as the generated output files and all programmed multiple times, which means my SWD pins are working.

    I tested write by CCS and Uniflash on compleatly same project.

    Result, After write using CCS SWD works nomally, However only after write .hex file on Uniflash, SWD does not works.

    How did you create the MSP0L1304 project? Converted L1306 example? or new 'empty' project?

    My customer's project (I had send) is based on(import by) MSPM0 SDK. 

    I think this issue is depend on Uniflash or .hex file.

    Is there any bugs in uniflash? (I use Uniflash 8.3.0)

    Best regards,

    GR

  • Hi GR,

    I apologize for the delay in response.  For faster response, you can re-open this post and I get a notification.

    Ok, good detective work by you.  Can you create a TI .txt format during the build and try programming the .txt image.  I'll reach out to SW team about Uniflash.

  • Hi Dennis-san,

    Thanks for supporting.

    As a result in my customer's reserch, It seems there are issue in CCS generating file.

    I post in this new topic:

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1307127/mspm0l1304-how-to-generate-binary-intel-format-hex-and-binary-bin-file

    Thanks,

    GR