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.

CCS Get Wrong Target Endian after Connection

I am using CCS6.1.2 with BH-USB560-M emulator for target ARM7TDMI (SM470R1B1M device which is BIG Endian - fixed). I configure my target configuration as Big Endian, but after connection, the CCS shows "ARM LE SPV" -- LE indicates it is Little Endian device.


Accessing to the memory mapped registers (used GEL file to write, then using memory window to read the registers in bytes format), also prove that the Endian is wrong. For example,  I wrote 0x00000100 to register at 0xFFFFFE0 (using GEL file), then read back from memory window it shows:

   0xFFFFFE00  00 00 00 00 00 01 00 00 ...


So, question:

  1.  1. Is this SW bug (CCS)? or it is caused by wrong HW setting?
  2.  2. How to force the CCS back to Big Endian (after it has configured it as LIttle Endian)?

Regards!

Wen

  • Wen,

    Thanks for reporting this. I tested a few JTAG debug probes with an ancient TMS470 ARM7TDMI device and the XDS560-class debuggers showed this problem: both my BlackHawk USB560 (not M) and my BlackHawk BH560v2. I also tested a BH510L (XDS510-class) and a XDS100v2 but they were fine.

    I will check and see what may be happening in this case, but I suspect this is a bug in the emulation stack.

    Regards,
    Rafael
  • Thanks Rafael for investigating this problem.
    I noticed that you used XDS100v2 for this device (ARM7). Are you sure that XDS100v2 can work with ARM7?
    We have a XDS100v2 emulator too, but the CCS (I am using CCS6.1.2) doesn't provide the target configuration options for XDS100v2+ARM7.
    If XDS100v2 does support ARM7, could you please let me how to create the target configuration?
    Thanks!
    Wen
  • Wen,

    If I recall correctly, the XDS100v2 support for ARM7 should have been part of the "TI Emulators" component version 6.0.83.1. CCSv6.1.2 comes with 6.0.14.5, therefore requiring an update. You can either go to menu help --> Check for updates or just update this single component. Both methods are described in section 2 of the page below:

    processors.wiki.ti.com/.../Updating_CCSv6

    Hope this helps,
    Rafael
  • Thanks Rafael!

    I have updated to the 6.0.83.1 emulator package, and the XDS100v2 is working with ARM7 now.

    Wen
  • Wen,

    Just for completion, we could verify the original issue happens with all JTAG debuggers that use XDS560-class drivers (XDS2xx, XDS560, XDS560v2) - to address this, I filed a bug.

    I apologize for the inconvenience,
    Rafael