Download CodeWarrior Target Resident Kernel Reference

Transcript
Chapter 4 Customizing CodeWarrior TRK
4.2.3 Changing Data Transmission Rate
CodeWarrior TRK can communicate with the debugger at transmission rates between
300 baud and 230.4k baud. To change the data transmission rate (baud rate), set the
transmission rate at compile time by setting the constant TRK_BAUD_RATE to a value of the
enumerated type UARTBaudRate. Then rebuild CodeWarrior TRK.
NOTE
This is a required customization. For more information, see
Customizing CodeWarrior TRK.
Set the data transmission rate to the fastest speed that your UART can use without losing
characters. If your board and UART driver support hardware or software flow control, set
TRK_BAUD_RATE to the maximum data transmission rate for the UART. However, if you
experience problems while using CodeWarrior TRK, try lowering the data transmission
rate.
NOTE
UARTBaudRate is defined in UART.h. In the default implementation,
TRK_BAUD_RATE is defined in the file target.h.
You must also set the debugger to communicate at the same data transmission rate as
CodeWarrior TRK. For more information, see the Targeting manual for your target
processor and the processor-specific appendixes in this manual.
NOTE
The maximum data transmission rate for the Solaris-hosted
CodeWarrior debugger is 38.4 KB. Consequently, if you are
using the Solaris-hosted debugger, you must set the data
transmission rate in CodeWarrior TRK to 38.4 KB, even if the
target board accepts a faster rate.
4.2.4 Customizing CodeWarrior TRK to be Interrupt-Driven
Depending on the target board, CodeWarrior TRK uses either serial polling or interruptdriven communication to respond to messages sent by the debugger. Interrupt-driven
communication is the default communication method for target boards for which
CodeWarrior TRK currently supports that communication method.
CodeWarrior Target Resident Kernel Reference, Rev. 10.5.0, 06/2015
Freescale Semiconductor, Inc.
41