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.

MSPM0L1306: Error connecting to the target: (Error -6305)

Part Number: MSPM0L1306
Other Parts Discussed in Thread: CCSTUDIO, SYSCONFIG

I have connected an MSPM0L1306 with a pinout board to the LaunchPad (LP-MSPM0L 1306). The internal MSPM0L1306 is disabled (Jumper to XDS110 opened)
GND, +3.3V, SWDIO, SWCLK, NRST are directly connected from XDS110 to pinout-Board.
The connection test in CCStudio is successful (target config - Test Connection), but I always get the error when starting a debug session:

CORTEX_M0P: Error connecting to the target: (Error -6305) PRSC module failed to write to a router register. (Emulation package 12.7.0.00105)

What can I do to access the registers of the external MSPM0L1306?

  • Check the debug probe configuration in Code Composer Studio (CCStudio). It should be correctly configured to communicate with the external MSPM0L1306 and  the settings should match your hardware setup.

  • Hi Beat,

    GND, +3.3V, SWDIO, SWCLK, NRST are directly connected from XDS110 to pinout-Board.

    Could you share you partial schematic of the MSM0L1306, please inlcude VDD,VCORE,NRST, and SWDIO, SWCLK.

    By the way, you could also try factory reset to recover the devcie: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1327840/lp-mspm0l1306-error--6305-prsc-module-failed-to-write-to-a-router-register-after-successful-factory-reset/5088986#5088986 

    B.R.

    Sal

  • Hello

    The instructions in e2e.ti.com/.../5088986
    did not get me any further. The factory reset only worked with the online tool:
    dev.ti.com/.../

    So let me show you my testing setup and how I have tryed to connect/programm the target.

    The experimental setup

    The Jumper-Pins GND, +3.3V, SWDIO, SWCLK, NRST from the launchpad are connected directly to the MSPM0L1306 SOT-16 (DYY), the remaining jumpers to XDS110 are left open.

    Pin assignement:

    NRST pin 4
    +3V (VDD) Pin 5
    GND (VSS) Pin 6
    SWDIO Pin 11
    SWCLK Pin 12

    1st Test: Connecting and testing the target MSPM0L1306

    - First, I imported the empty_mspm0l1306 project from the sdk into CCS:
    C:\ti\mspm0_sdk_2_00_00_03\examples\nortos\CUSTOM_BOARD\driverlib\empty_mspm0l1306\ticlang

    - In Sysconfig, I have changed the package type of the MSPM0L1306 to 'SOT-16(DYY)' and left the other settings at the default values and saved the entire project.

    - I have tested the communication to the target with 'Test Connection' in the target configuration. It works without errors (protocol below).

    - I connected the 'Non Debuggable Devices' (CS_DAP_0 and SEC_AP) of the target. It works also.
    However, when I try to connect CORTEX_M0P on the target, the following message appears:

    'CORTEX_M0P: Error connecting to target: (Error -6305) PRSC module could not write to a router register. (Emulationspaket 12.7.0.00130)'

    Screenshot shows the CCS after connecting to the target:


    Output protocol from testing the connection to the target ('Test Connection' in the target configuration):

    [Start: Texas Instruments XDS110 USB Debug Probe]

    Execute the command:

    %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity

    [Result]


    -----[Print the board config pathname(s)]------------------------------------

    C:\Users\beatb\AppData\Local\TEXASI~1\CCS\
    ccs1260\0\0\BrdDat\testBoard.dat

    -----[Print the reset-command software log-file]-----------------------------

    This utility has selected a 100/110/510 class product.
    This utility will load the adapter 'jioxds110.dll'.
    The library build date was 'Apr 19 2024'.
    The library build time was '14:04:01'.
    The library package version is '12.7.0.00130'.
    The library component version is '35.35.0.0'.
    The controller does not use a programmable FPGA.
    The controller has a version number of '5' (0x00000005).
    The controller has an insertion length of '0' (0x00000000).
    This utility will attempt to reset the controller to enter SWD mode.

    -----[Print the reset-command hardware log-file]-----------------------------

    This emulator does not create a reset log-file.

    -----[Perform the SWD Mode Integrity test]-----------------------------------

    This test will read the IDCODE register 1 time.

    The IDCODE register value is 0x6ba02477.

    The SWD Mode Integrity test has succeeded.

    [End: Texas Instruments XDS110 USB Debug Probe]

    2nd Test: Build Project and start debugging

    - I closed all connections to the target, built the project and started debugging:



    The following message appears while CCS tries connect to the MSPM0L1306

    'CORTEX_M0P: Error connecting to the target: (Error -6305) PRSC module failed to write to a router register. (Emulation package 12.7.0.00130)'

    Testing Results
    The error (Error -6305) PRSC occure if a connection to CORTEX_M0P should be established.

    --> How can I connect to CORTEX_M0P and what is the meaning of (Error -6305) PRSC ?

    Thanks a lot

    Regards
    Beat

  • Hi Beat,

    According to your PCB layout, there is no necessary capacitor on VCC/ VCORE / NRST (pull-up resistor).

    Please check whether you implement them.

    B.R.

    Sal

  • Hi Sal

    Now I added the 10uF and 0.1uF capacitors between VSS and VDD and the 47k resistor from VDD to NRST

    The connection to CS_DAP_0 and SEC_AP was successful:

    But if I tryed to connect the CORTEX_M0P the message was the same:


    I don't know what's going wrong. Is there any further information? Can I test which register fails to write?
    The MSPM0L1306 is out of the box and has no password. 

  • Hi Brand,

    Vcore is necessary for the MCU normally running. And better add the capacitor with NRST.

    If it insists on unconnected, then please do a factory reset to the devcie.

    You can get much guidance with search it in e2e thread. Below is an example you can refer:

    https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1326942/mspm0g3507-resetting-device-to-factory-settings/5084120#5084120 

    B.R.

    Sal