Home/Support/Support Forum/SERIAL_PORT_1 in release mode
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

SERIAL_PORT_1 in release mode

0 votes
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?
asked Oct 16, 2014 in NET+OS by cbrumley New to the Community (5 points)

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
Hello

Assuming you are developing under the Digi DE entitled ESP, look at the following:

in the "Project Explorer" pane under the project, look for bsp\7_5\<your platform>. Look for file bsp_sys.h. In bsp_sys.h look for the following macros:

BSP_STDIO_PORT defines which port us used for STDIN, STDOUT, STDERR. Define as needed ("/com/0 | "/com/1"...).

BSP_DIALOG_PORT defines the port used for the dialog. Define as needed ("/com/0 | "/com/1"...).

BSP_ENABLE_DIALOG defined where or not a dialog is displayed at all (TRUE | FALSE).
answered Oct 16, 2014 by dakotas_dad Veteran of the Digi Community (694 points)
selected Oct 16, 2014 by cbrumley
Thanks! That took care of it.
...