Use /com/1 for APP_STDIO (with Raven)?

It would be useful to me to have printf output go to serial port 2 (P2 on the dev. board), while my application is using port 1 to communicate with our device. The comments suggest this is supported by changing the #define of APP_STDIO_PORT in appconf.h to “/com/1”.

But when I try this in the nahttp_pd sample, the code appears to hang somewhere after calling tx_kernel_enter() from main() but before calling applicationStart().

Is it possible to simultaneously use the Raven debugger and direct stdout to port P2, and if so what are the steps required to do that?

If not, can you give more detail on when & how to use port P2 for debug output?

Thanks,
Dez

Dez,

In order to enable serial port 2 for STDIO use you have to modify and rebuild your BSP, followed by rebuilding the application.

Edit your c:
etos60_gnu\src\bsp\platform\connectme\bsp.h file and change
#define BSP_SERIAL_PORT_2 BSP_SERIAL_NO_DRIVER
to
#define BSP_SERIAL_PORT_2 BSP_SERIAL_UART_DRIVER
then rebuild your BSP and application.

Cameron