How to display debug message?
• Turn On PDA OS debug mode (Please refer to “How to enable/disable PDA OS debug mode [link]”) • Use an RS-232 DB9 cable to connect PDA external COM port and PC RS-232 port. • The cable pin should be crossover – meaning connect Pin 2 to Pin 3 and Pin 3 to Pin2. (TX-RX) • The cable only needs to use pin 2, pin 3, and pin 5. • Run HyperTerminal on the PC side and set the following parameters:\ • Hyper Terminal will show the OS calling API status. • If PDA OS is in debug mode, external COM port will be occupied by the OS. Other programs will show “fail” when calling external serial port functions. • To output debug string for users to develop programs or drivers in C++, users can add code- TRACE().