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.

TMS570LS1224: TMS570LS1224

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hi,

at the moment I am working with HALCOGEN and CCS to programm my TMS570 microcontroller.

I have tryed to use snprintf from the stdlib to convert a 16Bit-Int into a character. My problem is whenever the Funktion snprintf is called my Prozessor completly freezes and does nothing at all.

I also tried the same code on a different Processor type and it worked. Now i don´t know what to do next.

Does anybody know a solution to this Problem?

Thanks for the Help!

  • Michael,

    Have you tried this in a debug environment to see if there are any exceptions (Abort or prefetch abort) that happen? Sine these usually vector to a branch to self in the default code, it sometimes appears as though the device is locked up.

    If it is locking up during debug, then there is probably an parameter that is out of range. Can you clarify what you mean by converting a 16 bit integer into a character. Usually you would need to pass in an unsigned char type to convert to an ASCII character unless you are trying to convert to a UNICODE character set which I don't believe snprintf would support.