Post Go back to editing

ADZS-HPUSB-ICE: Error 0x8004801e – USB Data Count Error

Hello,

I have the error 0x8004801e - USB Data Count Error opning a session to a Blackfin BF518.

If I run the ICE test it works fine without any error.

If I use the ADZS-HPUSB-ICE with other boards with BF518 it works fine.

Before it stopped working I was debugging a test project based on the "FPGA_memory_test" in order to communicate with our FPGA board.

this is the code I run:

*pEBIU_AMBCTL0 = 0xFFFFFFFF;
ssync();
*pEBIU_AMBCTL1 = 0xFFFFFFFF;
ssync();
*pEBIU_AMGCTL = 0x00F3; //AMBEN[0] and CLKOUT
ssync();

#define FPGA_START 0x20000000 // start address of FPGA (uses /AMS0)
#define FPGA_SIZE 0x00000200 //4096 bits

volatile unsigned int *pDst;

int wrBank0 = 0x1234, rdBank0;

pDst = (unsigned int *)FPGA_START;

*pDst = wrBank0;

msWait(1);

rdBank0 = *pDst;

if (rdBank0 != wrBank0)
bError = 0;

Running it in debug it stopped at "*pDst = wrBank0" and the emulator lost connection.

After that I was not able to connect to the target anymore with the error above.

Is it possible that I damaged something running that code?

How can I restore JTAG communication?

Thank you and best regards

Marco

  • Hi Marco,

    The 0x8004801e error can be caused by either a fault with the emulator or with the target board. To help us narrow down the cause of the problem can you please send us the following information:

    1. We suspect that the issue is related to a specific project. Could you please confirm whether you are able to debug a simple or example application successfully in the same setup (ie., same board, emulator, and IDE version on the same machine).
    Also, try with the different PCs and let us know how you gets on. This will help us to isolate whether the issue is related to a specific setup and project.

    2. When trying to connect to your session, do you receive any error messages? If so, please send in details of these errors and if possible screenshots of them.

    3. Please provide us with a screenshot showing the ICE Test results. As you mentioned that the ICE Test passes, you may want to take a look at the FAQ we have here: FAQ:  Why does the ICE Test pass but IDDE cannot connect to target?
    ez.analog.com/.../faq-why-does-the-ice-test-pass-but-idde-cannot-connect-to-target

    4. Do you have any other emulators of the same type(HPUSB-ICEs), which operate correctly with the same target board and PC?

    5. Have you successfully used this board before or this is the first time you are using and facing the issue?

    6. Have you used this emulator on a custom board or an EZ-KIT board? If you’re using a custom board can you please confirm that it complies with the JTAG Technical Reference Guide EE-68, which is available online at the following location: http://www.analog.com/ee68

    7. Please try deleting and recreating your session, and see if the connection issue persists.

    8. Please let us know which tool(CCES/VDSP), version, and operating system you are using.

    9. Screenshot of the device manager which shows the emulator and screenshot of the driver tab by clicking the emulator > properties > Driver.

    10. Also, please read through our Emulator and Evaluation Hardware Troubleshooting Guide and let us know the results of the troubleshooting steps it advises.

    Please refer to the below EE note for VDSP++.
    www.analog.com/.../EE-175.pdf

    Please refer to the below EE note for CCES.
    www.analog.com/.../EE356.pdf


    Regards,
    Nishanthi.V

  • 1. As I described before I can't debug anything on this board after I had this issue. I lost connection while running that code in debug and after that I am not able to connect to the target board anymore. I tried also with a different PC with the same result. Anyway the emulator works fine with other custom boards and demo boards.

    2. 

    3. 

    4. I have a ADZS-HPUSB-ICE and a ICE1000 and both fail in opening a session with this board, but both work fine with other boards.

    5. I use this board before without any problem. As I described in the message I was debugging a test project based on the "FPGA_memory_test" in order to communicate with our FPGA board. Running it in debug it stopped at "*pDst = wrBank0" and the emulator lost connection. After that I was not able to connect to the target anymore with the error above.

    6. Our custom board complies with the JTAG reference. We have been using these boards for several years without any problem.

    7. Deleting and recreating the session does not resolve the problem.

    8. 

    9. 

    10. I checked the reset signal and it is ok, but I don't know what is the "bus request signal" and how to chek it. The other troubleshooting steps about using different emulators or different target boards confirms the fact that the emulators work fine on any other board.

    Is it possible that I damaged something running that test code?

    Is there any error in that code? If I damaged the board I can repair it substitute with a new one, but I need to know if there is something wrong in that code that may cause the same problem with a new board.

    Thank you and best regards

    Marco

  • Hi Macro,

    We understand that you have already contacted our private support. To avoid duplication of efforts, please continue the discussion there regarding this issue.

    Hence we are closing this thread.

    Regards,
    Nishanthi.V