Commit graph

8 commits

Author SHA1 Message Date
Robert Ghilduta
dc187e0640 FX3 Firmware: Supports Command-line build (GNU make, linux)
The build for Windows + Eclipse is likely now broken. Fixing this
is a TODO item on my list...
2013-06-09 22:58:10 -07:00
Robert Ghilduta
a1ef2ab5ac fx3 firmware: clear out DMA buffers
This commit clears DMA buffers and reset endpoints whenever RX or TX are
disabled.
2013-06-02 23:57:38 -07:00
Robert Ghilduta
22cccf485a fx3_firmware: add GPIO_LED and GPIO_ID
GPIO_ID tells the FX3 which FPGA is attached, this is useful in case the
firmware is accidentally completely reflashed.
2013-06-02 23:57:38 -07:00
Robert Ghilduta
3ea5a05ea9 fx3 firmware: minor performance tweaks
NB: changing dmaMultiConfig.size changes the number of bytes that are sent to
the FPGA in each GPIF transaction.
2013-06-02 23:57:37 -07:00
Robert Ghilduta
42e9d4b878 fx3 firmware: enable 32bit GPIF
Due to an unconfirmed bug in the SDK's support for the GPIF II, it is not
xpossible to switch a 16bit GPIF over to 32bit funtionality once the FX3
enumerates. As a temporary work around, the firmware now uses a 32bit GPIF bus
when loading the Cyclone 4. This introduces some issues with headless execution
because enabling 32bit mode disables the SPI peripheral, which is how the FX3
communicates with the SPI flash. Conversely, in headless mode the unit has no
need to enter 32bit mode because it is not connected via USB3.0, therefore
during headless mode the bladeRF can choose to configure the GPIF 2 into 16bit
mode.
2013-06-02 23:57:36 -07:00
Robert Ghilduta
a16a9525c7 new USB ID
The OpenMoko project has given us a PID within their VID.

The new USB ID is:
VID 0x1d50
PID 0x6066
2013-06-02 23:57:35 -07:00
Robert Ghilduta
9cd4329dc1 fx3: UART-SPI bridge baud rate change
115200 is the "slowest" fast speed we'll use, it should be able to go higher
however the Nios 2 Core has to be tweaked.
2013-06-02 22:27:54 -07:00
Nuand
ce7d8a7ab2 FSK bridge example
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.
2013-02-18 20:11:39 -08:00