cancel
Showing results for 
Search instead for 
Did you mean: 

Program Counter Stuck at 0xFFFF_FFFF

Yalin Gurcan
Associate II

Hi all,

I am trying to program and debug an SPC570S40E1 mcu using the SPC5-UDESDK dongle and the UDE software. I was able to program a modified version of the SPC570Sxx_RLA CAN Test Application for Discovery sample code without any problems at first. Then I tried to set pin 58 as a GPIO output from the mcu pin wizard. After programming the mcu again, UDE says "Failed to determine user application running state! Assume still running" and the program counter is stuck at 0xFFFF_FFFF. The PORST pin is not toggling a falling edge after a power cycle.

I think I am stuck at Power Up of the reset sequence. Can anyone recommend a way to go forward so that I can at least erase the flash memory? Would forcing PORST manually to low fix make the sequence move to Phase 0 and onwards?

Thanks in advance.

3 REPLIES 3
Erwan YVIN
ST Employee

Hello Yalin ,

You should reset your board by PLS.

in a running state you can not flash or debug.

Best regards

Erwan

Yalin Gurcan
Associate II

Hello Erwan,

How can I reset the board using the UDE STK software?

Thanks

Yalin Gurcan
Associate II

Nevermind, the problem was caused by a faulty connection between mcu PORST and JTAG Reset pin.