TSS1_Configure returns with TSS_ERROR_CONFSYS_HWRECALIB_PENDING

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TSS1_Configure returns with TSS_ERROR_CONFSYS_HWRECALIB_PENDING

1,494 Views
lategoodbye
Senior Contributor I

Hi,

i'm using K20 TSI with TSS Ver 3.1 without OS. Before the mainloop the application is calling TSS1_Configure(), but it returns with error code TSS_ERROR_CONFSYS_HWRECALIB_PENDING which is caused by the following line:

/* Configures System SystemConfig Register */

  u8Result |= TSS_SetSystemConfig(System_SystemConfig_Register, TSS_SYSTEM_EN_MASK | TSS_DC_TRACKER_EN_MASK);

Looking at TSSAPIRM show me the meaning:

The configuration is not successful because the hardware recalibration is in progress.

In my TSS configuration the option "Automatic HW Recalibration" under "Code size reduction" is activated. If i disable this option, the problem disappear.

How can i avoid this error?

Labels (1)
0 Kudos
13 Replies

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

HI Stefan

I am little bit confuse, if you disable the "Code size reduction" the problem disappear?

This can be due the code size reduction only set the minimum part of the library and also reduced the code, so probably this is not enable some function used on the HW recalibration.

Are you using processor expert to generate your code?

also you can check tha sample code that is instal on the TSS folde, normally is on the following folder

C:\Freescale\Freescale_TSS_3_1\examples\TWRKXX_DEMO\build\cw10

I hope this will help you.


Have a great day,
Vicente

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

Hi Pedro,

the problem is reproducable with a TWR-K60N512. I attached a KDS 1.1.0 project for TWR-K60N512 to reproduce the problem.

Best regards

Stefan Wahren

0 Kudos

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Stefan

I try to check your code, but you are using KDS 1.1

I have create a project with KDS 3.0 with out problems.

Please check.

Regards

Vicente

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

Hi Vicente,

i updated my KDS to 3.0 and PE to 3.0.1. After that i took your example and changed the CPU package according to my TWR board.

But finally the problem is still reproducable (screenshot attached):

The result of TSS_Configure returns with error code 0x0b (= TSS_ERROR_CONFSYS_HWRECALIB_PENDING).

Expected behavior:

The result of TSS_Configure returns with error code 0x00.

0 Kudos

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Stefan

I am checking this behavior, please give me some time.

Vicente

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

Hi Vicente,

are you able to reproduce it? Any suggestions to fix?

Stefan

0 Kudos

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Stefan

yes, I reproduced your problem, and I believe that the error is due the recalibration is perform until we call the TSS_Task, but I am waiting for the confirmation from the apps.

If you continues running the code it work properly, well this is my case using the K60

Once I have the confirmation I will let you know.

Have a good day.

0 Kudos

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Stefan

I am still working with the developer, please give me more time.

Regards

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

Hi Vicente,

what's the current status about the issue?

Regards

0 Kudos

1,096 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Stefan

I do not have any update.

Regards

Vicente

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

okay

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

Okay, i looked at the sample code, but it ignores the result code of TSS_SetSystemConfig() complete.

0 Kudos

1,096 Views
lategoodbye
Senior Contributor I

if you disable the "Code size reduction" the problem disappear?

To be more precise if i disable the option "Automatic HW Recalibration" the problem disappear. But it's obvious because the error is caused by the recalibration. I only want to mention that.

Are you using processor expert to generate your code?

Yes, the processor expert from KDS. My whole problem description refers to KDS.

I will take a look at the sample code, if i'm back in office. But it seems to refers to CodeWarrior not KDS, isn't it?

0 Kudos