[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] LwIP V1.3.2 + FreeRTOS V8.2.1 + STM32F107 strange failu
From: |
Sergio R. Caprile |
Subject: |
Re: [lwip-users] LwIP V1.3.2 + FreeRTOS V8.2.1 + STM32F107 strange failure |
Date: |
Wed, 20 Jan 2016 09:52:27 -0300 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
To send debug info to your UART, you have to correctly set the macro
LWIP_PLATFORM_DIAG in your port. Check for examples in the contrib tree,
contrib/ports/unix/include/arch/cc.h (for example...)
It usually is something like
/* Plaform specific diagnostic output */
#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0)
How to redirect printf to your UART depends on your compiler and is
beyond this list. You can use any other function here, by the way.
Then, when compiling, you have to enable debugging by defining LWIP_DEBUG