Xilinx SDK产生C代码的MAP文件

XILINX官方给出的方法是
In XPS:

  • Right-click the software application project and select “Set Compiler Options”.
  • Click the Paths and Options tab.
  • In the Other Compiler Options to Append, add -Wl,-Map -Wl,“C:<fullpath><name>.map”
  • Click OK.
    In SDK:
  • Right-click the software application project and select Properties.
  • Select the C/C++ Build in the left pane.
  • With the Tools tab brought forward, select Miscellaneous under Linker.
  • In the Linker Flags, add -Wl,-Map -Wl,“C:<fullpath><name>.map”
  • Click OK.
    The -Map keyword is case sensitive. The target file name must be enclosed in quotation marks.

照做之后会提示下述错误
Xilinx SDK产生C代码的MAP文件
之后如下图修改链接选项
Xilinx SDK产生C代码的MAP文件
提示如下错误
Xilinx SDK产生C代码的MAP文件
于是我自己在相应路径下先建了一个同名空文件,生成map文件成功