time() function is always returning maximum value "TIME_MAX" (or) 0xFFFFFFFF

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DennisSSebasiSt
Level 1
Level 1
First reply posted First question asked Welcome!

I am working on microcontroller TC23X (Infineon), and my "time()" function is always returning the maximum value 0xFFFFFFFF I am using the compiler "Tasking VX Toolset for Tricore V6.3r1"

Can someone please help me how to resolve above issue. so that time() returns the time since the Epoch (00:00:00 UTC, January 1, 1970), measured in seconds

I have tried these methods "time(NULL), time(0) and time(&Var)"

0 Likes
1 Solution
User13836
Level 6
Level 6
50 likes received 50 solutions authored 100 sign-ins

You might want to take at look at the tc_time example project which is included in the TASKING TriCore tools v6.3r1. You can import this project into a TASKING Eclipe  workspace using:

File >> Import >> TASKING C/C++ >> TASKING TriCore Example Projects

and then select tc_time from the list of available example projects.

Best regards,
Ulrich Kloidt

TASKING tools support

 

View solution in original post

0 Likes
1 Reply
User13836
Level 6
Level 6
50 likes received 50 solutions authored 100 sign-ins

You might want to take at look at the tc_time example project which is included in the TASKING TriCore tools v6.3r1. You can import this project into a TASKING Eclipe  workspace using:

File >> Import >> TASKING C/C++ >> TASKING TriCore Example Projects

and then select tc_time from the list of available example projects.

Best regards,
Ulrich Kloidt

TASKING tools support

 

0 Likes