mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
* updated RegisterDefs.h from firmware update * Revert "updated RegisterDefs.h from firmware update" This reverts commit 64f1b2546e742f0b0513124a599cd9bcde11760c. * updated registers and had it formatted * Revert "updated registers and had it formatted" This reverts commit 1641b705b0d8616bcff4a5cd796d8796d09391f2. * udpated registers from firmware, reading config file in server (chip config, reset chip, enable_clock_pattern) specific for matterhorn,this is done when powering on chip, removed startreadout, fixed status register bits, updated firmware version * fix for patioctrl allowed for zxilinx and adding readout pattern for scientists that like to push the acquire button * fixing default enable clock and readout pattern for xilinx (patioctrl has to be 32 bit) * Xilinxctb/first image (#1094) * reduce xilinxCTB readout done checks to single register, increased clockEna pattern limits, clear FPGA FiFos and counters on powerchip, disable counters 1-3 in matterhorn configuration * change print of xilinxctb server * remove acquisition done check --------- Co-authored-by: Martin Mueller <martin.mueller@psi.ch> * binary xilinx in * formatting * added reset of udp buffer FIFO to xilinxCTB --------- Co-authored-by: Martin Mueller <72937414+mmarti04@users.noreply.github.com> Co-authored-by: Martin Mueller <martin.mueller@psi.ch>
61 lines
2.1 KiB
Makefile
Executable File
61 lines
2.1 KiB
Makefile
Executable File
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
current_dir = $(shell pwd)
|
|
main_inc = ../slsDetectorServer/include/
|
|
main_src = ../slsDetectorServer/src/
|
|
support_lib = ../../slsSupportLib/include/
|
|
det_lib = ../../slsDetectorSoftware/include/sls/
|
|
md5_dir = ../../slsSupportLib/src/
|
|
|
|
ifeq ($(shell uname -m),aarch64)
|
|
# no cross compilation needed when on aarch64
|
|
CROSS =
|
|
else
|
|
CROSS = aarch64-none-linux-gnu-
|
|
endif
|
|
CC = $(CROSS)gcc
|
|
#TODO: allow these warnings and fix code
|
|
CFLAGS += -Wall -std=gnu99 -Wno-format-overflow -Wno-format-truncation -DXILINX_CHIPTESTBOARDD -DARMPROCESSOR -DSTOP_SERVER -I$(main_inc) -I$(support_lib) -I$(det_lib) -I$(current_dir) #-DDEBUG1 #-DVERBOSEI #-DVERBOSE
|
|
#CFLAGS += -Wall -std=gnu99 -DXILINX_CHIPTESTBOARDD -DARMPROCESSOR -DSTOP_SERVER -I$(main_inc) -I$(support_lib) -I$(det_lib) -I$(current_dir) #-DDEBUG1 #-DVERBOSEI #-DVERBOSE
|
|
LDLIBS += -lm -lrt -pthread
|
|
PROGS = xilinx_ctbDetectorServer
|
|
DESTDIR ?= bin
|
|
INSTMODE = 0777
|
|
|
|
SRCS = slsDetectorFunctionList.c
|
|
SRCS += $(main_src)slsDetectorServer.c $(main_src)slsDetectorServer_funcs.c $(main_src)communication_funcs.c $(main_src)arm64.c $(main_src)common.c $(main_src)/sharedMemory.c $(main_src)/loadPattern.c $(md5_dir)md5.c $(main_src)programViaArm.c $(main_src)LTC2620_Driver.c
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
all: clean $(PROGS)
|
|
|
|
local: CC := gcc
|
|
local: clean $(PROGS)
|
|
|
|
version: clean versioning $(PROGS)
|
|
|
|
boot: $(OBJS)
|
|
|
|
version_branch=$(API_BRANCH)
|
|
version_name=APIXILINXCTB
|
|
version_path=slsDetectorServers/xilinx_ctbDetectorServer
|
|
versioning:
|
|
cd ../../ && echo $(PWD) && echo `tput setaf 6; ./updateAPIVersion.sh $(version_name) $(version_path) $(version_branch); tput sgr0;`
|
|
|
|
|
|
$(PROGS): $(OBJS)
|
|
# echo $(OBJS)
|
|
mkdir -p $(DESTDIR)
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
|
|
mv $(PROGS) $(DESTDIR)
|
|
cp chip_config_xilinx.txt $(DESTDIR)
|
|
cp reset_chip_xilinx.txt $(DESTDIR)
|
|
cp enable_clock_pattern.pyat $(DESTDIR)
|
|
cp readout_pattern.pyat $(DESTDIR)
|
|
rm $(main_src)*.o $(md5_dir)*.o
|
|
clean:
|
|
rm -rf $(DESTDIR)/$(PROGS) *.o *.gdb $(main_src)*.o $(md5_dir)*.o
|
|
|
|
|
|
|