Hi,
The board I am testing is MTRCKTSPS5744P (3-Phase PMSM Motor Control Development Kit with MPC5744P MCU).
For some reason, the download process doesn't go well.
This window pops up after failure in downloading when I click debug button.
eunwoo_lee_0-1789496057004.png
An window pops up showing this error message.
Error in services launch sequence
PEmicro GDB Launch Failure : The GDB Server was not able to establish a connection to the target processor. Please check your connections and power. Verify that the launch settings in the Debug Configuration are accurate.
Console panel displays this message.
Connection from "127.0.0.1" via 127.0.0.1. Connection from port "53438" to 7224
PE-ERROR: Warning. Can't read registers while part is running.
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't read registers while part is running.
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't read memory while part is running. @0 (4 bytes)
PE-ERROR: Warning. Can't Write Binary while part is running. 40001000 - Length of: 0 - Value of: Binary Data
PE-ERROR: Warning. Can't Write Binary while part is running. 40001000 - Length of: 460 - Value of: Binary Data
PE-ERROR: Warning. Can't Write Binary while part is running. 40001460 - Length of: 460 - Value of: Binary Data
PE-ERROR: Warning. Can't Write Binary while part is running. 400018c0 - Length of: 460 - Value of: Binary Data
PE-ERROR: Warning. Can't Write Binary while part is running. 40001d20 - Length of: 2e0 - Value of: Binary Data
PE-ERROR: GDB Client Processing : Exception Occured : PROGRAM EXCEPTION!
EXCEPTION CLASS: EIDCONNCLOSEDGRACEFULLY
MESSAGE: CONNECTION CLOSED GRACEFULLY.
ADDRESS 0X0046EA89
Disconnected from "127.0.0.1" via 127.0.0.1. Disconnection by port "53438" from 7224
Target Disconnected.
Is there any solution you know for this problem?
Thanks.
Hello,
Is there any solution you know for this problem?
As the message explains you cannot write/read registers on the fly. First stop the execution of the code in debugger and then you can modify the registers, memory, etc...
The MPC5744P is running user code and the P&E probe is unable to halt the device, therefore all memory/register accesses fail and the download operation aborts.
This looks less like a flash programming problem and more like a debugger failing to halt the MPC5744P before download.
Is there for example SW with SWT0 enabled in the microcontroller?
Or is it a fresh sample with no SW running?
Best regards,
Peter