Change MQX Serial Console Port

MQX projects do not allow you to modify the serial console port individually; all projects link with the BSP library which is built only once and is the library which determines the I/O port. By default, all BSPs are configured to use the on-board virtual serial port available on the microUSB port.

To change the default serial port you need to import the MQX 4.0 libraries for your module into your Workspace and modify the user_config.h file. Look for the definition of the BSP_DEFAULT_IO_CHANNEL macro and change it for the desired port. For example, in TWRK60N512 and TWRK53N512 the microUSB port is "ttyf:" and the TWR-SER DB9 is "ttyd:"; while in TWRK70F120M both are routed to "ttyc:"

For more information on how to build your MQX libraries, please refer to the Build MQX Libraries chapter.

Tip In CodeWarrior 10.x you can edit it with the ProcessorExpert tool which will give you more information about the values each option can take.