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

Makefile<br />

At a minimum, your makefile must define the following macros:<br />

CPU<br />

The target CPU, which must be the same as the reference <strong>BSP</strong>.<br />

3<br />

TOOL<br />

The host tool chain (such as gnu), which must be the same as the reference <strong>BSP</strong>.<br />

TGT_DIR<br />

The path to the target directory. The default is installDir/target.<br />

TARGET_DIR<br />

The <strong>BSP</strong> directory name.<br />

VENDOR<br />

The board manufacturer’s name.<br />

BOARD<br />

The board name.<br />

ROM_TEXT_ADRS<br />

The boot ROM entry address in hexadecimal. For most boards, this is set to the<br />

beginning of the ROM address area. However, there may be some hardware<br />

configurations that use an area at the start of ROM for the reset vector; thus, it<br />

should be offset accordingly. The offset is typically architecture dependent.<br />

Thus, the low order bytes of this macro can be copied from a reference <strong>BSP</strong>.<br />

ROM_WARM_ADRS<br />

The boot ROM warm entry address in hexadecimal. This is usually a fixed<br />

offset of 8 bytes beyond the cold boot entry point ROM_TEXT_ADRS. The code<br />

in sysToMonitor( ) should do an explicit jump to ROM_WARM_ADRS when a<br />

switch to the hardware ROM code is desired.<br />

ROM_SIZE<br />

The ROM area’s size in hexadecimal.<br />

RAM_LOW_ADRS 2<br />

The address at which to load VxWorks.<br />

RAM_HIGH_ADRS 2<br />

The destination address used when copying the boot ROM image to RAM.<br />

2. RAM_LOW_ADRS and RAM_HIGH_ADRS are absolute addresses, typically chosen to<br />

be at an architecture-specific offset from the start of DRAM. For a quick look at the VxWorks<br />

memory layout, see the memory layout diagram in the appendix of the VxWorks<br />

Programmer’s <strong>Guide</strong>.<br />

45

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

Saved successfully!

Ooh no, something went wrong!