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.

XDS560v2 Emmulator error with RDK and CCS5.2

Other Parts Discussed in Thread: LM3S617, LM3S6965

Hello,

I am developing some code for the LM3S617 micro using the RDK-STEPPER board, CCSv5.2.0.00069 and a Spectrum Digital XDS560vSTM emulator.

I load the firmware into the micro, run it and immediately get the following error:

    CORTEX_M3_0: GEL Output:

    Memory Map Initialization Complete

    CORTEX_M3_0: GEL Output: Watchdog Timer Enabled

    CORTEX_M3_0: GEL Output: UARTs Enabled

    CORTEX_M3_0: Error: (Error -1044 @ 0xFFFFFF4C) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Emulation package 0.0.0.0)"

If after a complete power cycle of the board and emulator I try again, I get the following:

    CORTEX_M3_0: GEL Output:

    Memory Map Initialization Complete

    CORTEX_M3_0: GEL Output: Watchdog Timer Enabled

    CORTEX_M3_0: GEL Output: UARTs Enabled

    CORTEX_M3_0: Flash Programmer: Timed out while writing to Flash memory

    CORTEX_M3_0: Trouble Writing Memory Block at 0x800 on Page 0 of Length 0x49f0: (Error -180 @ 0xA05F0001) The controller has detected a target power loss. The user must turn-on or connect the power supply for the target. (Emulation package 0.0.0.0)

    CORTEX_M3_0: GEL: File: C:\SOFTWARE\MAPS-StepperMotorControl\trunk\MAPS-StepperMotorControl\Debug\MAPS-StepperMotorControl.out: Load failed.


Another power cycle and I'm able to load the .out file again (but I still get the first error message when I try to run it).

I have checked the RESETn and power lines to the micro. All are good. Not sure what the Emualtion package 0.0.0.0 means.

There is a JTAG clock (set to 1MHz, TCLK looped-back enabled). I've also tried this with pins 9 and 11 connected together, same result.

I get the same results on a second RDK-STEPPER board.

The emulator works fine with an LM3S6965 Ethernet evaluation board.

If anyone has any clues, I'd be very grateful.

Cheers,

Ian

  • Ian,

    Sorry for the delayed reply but I don't have the RDK-STEPPER board handy to test this out and will try to get my hands on one.

    As a reference point, are you able to use the GUI software that comes with the board to load your binary to the device?

  • Hello,

    Thanks for replying and sorry for the long delay in my response. I didn't receive a notification as I usually do, so assumed that no one had replied to my original message.

    Anyway, to answer your question, I run the GUI program and get the error message "Error getting target ID", followed by "Read timeoout. common_main.c:469" and then "Error getting parameters". It is connected to USB UART[0] on power up and the USB cable is connected and the board has power.

    For comms I get the choice of USB UART (RDK s/n A800e92w) or COM7. Neither work.

    I suspect that my problem may be because the I have erased the bootloader program. I would like to be able to run my software directly from the reset vector and not via a bootloader, but in case I can't do that do you know how I can reflash the bootloader using either Blackhawk's USB510L or Spectrum Digital's XDS560v2 JTAG emulator? I've tried LM flash programmer to no avail.

    Cheers,

    Ian

  • Did you get solution for this? If Yes, Please let me know.