03.08.2013 Views

CodeWarrior Development Studio for Power Architecture - Freescale ...

CodeWarrior Development Studio for Power Architecture - Freescale ...

CodeWarrior Development Studio for Power Architecture - Freescale ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Working with Projects<br />

Debugging Projects<br />

p. Click Sequence and enter the port number as 8010.<br />

The channels must correspond to the trk-stub's mux channels added in the hypervisor dts file.<br />

q. Click Finish.<br />

The New Connection wizard disappears and the new remote system that you just created appears<br />

in Connection drop-down list in the Remote system group.<br />

r. Select all the cores that you want to debug from the Linux partition.<br />

s. In the Debugger options group, select the OS Awareness tab.<br />

t. Select Linux in the Target OS drop-down list. Note that it is mandatory to select Linux <strong>for</strong> the<br />

specific scenario described in this section.<br />

The Boot Parameters, Debug and Modules tabs appear.<br />

In the Boot Parameters tab:<br />

Make sure that you disable all the options available on this tab<br />

In the Debug tab:<br />

Select the Enable Memory Translation checkbox, and configure it according to the Linux<br />

MMU settings. For example:<br />

Physical Base Address 0x0<br />

Virtual Base Address 0xc0000000<br />

Memory Size 0x20000000<br />

Select the Enable Threaded Debugging Support checkbox<br />

The Update Background Threads on Stop option is used to remove the dead threads, which<br />

were debugged at some point during the debugging session, but later, were terminated or killed.<br />

NOTE This option might cause a decrease in speed because a big amount of memory must be read at<br />

every stop.<br />

u. Do not select the Enable Delayed Software Breakpoint Support checkbox.<br />

You have successfully created the Attach Launch configuration.<br />

v. Click the Debug button and attach the configuration to the running Linux kernel.<br />

2. Create a <strong>CodeWarrior</strong> Download launch configuration to debug a Linux partition from an entry<br />

point or a user-defined function<br />

a. From the <strong>CodeWarrior</strong> group, select the newly imported launch configuration.<br />

b. On the Main tab, select Download from the Debug session type group.<br />

c. On the Main tab, from the Connection panel, click New next to the Connection drop-down list.<br />

The New Connection wizard appears.<br />

d. Select TRK Connection from the <strong>CodeWarrior</strong> Bareboard Debugging list.<br />

42 <strong>Power</strong> <strong>Architecture</strong>® Processors Getting Started Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!