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.

TDA4VM: Can't reset TSC

Part Number: TDA4VM


Hi

I want to reset the TSC, but I cannot reset it even if I implement it as documented. Please let me know the correct reset procedure or the missing settings.

 

The following document contains the details of the registers

 

・C71x DSP CPU, Instruction Set, and Matrix Multiply Accelerator

 

There is a statement that the TSC can be reset by accessing the GTSC.

 

Problems

 

・MVK instructions cause errors and need to be changed to MVK64 instructions.

・The STSC column in the second row of the table is probably a typo and "Update TSC value" is correct.

 

・Considering the above, accessing GTSC as per the sample code does not reset the TSC.

 

 

 

■Execution Procedure

Test code :Timer.zip

8562.Timer.zip 

In this test code, TSC is displayed three times. Between the second and the third time, it tries to access GTSC according to the above procedure to reset TSC.

 

Build and run the provided project.

 →The following execution result will be displayed in the console.



■Results

===============

GTSC(0):0x00000029957118cd

STSC(0):0x0000000000000000

TSC(0):0x000000018b252e25

===============

GTSC(1):0x00000029957118d3

STSC(1):0x0000000000000000

TSC(1):0x000000018b252e43

===============

GTSC(2):0x00000029957118dc

STSC(2):0x000000018b252e4f

TSC(2):0x000000018b252e5e

 

・About the result of TSC(2)

Expected

TSC is reset.

A number close to zero appears in TSC(2).

Actual

Not reset

Thanks and Best regards,

HaTa.