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.

AWR1243: Logging in mmwavelink - compiler errors

Part Number: AWR1243


Hi everyone,

I hope I can reach someone from TI here, maybe it will help someone else.

When enabling debugging by setting RL_DISABLE_LOGGING to 0 in mmwavelink.h my compiler fails to compile the code with a lot of strange errors. After digging I found out that someone at TI obviously added some comments to the source code and released that without checking. You cannot add comments in between a multi line define statement!

So either remove the comments in rl_trace.h which are embedded in a define or just add a \ at each comments lines end. E.g. turn

#define RL_LOGV_ARG0(x)             {\
                                    /* get the logging function pointer as per requested Level */
                                    rlPrintFptr fPtr = rlGetLogFptr(RL_DBG_LEVEL_VERBOSE);\
                                    /* check for NULL Pointer */
                                    if(fPtr != NULL)\
                                    {\
                                        /* log the data with function name, line no and passed arg */
                                        fPtr("[VER ] %s:%d::" x, __FUNCTION__, __LINE__);\
                                    }\
                                }

to

#define RL_LOGV_ARG0(x)             {\
                                    /* get the logging function pointer as per requested Level */\
                                    rlPrintFptr fPtr = rlGetLogFptr(RL_DBG_LEVEL_VERBOSE);\
                                    /* check for NULL Pointer */\
                                    if(fPtr != NULL)\
                                    {\
                                        /* log the data with function name, line no and passed arg */\
                                        fPtr("[VER ] %s:%d::" x, __FUNCTION__, __LINE__);\
                                    }\
                                }

Also the definition of rlGetLogFptr should be moved to the top of the document to prevent warnings. There are also some other warnings about signdness errors but I guess that is not a problem - should be fixed anyway.