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.

CCS/RM46L852: Impossible to connect to the R4 core for debug and/or load a new firmware.

Part Number: RM46L852

Tool/software: Code Composer Studio

By using XDS110 debug Probe, in the last my test with RM46L852 and PMIC (TPS65381), following the example of the spna176a (NO_RTOS) that  it  uses interrupts in order to manage the  Q&A watchdog mode of the PMIC, at the moment that I set a breakpoint inside a routine, in order to check some variables in the code, I Iost comunication with the core and trying to restart the debug session it was not possible to reconnect the debug probe to the RM46.

This is the console content:

 CortexR4: Trouble Reading Register PC: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 8.0.803.0)
 CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: Error: (Error -1170 @ 0x0) Unable to access the DAP. 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 8.0.803.0)
 CortexR4: Failed CPU Reset
 CortexR4: Error: (Error -1170 @ 0x0) Unable to access the DAP. 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 8.0.803.0)
 CortexR4: Unable to determine target status after 20 attempts
 CortexR4: 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

I tryed to lunch the target configuration from "Target Configuration" tab and in this way I'am able to connect to the DAP but if I select the R4 core in the tree and I try to make a "sytem reset" I obtain this communication from the console:

 Dap: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 8.0.803.0) 

Furthermore if I tryed to force a connection to the CortexR4 core, I receive this error:

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

In this condition it's impossible to erase the flash,  the last loaded firmware runs at  power-up but it's impossible to start a debug session with the RM46...

Do you have any suggest ion order to solve this issue?

 

Thank you in advance,

Claudio

 

 

  • Hello Claudio,

    Does your code in MCU serve the TPS watchdog within the correct window? If not, the TPS65381 keeps resetting the MCU. Try the following method to connect the device:

    1. Hold on the nRST push button
    2. press or release the PORCYC push button

    After one second, release the nRST button. By doing this, the TPS655381 device will be forced into the safe state, in which the nPORRST is high, 3.3 V and 1.2 V are provided normally and ENDRV is driven low. Then, you can re-flash the device.

    If there is a switch between MCU PORRST pin and TPS65381 ENDDRV pin, you can switch it off for debug.
  • Hello Wang,

    I used the spna176 just like an example in order to take confidance with the Watchdog Q&A mode of the TPS65381, but my hardware is different and I don't have any PORCYC push button on my board that I'm able to use in order to make an IGN pulse...

    However, I tryed to put to GND the PORST pin of the RM46 (wich is connected to the NRES pin of TPS)  but when the RM46 restart itself, the micro reload the firmware and make a connection with tps wich serves the TPS watchdog correctly, in the right window (the ENDRV pin goes high).

    The issues is that I'm not able to connect the XDS110 Debug with the core... There is a way to erase the flash so as the RM46 doesn't reload any firmware?

    Do you have any idea, about the reason of this behaviour?

    This my schematic regarding the power supply... 

    Thank you so much,

    Claudio

  • hello alls,

    Is there a method for erase the hercules flash memory without connect the emulator?

    I'm not able to connect me to the core with the emulator any more. I'm sure that the emulator works because if I change the board under test everyting works correcttly.

    It seems that due to the intterrupt that I used in my last test fw, I'm not able to reconnect the emulator XDS110...

    Does someone a solution for this issue?

    Thank you in advance,
    Claudio
  • Hi Claudio,

    Is there any series resistor between MCU nPORRST pin and TPS nRES pin. If yes, please remove this resistor, then the TPS will not reset TMS570. Another way if there is no resistor is to lift the nRES leg.

    How is Warm_Reset used on your board?
  • Hello Wang,

    thank you so much for your replay, at the moment I solved my issue with the PMIC in this way:

    - I pull down the RM46 warm_reset ;

    - Meanwhile the RM46 is resetted, switching-off and switch-on the power-supply.

    - After this, I release the warm_reset.

    Now is possible connect the emulator in order to load a new firmware...

    In order to make a debug session with the emulator probabily I will have to cut the net between PMIC and RM46 and to pull-up the EN-DRV pin of the PMIC in order to enable the downstream circuit.

    Thank you so much for your help,

    Claudio Bindi