On the Connect ME, the -JTAG version connected to the development kit, there are two serial ports: SERIAL_PORT_1 and SERIAL_PORT_2. SERIAL_PORT_1 is used for stdio.
In my application, on the -JTAG version using the development board, I’m using SERIAL_PORT_2 (i.e. /com/1) for serial communication with an external RS-232 device. This way, I can still get stdio output on SERIAL_PORT_1.
However, now that I’m getting ready to deploy to a non -JTAG version, I need to redefine the port to be used as /com/0 (SERIAL_PORT_1) since SERIAL_PORT_2 doesn’t exist on the non -JTAG version of the Connect ME.
My question is, does NET+OS automatically disable stdio output on /com/0 and how do I make it do that? Is that a difference between debug build and release build?