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.

F29H85X-SOM-EVM: Trouble Writing Register PC_FORCE

Part Number: F29H85X-SOM-EVM
Other Parts Discussed in Thread: XDS110ISO-EVM,

Tool/software:

Hello,

When debugging gpio_ex1_toggle on F29H85X-SOM-EVM with XDS110ISO-EVM below debug output is appearing 

C29xx_CPU1: Trouble Writing Register PC_FORCE: (Error 0xFFFFFAAF - hpti_context_cmapi_c29x:WriteRegister:391) Cannot modify PC while halted in an ISR (Emulation package 20.1.0.3429)

Why this error is happening, is there any configuration that needs to be changed in project (ex. Emulation package) ?

Thanks,

Nida

  • Hi,

    Is the current execution in the ISR context ?

    ) Cannot modify PC while halted in an ISR

    When do you see this error message ? If its during flash programming can you try doing a CPU reset and then program load ? Doing CPU reset, gets CPU context out of ISR execution context

    Thanks

  • Hello Prarthan,

    When do you see this error message ?

    This error message happens when CPU1 is in HALTED state. 

    But when I do the following: select the Start Project-less Debug, then connect to CPU1, load and run the program (CPU1 must be in a running state), then connect to CPU2, load and run the program -> error message does not appear and both CPUs work fine.

    If its during flash programming can you try doing a CPU reset and then program load ? Doing CPU reset, gets CPU context out of ISR execution context

    Yes it is during flash programming. But when I do a CPU reset on CPU1, and then try to connect to CPU2, it gives this error:

    C29xx_CPU2: Error connecting to the target: (Error 0xFFFFFB0E - hpti_context_cmapi:Connect:106) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 20.1.0.3429) 

    Even CPU1 is in running state after CPU reset, the connection to CPU2 or CPU3 is not happening. So it does not work.

    Thanks,

    Nida