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.

TMS570LC4357: HET2 and HTU, how to reset HTU when system in idle

Part Number: TMS570LC4357

Tool/software:

Hi

 

We are using TMS570LC4357 HET2 with HTU, dual buffer, configured for 127 frames, each 5 elements.

I want to stop the HET when system is in idle. On external command we then need to start the transfer of data again. It seems to work, and I am using GCR register to start and stop the HET.

The problem is to reset the HTU when in Idle. Reading the CFCOUNT register of the CDCP it picks up where it stopped when we are staring the HET again.

I tried to reset the CFADDRA and CFADDRB and write 0 to CFCOUNT of the CDCP when in idle without any luck.

Any tips?

 

Also how to stop the HTU when debugging, haven’t figured out how.

When free running and reading the HTU buffers the data looks ok but when I break in the interrupt for the HTU the data looks wrong. Large chunks of 0x00. Each frame has a counter that increases like expected when system is running that we use for verification. 

Thnaks.