FreeRTOS BSP build errors in EDK for Microblaze

dagustaf wrote on Tuesday, November 19, 2013:

I am trying to build a FreeRTOS BSP in EDK for Microblaze. It seems to be a path that is incorrect somewhere that tries to find “standalone_v3_01_a” but this directory is not present in the ISE 14.6 installation. Target is a Spartan6 on a custom board. I have already changed the "OPTION DEPENDS = (standalone_v3_07_a);"in “freertos_v2_1_0.mld” and the “set standalone_version standalone_v3_07_a” in “freertos_v2_1_0.tcl”. These were both originally st to “standalone_v3_01_a”.

The error I keep getting is:

make -k all
libgen -hw …/microblaze_1_hw_platform/system.xml
-lp C:/SDK_repository
-pe microblaze_0
-log libgen.log
Xilinx EDK 14.6 Build EDK_P.68d
Copyright © 1995-2012 Xilinx, Inc. All rights reserved.

Command Line: libgen -hw …/microblaze_1_hw_platform/system.xml -lp
C:/SDK_repository -pe microblaze_0 -log libgen.log system.mss

Staging source files.
Running DRCs.
Running generate.
ERROR:EDK - freertos () - couldn’t open “…/standalone_v3_01_a/src/config.make”:
no such file or directory
ERROR:EDK:3416 - Error(s) while running TCL procedure generate().
make: *** [microblaze_0/lib/libxil.a] Error 2
make: Target `all’ not remade because of errors.

rtel wrote on Tuesday, November 19, 2013:

We are aware of some EDK version issues. The demo was created with version 13. It is intended to get this updated to the latest EDK version in the relatively near future. In the mean time have a look in - I think there may be a patch provided by a third party there (?).


dagustaf wrote on Wednesday, November 20, 2013:

Thank you for the reply Richard, not sure if I can wait for that though

I found the problem, it was a no-brainer. It is not enough with “set standalone_version standalone_v3_07_a”

There were still 2 more lines in the “freertos_v2_1_0.tcl” file that refered to standalone_v3_01_a:
set makeconfig [open “…/standalone_v3_01_a/src/config.make” w]
set filename [file join “…/standalone_v3_01_a/src” “microblaze_interrupts_g.c”]

After correcting this it compiles fine!