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.

HTU transfer with bus error



Hi there,

I am new to HTU transfer. After configured the HTU as a one request, 1 element transfer, dual buffer implementation, auto switch mode, NHET data to RAM buffer, I got the Bus error in field of INTTYPE0 in register HTU INTOFF0 (0x00000300), register HTU CPENA is changed from 0x00000001 to 0x00000000, HTU ACPE is changed from 0 to 0x82000000, HTU BERINTFL changed to 0x00000001(channel 0 buffer A transfer has issue), and I am not able to get the normal buffer full interrupt.

It looks I have the valid CPU ram buffer address, I am able to see the NHET data detect signal edges,  just wondering what causes the bus error.

Thanks

Gary

  • Gary,

    Which product are you trying this on?

    Also how do you have your DCP's configured?

    The BUS error means something happened in the interconnect and something like a wrong address could be the culprit.

  • Hi Anthony,

    Thanks for the response to my question.

    I tried on Gladiator, for testing the code, I only configured one channel, I configured DCP as NHET data to CPU RAM, 32bit data transfer, 1 element,  main memory post-increment, auto switch for both buffer A and B, more than 1 frame count, I checked buffer A and B are assigned valid addresses, and the NHET address is the instruction number times 4, then + 2 as to point to the data field.

    The hardware has the signal to the NHET pin as active right after power up, but I reset the error flag before enable the HTU and the VIM HTU LVL 0 interrupt.

    Thanks

    Gary

  • Hi Gary,

    This sounds right and that device doesn't have any additional MPU in the path.    Did you leave the MPU in the HTU disabled? 

    Probably need to get the hex values that you are writing into the DCP just to double check they are ok. 
    Not sure where else to look so probably looking there is the place to start. 

  • Hi Anthony,

    It is the HTU ram that was not enable by MPU. Now it works.
    Thank you, appreciate your help.

    Best Regards
    Gary Zhang