# SERIAL\_PORT\_1 in release mode

**URL:** <https://forums.digi.com/t/serial-port-1-in-release-mode/13758>\
**Category:** NET+OS\
**Tags:** serial, release, debug\
**Created:** [October 16, 2014, 8:28am UTC](https://forums.digi.com/t/serial-port-1-in-release-mode/13758 "2014-10-16T08:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrumley](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cbrumley](https://forums.digi.com/u/cbrumley)\
**Post date:** [October 16, 2014, 8:28am UTC](https://forums.digi.com/t/serial-port-1-in-release-mode/13758/1 "2014-10-16T08:28:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dakotas\_dad](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dakotas\_dad](https://forums.digi.com/u/dakotas_dad)\
**Post date:** [October 16, 2014, 8:49am UTC](https://forums.digi.com/t/serial-port-1-in-release-mode/13758/2 "2014-10-16T08:49:13Z")

</div>

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. 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).

---

<div class="post-metadata">

**Author:** ![cbrumley](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cbrumley](https://forums.digi.com/u/cbrumley)\
**Post date:** [October 16, 2014, 9:27am UTC](https://forums.digi.com/t/serial-port-1-in-release-mode/13758/3 "2014-10-16T09:27:44Z")

</div>

Thanks! That took care of it.
