Name:
#com
Syntax:

#COM device

Description:

Set the serial/USB COM port for downloading.

Applies To:
All
See Also:
Related Create:
Share:
Print:

Windows Examples

Examples for using the #com directives under a Windows operating system

Code Example:
#com 1 (Windows AXE026 serial)
#com 6 (Windows AXE027 USB*)
#com 1 (Windows CE AXE027 USB*)

*See the AXE027 USB cable datasheet for more details.
Copy Code Submit an Example

Linux Examples

Note that on Linux systems the COM port device name is actually one less than the COM port, so COM1 is “/dev/ttyS0”. Device names are also case sensitive - type exactly as shown.

Code Example:
#com /dev/ttyS0 (Linux AXE026 serial)
#com /dev/ttyUSB0 (Linux AXE027 USB*)

*See the AXE027 USB cable datasheet for more details.
Copy Code Submit an Example

Mac Examples

On Mac systems xxxx is a unique serial number. Device names are also case sensitive - type exactly as shown.

Code Example:
#com /dev/tty.usbserial-xxxx (Mac AXE027 USB*)
#com /dev/tty.iap (iPhone/iPod Touch AXE026 serial)

*See the AXE027 USB cable datasheet for more details.
Copy Code Submit an Example

Submit Your Own Code!

You must be logged in to submit code examples. Login now.