UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer alxn
Observer
4,274 Views
Registered: ‎07-22-2013

bootgen: Initialization Pairs and the INT File Attribute

ug821-zynq-7000-swdev.pdf has this section:

 

A.3 Initialization Pairs and the INT File Attribute 

 

And states:

 

Bootgen supports a fully C/C++ compatible preprocessor and all of the directives. It also supports expansion macros with parameters. Parameters can be passed on the Bootgen command line with the -D option that is compatible with GCC, and acts like #define

 

 For example: 

#include "register_defs.h"

.set. kBAUD_RATE_REG = (k9600BAUD | kDOUBLE_RATE) << BAUD_BITS;

 

But when I put just:

 

#define XPS_QSPI_BASEADDR 0xE000D000

.set. XPS_QSPI_BASEADDR = 0x01020304;

 

$ bootgen -image boot.bif -o BOOT.bin -w on
WARNING: bad character '# at qspi_regs.int:1.1
WARNING: bad character 'd at qspi_regs.int:1.1-2
WARNING: bad character 'e at qspi_regs.int:1.1-3
WARNING: bad character 'f at qspi_regs.int:1.1-4
WARNING: bad character 'i at qspi_regs.int:1.1-5
WARNING: bad character 'n at qspi_regs.int:1.1-6
WARNING: bad character 'e at qspi_regs.int:1.1-7
WARNING: bad character 'X at qspi_regs.int:1.9
WARNING: bad character 'P at qspi_regs.int:1.9-10
WARNING: bad character 'S at qspi_regs.int:1.9-11
WARNING: bad character '_ at qspi_regs.int:1.9-12
WARNING: bad character 'Q at qspi_regs.int:1.9-13
WARNING: bad character 'S at qspi_regs.int:1.9-14
WARNING: bad character 'P at qspi_regs.int:1.9-15
WARNING: bad character 'I at qspi_regs.int:1.9-16
WARNING: bad character '_ at qspi_regs.int:1.9-17
WARNING: bad character 'B at qspi_regs.int:1.9-18
WARNING: bad character 'A at qspi_regs.int:1.9-19
WARNING: bad character 'S at qspi_regs.int:1.9-20
WARNING: bad character 'E at qspi_regs.int:1.9-21
WARNING: bad character 'A at qspi_regs.int:1.9-22
WARNING: bad character 'D at qspi_regs.int:1.9-23
WARNING: bad character 'D at qspi_regs.int:1.9-24
WARNING: bad character 'R at qspi_regs.int:1.9-25

ERROR:BootGen - syntax error
Line #1, "qspi_regs.int".
... 0xE000D000
^^^^^^^^^^

 

Tags (1)
0 Kudos