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!

AR# 22743

8.1i EDK - "ERROR: Unable to compile flashwriter application. Please check the following..."

描述

When trying to write to my flash device, I the following error message occurs:

"ERROR: Unable to compile flashwriter application. Please check the following:

1. Have the processor's libraries been generated?

2. Has XILINX_EDK has been set correctly?

3. Are all the EDK GNU tools available?

4. Are you using the Standalone BSP for the processor?

Flashwriter terminating !"

解决方案

There is a fix for the "flashwriter.tcl" file. You will need to find the following four lines:

set compile_status [catch {exec mb-gcc -Os $EXTRA_COMPILER_FLAGS ./etc/flashwriter/src/mbcrt0.S ./etc/flashwriter/src/mbcrtinit.S ./etc/flashwriter/src/flashwriter.c ./etc/flashwriter/src/cfi.c ./etc/flashwriter/src/flash.c ./etc/flashwriter/src/amd.c ./etc/flashwriter/src/intel.c -I ./etc/flashwriter/src/ -Wl,-defsym -Wl,_TEXT_START_ADDR=$SCRATCH_BASEADDR -Wl,-defsym -Wl,_STACK_SIZE=0x380 -L $proc_lib_dir -o ./etc/flashwriter/flashwriter.elf -nostartfiles} err]

set compile_status [catch {exec powerpc-eabi-gcc -Os ./etc/flashwriter/src/flashwriter.c ./etc/flashwriter/src/cfi.c ./etc/flashwriter/src/flash.c ./etc/flashwriter/src/amd.c ./etc/flashwriter/src/intel.c -I ./etc/flashwriter/src/ -Wl,-defsym -Wl,_START_ADDR=$SCRATCH_BASEADDR -Wl,-T -Wl,./etc/flashwriter/src/flashwriter.ld -L $proc_lib_dir -o ./etc/flashwriter/flashwriter.elf} err]

if { [catch {set total [exec mb-size -A $FLASHWRITER_ELF | grep Total]} err] } {

if { [catch {set total [exec powerpc-eabi-size -A $FLASHWRITER_ELF | grep Total]} err] } {

and change them to:

set compile_status [catch {exec bash -c "mb-gcc -Os $EXTRA_COMPILER_FLAGS ./etc/flashwriter/src/mbcrt0.S ./etc/flashwriter/src/mbcrtinit.S ./etc/flashwriter/src/flashwriter.c ./etc/flashwriter/src/cfi.c ./etc/flashwriter/src/flash.c ./etc/flashwriter/src/amd.c ./etc/flashwriter/src/intel.c -I ./etc/flashwriter/src/ -Wl,-defsym -Wl,_TEXT_START_ADDR=$SCRATCH_BASEADDR -Wl,-defsym -Wl,_STACK_SIZE=0x380 -L $proc_lib_dir -o ./etc/flashwriter/flashwriter.elf -nostartfiles"} err]

set compile_status [catch {exec bash -c "powerpc-eabi-gcc -Os ./etc/flashwriter/src/flashwriter.c ./etc/flashwriter/src/cfi.c ./etc/flashwriter/src/flash.c ./etc/flashwriter/src/amd.c ./etc/flashwriter/src/intel.c -I ./etc/flashwriter/src/ -Wl,-defsym -Wl,_START_ADDR=$SCRATCH_BASEADDR -Wl,-T -Wl,./etc/flashwriter/src/flashwriter.ld -L $proc_lib_dir -o ./etc/flashwriter/flashwriter.elf"} err]

if { [catch {set total [exec bash -c "mb-size -A $FLASHWRITER_ELF" | grep Total]} err] } {

if { [catch {set total [exec bash -c "powerpc-eabi-size -A $FLASHWRITER_ELF" | grep Total]} err] } {

The "flashwriter.tcl" file will be fixed in Service Pack 1.

AR# 22743
日期 12/15/2012
状态 Active
Type 综合文章
的页面