Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/AM6548: Issue GCC v7.2.1 aarch64 using varargs for AM65xx

$
0
0

Part Number:AM6548

Tool/software: Code Composer Studio

I post this issue in this form because I don't know where else to post, sorry.

---

I have a AM6548-IDK and a small program for the A53 core.

Here I have the following 2 lines of code:

        UART_printf("d: %d\n", 100000);
        App_print(  "d: %d\n", 100000);

Here is the function App_print() :

void App_print(const char *format, ...)
{
    va_list vaArgPtr;

    va_start(vaArgPtr, format);
    UART_printf(format, vaArgPtr);
    va_end(vaArgPtr);
}

Now the vaargs in the App_print don't work, the forwarding of the variable arguments don't work.

The output is:

d: 100000
d: 1879506800

Up to now I spend a full day on this doing a lot of double-checks, vsnprintf, checking compiler options, searching gcc bugs via google etc.

Has anyone an idea?

Ruediger


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>