02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3<br />

Creating a New <strong>BSP</strong><br />

3.1 Introduction<br />

Creating a new <strong>BSP</strong> using tools available under Tornado requires that you handle<br />

the development in graduated steps, each building on the previous, as follows:<br />

1. Set up the basis of the development environment.<br />

2. Write the <strong>BSP</strong> pre-kernel initialization code.<br />

3. Start a minimal VxWorks kernel and add the basic drivers for timers, serial<br />

devices, and an interrupt controller.<br />

4. Start the target agent and connect the Tornado development tools.<br />

5. Complete the <strong>BSP</strong>. Topics include networking, boot ROMs, SCSI, caches, MMU<br />

initialization, and DMA.<br />

6. Generate a default project for use with the new project facility.<br />

This chapter provides a detailed description of each of the steps listed above.<br />

The goal of this procedure is not only the creation of a new <strong>BSP</strong> but the<br />

minimization of the time during which you do not have access to the Tornado<br />

development tools—in particular, the Wind Debug target agent (WDB agent).<br />

Because the WDB agent is linked to the kernel, it can share initialization code with<br />

the kernel. Thus, after the initialization code has run, you can start either the WDB<br />

agent, the VxWorks kernel, or both.<br />

Using the WDB agent, you can debug the VxWorks image to which it is linked.<br />

This is in contrast to a traditional ROM-monitor approach which requires that you<br />

first port the monitor to the board and then port the OS.<br />

41

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

Saved successfully!

Ooh no, something went wrong!