Part Number: RM57L843
Hi QJ,
Based on the previous thread, the customer added uartstdio.c and uartstdio.h. And he added below statements in lwipopts.h
#define LWIP_DEBUG 1
#define LWIP_PLATFORM_DIAG(message) UARTprintf(message)
But compiler build failed.
Customer added below to ..\lwIP-1.4.1\ports\hdk\include\arch\cc.h and now build completed successfully.#if 1 ///added
/* Define (sn)printf formatters for these lwIP types */ #define U16_F "u"
#define S16_F "d"
#define X16_F "x"
#define U32_F "u"
#define S32_F "d"
#define X32_F "x"
#endif
But there are still two problems remain.
1) Debug messages are corrupted.
Alphabetical characters are shown properly, but %d, %c, %x, etc. are corrupted with strange characters.
2) After a few debug messages are shown, a data abort is generated inside UARTvprintf() in uartstdio.c.
Thanks and regards,
Koichiro Tashiro