12.07.2015 Views

Getting Started with the TASKING VX-toolset for TriCore

Getting Started with the TASKING VX-toolset for TriCore

Getting Started with the TASKING VX-toolset for TriCore

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>the</strong> <strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>TriCore</strong>}printf( "debugging example.\n" );3. Save <strong>the</strong> file.4. Build your project.To be able to debug, it is essential that your project has been built properly!All steps required above are demonstrated in Chapter 2, Setting up a Project.Debugging a PCP projectA PCP project is always part of a <strong>TriCore</strong> project. The <strong>TriCore</strong> project must have a project reference to<strong>the</strong> PCP project. In order to debug <strong>the</strong> PCP project part, you need to disable debug <strong>for</strong> <strong>the</strong> <strong>TriCore</strong> project,because we want to debug <strong>the</strong> PCP project.1. In <strong>the</strong> active <strong>TriCore</strong> project, select Project » Properties <strong>for</strong> » C/C++ Build » Settings.2. In <strong>the</strong> Tool Settings tab, expand <strong>the</strong> C/C++ Compiler entry and select Debugging.3. Set <strong>the</strong> option Generate symbolic debug in<strong>for</strong>mation to None .Debugging a 8051 projectIn order to debug a 8051 project, follow <strong>the</strong> steps below.1. Create a 8051 project (<strong>for</strong> example, myproject), as explained above.2. Build <strong>the</strong> 8051 project.This results in a linked output file (.out).3. Create a <strong>TriCore</strong> project.4. In <strong>the</strong> <strong>TriCore</strong> project, make a project reference to <strong>the</strong> 8051 project.5. Build <strong>the</strong> <strong>TriCore</strong> project.This creates a <strong>TriCore</strong> ELF file in <strong>the</strong> de Debug directory of <strong>the</strong> <strong>TriCore</strong> project, and it creates a 8051ELF file in <strong>the</strong> Debug directory of <strong>the</strong> 8051 project.6. Make <strong>the</strong> 8051 project <strong>the</strong> active project.7. Create a debug configuration <strong>for</strong> <strong>the</strong> 8051 project, as explained in Section 3.1.2, Create a DebugConfiguration.8. Start <strong>the</strong> debugger, as explained in Section 3.2, Start a Debug Session.34

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

Saved successfully!

Ooh no, something went wrong!