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.

CCS/MSP432P401R: System_vsprintf hanged

Part Number: MSP432P401R


Tool/software: Code Composer Studio

Hi,

I am using System_vsprintf() to make a new string with variable arguments list as follows:

int16_t mk_stringf(uint8_t *outbuf, const char * format, ...)

{
    va_list args;
    int16_t i;

    va_start (args, format);
    i = System_vsprintf ((char *)outbuf, format, args);
    System_flush();
    va_end (args);

    return(i);
}

I build new string with mk_stringf function and then send it via UART_write calls.

If mk_stringf() function is called less than 3 times, it works fine without problems.

But, some functions need calling mk_stringf() heavily more than 20 times, then system crashed and hanged.

Does system heap or stack is broken if System_vsprintf() is called heavily?

Any advice will be appreciated.

HaeSeung

    

**Attention** This is a public forum