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.

strftime, localtime TMS320F28335 Toolchain 6.4.6

Hello all,

I want to convert a variable of type time_t into a timestring in an Interrupt Service Routine like this way:

strftime( PrSealCheckDateStr, 19, ": %d-%m-%Y", localtime( &DateAndTime_t ) );

This works well, if I do this in the main loop. Now my question is:

Can I use the strftime and localtime function in an interrupt Service routine, when I use the functions in the main Loop, too?

Thanks in advance

  • AWG said:
    Can I use the strftime and localtime function in an interrupt Service routine, when I use the functions in the main Loop, too?

    No.  Unfortunately, TI has no solution that supports concurrent multiple activations of localtime.

    Thanks and regards,

    -George

  • Hi George,

    is there a list of functions that I can call in an interrupt and in the main program at the same time?

    Thanks in advance

    awg

  • There's no comprehensive list, but see processors.wiki.ti.com/.../Reentrant for a partial list.
  • Ok, the list ist very helpfull. Thank you very much.

    Sometimes I see "Please click Verify Answer on the best reply to your question", but I did not see this button.

    Is it not enough to click the link in the e-mail: To unsubscribe from only this thread, go here.?

  • AWG said:
    Sometimes I see "Please click Verify Answer on the best reply to your question", but I did not see this button.

    That line comes from my signature.  You only see it at the end of my posts.  Once you click Verify Answer on a post, then that button changes to show Reject Answer.  You can click Verify Answer on more than one response in a thread.

    AWG said:
    Is it not enough to click the link in the e-mail: To unsubscribe from only this thread, go here.?

    Clicking that link means you no longer receive an e-mail when anyone posts to the associated thread.

    Thanks and regards,

    -George