Changing P&E Connections Settings

All connection settings for P&E hardware interfaces are configured in the Launch Configurations dialog box.

Figure 1. P&E Kinetis Launch Configuration Dialog Box
P&E USB MultiLink Universal [FX]/Cyclone /OSJTAG Connection

The following table describes the options for this dialog box.

Table 1. Tool Settings - Disable user messages Options
Option Description
Interface Use this option to select the interface type. Select a supported interface from the list box. The options are:
  • USB Multilink Universal [FX] - USB Port
NOTE: The USB Multilink Universal and the USB Multilink Universal FX can conveniently support all Freescale architectures found in the current CodeWarrior 10 version
  • Cyclone - Serial Port
  • Cyclone - USB Port
  • Cyclone - Ethernet Port
  • TraceLink - USB Port
  • TraceLink - Ethernet Port
  • OSJTAG
  • OpenSDA
NOTE: Click on the "Compatible Hardware" link to help you determine which P&E hardware is most suitable for your project.
Port This option selects the port over which debug communications is conducted. Select an available port from the list box. NOTE: If you are having issues trying to get a port to display, click on the [FAQ #29] link for help.
Advanced Programming Options The Advanced Programming Options button brings up a dialog that provides you with options to configure the flash programming procedure.
Refresh Click this button to have the workstation scan for a valid interface and port. Valid interfaces and ports appear in the Interface and Port list boxes.
Specify IP (Cyclone Ethernet and TraceLink Ethernet only) Use this option to specify the IP address of a hardware interface outside of the local network. Click on the checkbox to enable the textbox. This will also disable the port dropdown box. Currently supports IPv4 only.
Specify Network Card IP (Cyclone Ethernet and TraceLink Ethernet only) Use this option to specify the local network card IP address if there are multiple cards on your computer. Click on the checkbox to enable the textbox. Currently supports IPv4 only.
Provide power to target (USB Multilink Universal FX and TraceLink only) Check this option to have the Cyclone or USB Multilink Universal FX (circuitry) supply power to the hardware target. Uncheck this option to not provide power.
Note: For USB Multilink Universal FX, use the jumper settings located at JP10 to provide either 3.3V or 5V.
Power off target upon software exit (USB Multilink Universal FX and TraceLink only) Check this option to turn off the power when the program terminates. Uncheck this option to leave the hardware target powered continuously.
Regulator Output Voltage (Tracelink only) This option adjusts the output voltage that powers the hardware target. Select a voltage value from this option's list box.
CAUTION:
An improper voltage setting can damage the board.
Power down delay (USB Multilink Universal FX and TraceLink only) This option specifies amount of time for which the target will be turned off during a RESET power cycling sequence. Enter the delay interval (in milliseconds) in this option's text box.
Power up delay (USB Multilink Universal FX and TraceLink only) This option specifies amount of time for which the target will remain powered prior to a RESET power cycling sequence. Enter the delay interval (in milliseconds) in this option's text box.
Debug Shift Freq. This option lets you to set the debug shift clock speed of P&E's interfaces. This integer value may be used to determine the speed of communications according to the following equations: Cyclone / TraceLink: (50000000/(2*N+5)) Hz USB Multilink Universal: (1000000/(N+1)) Hz USB ML Universal FX : (25000000/(N+1)) Hz OSJTAG : Fixed Frequency OpenSDA : Fixed Frequency The value n should be between 0 and 31. This shift clock takes effect after the commands in the top of the programming algorithm are executed so that these commands can increase the target frequency and allow a faster shift clock. This clock can't generally exceed a div 4 of the processor bus frequency.
Delay After Reset Specifies a delay after the programmer resets the target that we check to see if the part has properly gone into background debug mode. This is useful if the target has a reset driver which hold the MCU in reset after the programmer releases the reset line. The n value is a delay in milliseconds.
Always Mass Erase on Connect Performs a mass erase of the internal flash immediately upon connection. This is used to recover a device which was incorrectly programmed with junk data in its reset vector.
Use SWD Reduced Pin Protocol Uses the 2-pin serial wire debug (SWD) protocol instead of JTAG. SWD requires 2 fewer pins than JTAG.
Note: For Kinetis L-, E-, and M-Series, SWD protocol must be used.
Trace Max Buffer Size Only applicable for the P&E TraceLink interface. Configures the trace buffer capacity of the TraceLink. Smaller sizes result in faster trace upload times, whereas larger sizes allow the user to view more trace information.

To change P&E Connections settings, perform these steps:

  1. In the CodeWarrior Projects view, select the project for which you want to change the P&E Connections settings.
    Note: It is assumed that you have created a project and built it.
  2. Select Run > Debug Configurations from the main menu bar of the IDE.

    The Debug Configurations dialog box appears.

  3. Expand the CodeWarrior tree control in the left pane and select the launch configuration you want to debug.
  4. Click the Main tab

    The Main page appears in the area beneath the tabs.

  5. Select a system within Connection of which you would like to use to debug. You could create a new system by clicking the New button. For more details about creating a new remote system, refer to the topic Target Management via Remote System Explorer in the Freescale Eclipse Extensions Guide. Once a remote system is selected, click the Edit button. The Launch Configuration Panel will appear.
  6. Ensure that the Target is the correct microcontroller you want to debug. Use the drop-down box or the Edit button to change this option.
  7. In the Connection Type drop-down box, select P&E ARM Multilink/Multilink Universal/Cyclone /OSJTAG. The P&E connections settings will appear below.
  8. Click Refresh to scan valid interface and port.

    Valid interfaces and ports appear in the Interface and Port drop-down lists in the Connection Port and Interface Type group.

  9. Select a supported interface from the Interface drop-down list.
  10. Select a supported port from the Port drop-down list.
    Note: The port displayed may vary depending on the interface. For example, if you select interface as Cyclone - Serial Port, the available port option is COM1 : Serial Port 1.
  11. Specify settings in the Hardware Interface Power Control (Voltage --> Power -Out Jack) group.
    Note: This group will be enabled for the Tracelink and USB Multilink Universal FX interfaces only. For USB Multilink Universal FX interface, use the jumper settings located at JP10 to provide either 3.3V or 5V.
  12. Check the Provide power to target checkbox to have the hardware interface (circuitry) provide power to the target else clear the checkbox if you do not want to provide power to the target.
  13. Check the Power off target upon software exit checkbox to turn off the power when the program terminate else clear the checkbox to leave the hardware target powered continuously.
  14. Select a voltage value from the Regulator Output Voltage drop-down list. This adjusts the output voltage that powers the hardware target.
    CAUTION:
    An improper voltage setting can damage the board.
  15. Enter the delay interval (in milliseconds) in the Power Down Delay text box. This option specifies the time interval to wait before shutting off the power to the hardware target. The hardware interface powers down the device once the debug session is over, or while executing a power cycling sequence after beginning a new debug session.
  16. Enter the delay interval (in milliseconds) in the Power Up Delay text box. This option specifies the time interval to wait before turning on the power to the hardware target. If the power to target feature is enabled, the interface will power up the device while executing a power cycling sequence at the beginning of every debug session.
  17. Select a BDM speed using the drop-down box in the BDM Debug Shift Frequency.
    Note: If you select a fast BDM speed, there may be scenarios where you may have difficulty communicating with your target device. You may want to experimentally select a BDM speed that is fast and yet have a good communication with your target.
  18. Click on the Delay after Reset checkbox and enter the desired delay (in milliseconds) in the text box.

    This option specifies the time interval to wait between resetting and communicating the target device.

  19. Click the OK to save changes to the P&E Connections settings. The Launch Configuration Panel dialog box will close.
  20. Click on the Close button to close the Debug Configuration dialog box.