This should include everything needed to build the FSK bridge example from scratch.
1) Open existing hdl/quartus/bladerf.qsf project in Quartus
a) Generate the Nios core
i) Tools -> QSys -> File -> Open -> navigate to ./hdl/fpga/ip/altera/nios_system/nios_system.qsys
ii) After opening qsys file, go to Generation tab, click the "Generate" button
b) Compile the embedded Nios image
i) Tools -> Nios II Software Build Tools for Eclipse
I) File -> Import -> General -> Existing Projects into Workspace -> Next
-> Browse to checkout root directory -> check both lms_spi_controller and lms_spi_controller_bsp
-> Finish
II) right click lms_spi_controller_bsp -> NIOS II -> Generate BSP
III) right click lms_spi_controller -> Build
IV) right click lms_spi_controller -> Make Targets -> Build... -> select mem_init_generate -> Build
c) Synthesize FPGA image
i) Processing -> Start Compilation
2) Compile driver and user mode applications
a) cd linux/kernel ; make ; inmod bladeRF.ko
b) cd ../apps; make
c) To program the fpga execute ./simple_load c4images/blink.rbf
i) Load bladerf.rbf from the quartus output_files directory
3) Use bladeRF's UART as an FSK bridge!
NB. The firmware upgrade utility does work, only use it on valid .img files.
47 lines
1.5 KiB
Makefile
47 lines
1.5 KiB
Makefile
################################################################################
|
|
# Automatically-generated file. Do not edit!
|
|
################################################################################
|
|
|
|
# Add inputs and outputs from these tool invocations to the build variables
|
|
C_SRCS += \
|
|
../bladeRF.c \
|
|
../cyfxbladeRFusbdscr.c \
|
|
../cyfxtx.c \
|
|
../spi_flash_lib.c
|
|
|
|
S_UPPER_SRCS += \
|
|
../cyfx_gcc_startup.S
|
|
|
|
OBJS += \
|
|
./bladeRF.o \
|
|
./cyfx_gcc_startup.o \
|
|
./cyfxbladeRFusbdscr.o \
|
|
./cyfxtx.o \
|
|
./spi_flash_lib.o
|
|
|
|
C_DEPS += \
|
|
./bladeRF.d \
|
|
./cyfxbladeRFusbdscr.d \
|
|
./cyfxtx.d \
|
|
./spi_flash_lib.d
|
|
|
|
S_UPPER_DEPS += \
|
|
./cyfx_gcc_startup.d
|
|
|
|
|
|
# Each subdirectory must supply rules for building sources it contributes
|
|
%.o: ../%.c
|
|
@echo 'Building file: $<'
|
|
@echo 'Invoking: ARM Sourcery Windows GCC C Compiler'
|
|
arm-none-eabi-gcc -D__CYU3P_TX__=1 -I"C:\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\inc" -O0 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o"$@" "$<"
|
|
@echo 'Finished building: $<'
|
|
@echo ' '
|
|
|
|
%.o: ../%.S
|
|
@echo 'Building file: $<'
|
|
@echo 'Invoking: ARM Sourcery Windows GCC Assembler'
|
|
arm-none-eabi-gcc -x assembler-with-cpp -I"C:\Cypress\EZ-USB FX3 SDK\1.2\\firmware\u3p_firmware\inc" -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -mcpu=arm926ej-s -mthumb-interwork -g -gdwarf-2 -o"$@" "$<"
|
|
@echo 'Finished building: $<'
|
|
@echo ' '
|
|
|
|
|