Sorry, you need to enable JavaScript to visit this website.

Lab 9 cpu1 BSP difficulties

Solved
5 posts / 0 new
macmacaman
Junior(0)
Lab 9 cpu1 BSP difficulties

Has anyone been doing the SW Speedway series and gotten to the dual processor software development and encountered a problem with creating the second (cpu1) bsp? I get a flood of errors from LONG not being declared.

I had to truncate the error messages to not get labeled as spam.

xemacps_bdring.c:514:13: error: 'LONG' undeclared (first use in this function)
Status = (LONG)(XST_FAILURE);
^
xemacps_bdring.c: At top level:
xemacps_bdring.c:552:1: error: unknown type name 'LONG'
LONG XEmacPs_BdRingToHw(XEmacPs_BdRing * RingPtr, u32 NumBd,
^
xemacps_bdring.c: In function 'XEmacPs_BdRingToHw':
xemacps_bdring.c:557:2: error: unknown type name 'LONG'
LONG Status;
^
xemacps_bdring.c:560:13: error: 'LONG' undeclared (first use in this function)
Status = (LONG)(XST_SUCCESS);
^

(truncated errors)

xemacps.h:780:1: error: unknown type name 'LONG'
LONG XEmacPs_SetTypeIdCheck(XEmacPs *InstancePtr, u32 Id_Check, u8 Index);
^
xemacps.h:782:1: error: unknown type name 'LONG'
LONG XEmacPs_SendPausePacket(XEmacPs *InstancePtr);
^
make[1]: *** [xemacps_sinit.o] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [ps7_cortexa9_1/libsrc/emacps_v3_1/src/make.libs] Error 2
"Running Make libs in ps7_cortexa9_1/libsrc/gpiops_v3_1/src"
make -C ps7_cortexa9_1/libsrc/gpiops_v3_1/src -s libs "SHELL=CMD" "COMPILER=arm-xilinx-eabi-gcc" "ARCHIVER=arm-xilinx-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -DUSE_AMP=1"
"Compiling gpiops"
In file included from xgpiops.c:62:0:
xgpiops.h:115:28: fatal error: xplatform_info.h: No such file or directory
#include "xplatform_info.h"
^
compilation terminated.
make[1]: *** [xgpiops.o] Error 1
In file included from xgpiops_g.c:41:0:
xgpiops.h:115:28: fatal error: xplatform_info.h: No such file or directory
#include "xplatform_info.h"
^

compilation terminated.
make[1]: *** [xuartps_sinit.o] Error 1
make[1]: Target `libs' not remade because of errors.
make: *** [ps7_cortexa9_1/libsrc/uartps_v3_1/src/make.libs] Error 2
"Running Make libs in ps7_cortexa9_1/libsrc/usbps_v2_2/src"
make -C ps7_cortexa9_1/libsrc/usbps_v2_2/src -s libs "SHELL=CMD" "COMPILER=arm-xilinx-eabi-gcc" "ARCHIVER=arm-xilinx-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -DUSE_AMP=1"
"Compiling usbps"
"Running Make libs in ps7_cortexa9_1/libsrc/xadcps_v2_2/src"
make -C ps7_cortexa9_1/libsrc/xadcps_v2_2/src -s libs "SHELL=CMD" "COMPILER=arm-xilinx-eabi-gcc" "ARCHIVER=arm-xilinx-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -DUSE_AMP=1"
"Compiling xadcps"
make: Target `all' not remade because of errors.

15:26:59 Build Finished (took 11s.438ms)

fletch
Moderator(18)
What version of the SW

What version of the SW Speedway are you using? What Vivado version are you using?
Bryan

macmacaman
Junior(0)
Vivado is not used for the SW

Vivado is not used for the SW Speedway. For the SW Speedway I am using the March 7, 2015 version of the pdf training materials.The lab materials list version 2014.4.1. I am using the SDK 2015.4.

TroutChaser
Moderator(18)
Changes in the Xilinx tools

Changes in the Xilinx tools from version to version, especially jumping 4 versions from 2014.4 to 2015.4, can cause issues like this. To run through a step by step tutorial like this one with no issues you will probably need to use the Xilinx tool version, 2014.4, originally targeted. Otherwise you will need to track down the difference. In this case it looks like there has been a change in the ethernet driver code.
 
If any of our forum users has worked through this issue please respond with the solution.
 
-Gary

BobBaeck
Junior(1)
Use standalone instead of standalone_amp

For generating app_cpu1_bsp a select standalone instead of standalone_amp.
The version is then 5.5 (SDK 2016.2).  I add also the -DUSE_AMP=1 compiler swith.
For creating app_cpu1 application, select als standalone.
And it works.