Jump to: navigation, search

Difference between revisions of "LimeSDR-USB Board Programming"

(Uploading Firmware to SPI FLASH Memory)
Line 67: Line 67:
 
Note please that this may be used for test purposes only, while firmware will disappear from the RAM after LimeSDR-USB board power cycle.
 
Note please that this may be used for test purposes only, while firmware will disappear from the RAM after LimeSDR-USB board power cycle.
  
 +
 +
== Uploading FPGA Gateware to FLASH Memory ==
  
 
This section describes how to load custom gateware to LimeSDR-USB board FPGA Flash memory.  
 
This section describes how to load custom gateware to LimeSDR-USB board FPGA Flash memory.  

Revision as of 07:52, 31 August 2017

1 LimeSDR-USB Board Programming

This document describes how to program LimeSDR-USB board using LimeSuiteGUI and Cypress (for FX3 MCU only) software.


2 Updating FX3 Firmware using LimeSuiteGUI

The firmware of FX3 MCU contains a functionality which enables to program FLASH memory FX3 MCU boots up from. In this case FX3 USB controller firmware can be updated using “LimeSuiteGUI” software, when FX3 MCU can boot from FLASH memory.

To call FPGA programing function, launch LimeSuiteGUI and connect to the board (see Launching LimeSuiteGUI and Connecting to the Board for more information). Then go to Modules from main menu and select Programing form the drop down menu, as shown in Figure 1.

Figure 1. LimeSuiteGUI module menu to select FX3 programing tool


New window appears, as shown in the Figure 2.

Figure 2. Programing tool interface


Change device to “FX3” and press “Open” and select firmware image file.

Figure 3. FX3 programing options


Initiate FLASH memory programing by clicking Program.

The new message will come up when programing is finished, as shown in Figure 4.

Figure 4. Successfully FX3 programing message


After successful firmware update, connect to the LimeSDR-USB board again as described in Launching LimeSuiteGUI and Connecting to the Board.


3 Updating USB3 Microcontroller Firmware in Bootloader Mode

Cypress FX3 USB microcontroller has an integrated boot loader, which starts automatically after power-up or reset and when no valid firmware is present in the FLASH memory.

For USB microcontroller firmware upgrade, please use the “CyControl.exe” application from cy_ssusbsuite_v1.3.3.zip package.

If FLASH memory is empty or connector J17 (on LimeSDR-USB board) is open, USB3 microcontroller boots-up into bootloader mode. Cypress drivers from cy_ssusbsuite_v1.3.3.zip package must be installed first. Download the package here. Run the “USB Control Center” application and select Cypress USB BootLoader line as shown in Figure 5.

Figure 5. Default FX3 firmware, supplied by FX3 internal logic


After entering into boot loader mode, there are two ways of uploading the firmware to USB3 microcontroller:

  • Program external SPI FLASH memory connected to USB3 controller. Follow procedure described in chapter “5.3 Uploading Firmware to SPI FLASH”. The USB3 microcontroller will boot from FLASH memory after every power-on.
  • Program internal RAM memory. Follow procedure described in chapter “5.4 Uploading Firmware to the FX3 RAM”. The memory will be cleared after first power cycle hence this step should be used for test purposes only.


3.1 Uploading Firmware to SPI FLASH Memory

Short the jumper J17 and connect LimeSDR-USB board to the PC. Start “CyControl.exe” application and select Cypress USB BootLoader as shown in Figure 5. Choose menu command Program -> FX3 -> SPI FLASH. In the status bar you will see Waiting for Cypress Boot Programmer device to enumerate.... and after some time window will appear. Select firmware image file (file extension is “*.img”) and press Open. Status bar of the USB Control Center application will indicate Programming of SPI FLASH in Progress…. This message will change to the Programming succeeded after FLASH programming is done.

If you expand Cypress USB StreamerExample line in USB Control Center application now, you will see different USB configuration as shown in Figure 6.

Figure 6. FX3 after custom firmware is downloaded


NOTE: USB3 microcontroller will boot firmware uploaded to FLASH each time after power-on if jumper J17 is shorted.

3.2 Uploading Firmware to the FX3 RAM

Start “CyControl.exe” application and select Cypress USB BootLoader as shown in Figure 5. Choose menu command Program -> FX3 -> RAM. In the new pop-up window, select firmware image file (file extension is “*.img”) and press Open. Status bar of the USB Control Center application will indicate Programming RAM. This message will change to the Programming succeeded after programming is done.

Note please that this may be used for test purposes only, while firmware will disappear from the RAM after LimeSDR-USB board power cycle.


4 Uploading FPGA Gateware to FLASH Memory

This section describes how to load custom gateware to LimeSDR-USB board FPGA Flash memory.

The Altera Cyclone IV FPGA which sits on the LimeSDR-USB board can be programmed using “LimeSuiteGUI”software. To call FPGA programing function, go to Modules from main menu and select Programing form the drop down menu, as shown in Figure 1.

New window appears, as shown in the Figure 2.

Software loads raw binary files (*.rbf) to FPGA and it offers couple options to do that, see Figure 7.

Figure 7. FPGA programing options


Select Bitstream to FLASH programming mode. This function loads selected *.rbf file from PC to external FPGA FLASH memory. Select required bitstream file by clicking Open and initiate FLASH memory programing by clicking on Program.

The new message will come up when the programing is finished, as shown in Figure 8.

Figure 7. FPGA programing options


After writing new bitstream to Flash memory, it can be loaded to FPGA by changing Programing mode to Bitstream from Flash and pressing Program. New bitstream will be loaded to FPGA. Each time board is powered up, FPAGA bitstream is loaded from FLASH automatically.