Example 3. Sample Command File for Booting From 8-Bit SPI Boot

/*---------------------------------------------------------------------------*/ /* Hex converter command file. */ /*---------------------------------------------------------------------------*/ test.out /* Input file */ --ascii /* Select ASCII format */ --map=test.map /* Specify the map file */ --outfile=test_spi8.hex /* Hex utility out file */ --boot /* Consider all the input sections as boot sections */ --spi8 /* Specify the SPI 8-bit boot format */ --lospcp=0x3F /* Set the initial value for the LOSPCP as 0x3F */ /* The -spibrr option is not specified to show that */ /* the hex utility uses the default value (0x7F) */ --entrypoint=0x3F0000 /* Set the entry point */

The command file in Example 3 generates the out file in Figure 12-6. The control register values are coded in the boot table header and that header has the address that is specified with the --entrypoint option.

Figure 12-6 Sample Hex Converter Out File for Booting From 8-Bit SPI Boothexout8spi_pnu118.png

The command file in Example 4 allows you to boot the .text and .cinit sections of test.out from the 16-bit parallel GP I/O port. The map file test.map is also generated.