eTPU, UART and Debugger
Posted: Wed Sep 29, 2010 4:11 pm
I apologize if this is in a forum somewhere - I did a search with no results.
In UserMain, using the following code.
InitializeStack();
if (EthernetIP == 0) GetDHCPAddress();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
EnableTaskMonitor();
// InitializeNetworkGDB();
eTPUInit();
m_diagFd = eTPUFDUartOpen(4,3,MDCP_BAUDRATE, // 115200
MDCP_DATABITS, // 8
MDCP_PARITY, // no parity
FS_ETPU_PRIORITY_MIDDLE);
When compiled, I/O to the specified UART works as expected. If the 'InitializeNetworkGDB' (or the associated _and_Wait) is uncommented, the debugger works, but the UART does not function (no I/O).
We are a bit puzzled as to the reason and was wondering if there was a solution (except for using lots of iprintf's for debugging).
In UserMain, using the following code.
InitializeStack();
if (EthernetIP == 0) GetDHCPAddress();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
EnableTaskMonitor();
// InitializeNetworkGDB();
eTPUInit();
m_diagFd = eTPUFDUartOpen(4,3,MDCP_BAUDRATE, // 115200
MDCP_DATABITS, // 8
MDCP_PARITY, // no parity
FS_ETPU_PRIORITY_MIDDLE);
When compiled, I/O to the specified UART works as expected. If the 'InitializeNetworkGDB' (or the associated _and_Wait) is uncommented, the debugger works, but the UART does not function (no I/O).
We are a bit puzzled as to the reason and was wondering if there was a solution (except for using lots of iprintf's for debugging).