The S12XEP100 cannot be halted by the CodeWarrior IDE after a program error

cancel
Showing results for 
Search instead for 
Did you mean: 

The S12XEP100 cannot be halted by the CodeWarrior IDE after a program error

333 Views
Contributor I

Hello,

I'm encounting a problem using the MC9S12XEP100 mcu. I tried a lot but did not help.

here list the details.

Environment:

MCU: MC9S12XEP100

IDE: CodeWarrior IDE v5.1

Connections: USBDM

Reproduce:

Connect the MCU to the HI-WAVE debugger through a USBDM device, reset and run it. The program will run away after a period of time, the MCU keeps in running state but cannot be halted.

Description:

  • All the memory space can be accessed and modified in Memory Component window
  • Intention to halt program or set a breakpoint is prevented. An error dialog shows "Unable to execute command. Press Yes to Ignore the Error and stay connected". Click Yes and the program keeps running.
  • Procedure of a Halt event recorded in Command Component like the following:

        GDI:    DiExecStop() ==> DI_ERR_NONFATAL

        GDI:    DiErrorGetMessage() ==> 1

        GDI:    Error Message ==> Unable to execute command

        GDI:    Reading From Memory Address: 0x381, count: 1

        GDI:    DiMemoryRead() ==> DI_OK

        GDI:    00

        STOPPING

  • All the interrupts do not occur any more (both in XGATE and S12X CPU). Like PIT and MSCAN module, they can work normally except the interrupt function.
  • The value of XGMCTL register read from memory is 0xC1
  • The state of S12X CPU cannot be sure

Hope the reply.

Best Regards.

Tags (3)
0 Kudos
1 Reply

8 Views
NXP TechSupport
NXP TechSupport

Hi Wankui.

This is USBDM related question.

I would suggest you ask your question to OSBDM and TBDML 

The engineers who focus on that space may help.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos