Part Number: TMS570LC4357
Hello,
We are migrating code from TMS570LS3137 to TMS570LC4537 and my HET/HTU module doesn't work on TMS570LC4537. I'm setting the VCLK to 75MHz, HCLK 150MHz and High Res Clock to 25Mhz. It looks like the HET is working fine, but the HTU performs only one buffer transfer and after that nothing is transferred, even though the CFADDRA/CFADDRB and CFCOUNT are changing as expected. My HTU settings and usage is matching example from the TRM spnu563a section 24.6.2, except that I do clear my RAM buffers after getting the data, to make sure that new data is written. I tried One Shot mode instead of Circular, but got the same result. The same code was working fine on TMS570LS3137. The normal processing rate for the buffers is 5ms and the HET is measuring signal frequency of 1Khz (5 expected samples each time the buffers are processed). I wrote a test code that reads the buffers (before they are processed) every 1ms. Basically the test code is reading the address pointed by CFADDRA -1 (because CFADDRA is always pointing to the next element). In the attached debugger snapshot, the test memory (on the right) shows the HTU CFADDRA - 1 on the first column, the data read from the address pointed too on the second column and the CFCOUNT on the third column. The buffers size is set to 64, but only 5 elements are written, before it’s processed and switched. Per the Memory Browser you can see that the first 5 samples in Buffer A (starting address 0x0801A000) and Buffer B (starting address 0x0801A200) are correct, but after that nothing is updated and remains 0, even though the addresses and CFCOUNT are properly changing as expected. I even tried to transfer the program field instead of the data field of the PCNT instruction to make sure it is not HET problem, as the program field is constant and got the same result (no transfer occurs after the first set). The test code is visible in the center of the attached snapshot. If someone can direct me to why it is not working and what is different between the two processors that causes the issue I would be very thankful.
Alex.