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 />

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 />

q. Select the Enable Delayed Software Breakpoint Support checkbox.<br />

r. In the Debugger options group, select the Debug tab<br />

s. Select the Stop on startup at (exit) checkbox in the Program execution options group<br />

Select the Program entry point option, if you want the debugging session to start from 0x0<br />

Specify the function name in the User specified field, if you want the debugging session to start<br />

from a specific kernel function.<br />

t. In the Debugger options group, select the Download tab<br />

u. Make sure that the Per<strong>for</strong>m standard download checkbox is not selected. The hypervisor<br />

transfers the required kernel images <strong>for</strong> partition boot to memory.<br />

You have successfully created the Download Launch configuration. Click the Debug button and<br />

observe the Linux partition restarting, hypervisor loading the kernel images, and the debug session<br />

stopping at the Stop on startup at point/function, if specified.<br />

NOTE For more detailed instructions, refer to the <strong>CodeWarrior</strong> <strong>Development</strong> <strong>Studio</strong> <strong>for</strong> <strong>Power</strong>®<br />

<strong>Architecture</strong> Processors Targeting Manual available in the \PA\ folder.<br />

44 <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!