Sie sind nicht angemeldet.

Seite zuletzt verändert am 19:46, 18 Aug 2009 von stephan

FlashProgrammer GUI

Von $1


    This is a small Windows application which simplyfies programming the SPI flash memory on a Zefant FPGA Module.


    The resources for the project are located here:

    Beschreibung Project overview Subversion access to the project files This documentation

    Hardware Setup

    Zefant-nanoV4 on nano Universal Baseboard

    In addition to the baseboard you need a serial interface to the PC. This can be one of:

    1. Universal USB-RS232 Adapter
    2. PHY Module for nano Baseboard

    Using the USB-RS232 Adapter

    The adapter must be wired to some pins of X307 on the nano Universal Baseboard. The pinout and wiring is shown here:

    FPGA Pin
    FPGA Signal
    BTB Conn North Pin Baseboard X307 Pin
    FlashProg Signal
    Direction USB-Adapter Signal
    USB-Adapter Signal Note
    V10 fio_2_l8_p 23 6 cts to Host CTS 5  
    U9 fio_2_l8_n 25 7 rts from Host RTS 6  
    Y10 fio_4_l7_p 27 8 txd to Host RXD 3 RXD-TXD!
    Y9 fio_4_l7_n 29 9 rxd from Host TXD 4 TXD-RXD!
          20 GND   GND 14  

    For wiring the jumper wire sets can be used.

    Note that RXD und TXD are cross-connected, because flash programmer and USB interface each name the signals from their own view.


    Using the PHY Module

    The PHY module is simply plugged into X203/X307/X308 of the baseboard. No additional connections between module and baseboard are required. The virtual serial port is then available on the USB port X503 of the baseboard.

    Software Setup



    1. Connect as described above and power up the system
    2. Upload the spi_flasher configuration into the FPGA
    3. Start the FlashProg GUI from \trunk\Software\bin\Debug\FlashProg.exe
    4. Select the desired serial port at Communication->Serial Port Settings ein. Die other settings are 115200/8/n/1. The USB interface must be set up (VCP drivers!) and running before doing this.
    5. Check the connection with Communication->Check Connection

    First Use

    The SPI flash chips have 2 different modes, which define the memory layout inside the chip. This application requires the chip to be in the power-of-2 mode. Be aware that the mode must and can be selected only once. Afterwards it's fixed forever. So, if you set power-of-2 mode, you'll have the flash in power-of-2 mode forever.

    Having that said, select the power-of-2 mode by performing the following steps:

    1. Perform the preparation steps described above
    2. Select the Test/Debug tab in the FlashProg application
    3. Click on the red "PowerOf2 Mode!" button.

    That's all. This has to be done only once for each module. But it's mandatory. Otherwise programming will not work with this application.

    If you want to check if the power-of-2 mode ist already set on the flash of a module, you can simply read the Status value of the flash:

    1. Perform the preparation steps described above
    2. Select the Test/Debug tab in the FlashProg application
    3. Click on the "Read Status" button

    The PAGESIZE bit tells if power-of-2 mode is already set:

    PAGESIZE bit value
    Page Size
    0 1056 bytes (default)
    1 1024 bytes (Power-of-2 mode)

    Normal Use

    1. Load a file with File->Load, a part of it will be displayed.
    2. If the Flash device is not empty, click Communication->EraseChip
    3. Click Communication->"Program to Flash without Erase". The flash will now be programmed which takes a few minutes currently. The speed will be increased later.
    4. For security you can select Communication->Compare with Flash to compare contents with host memory.


    • If you don't want to program all of the data, you can enter the desired new length at the Data Length field and click "Update DataLen". The rest will be cut off then.
    • It currently is not possible set a programming start address >0. This will be available soon.
    • No tags
    DateiGrößeDatumAngehängt von: 
    FlashProgrammer_GUI Screenshot
    26.02 kB18:14, 18 Aug 2009stephanAktionen
    Keine Beschreibung
    29.02 kB19:52, 18 Aug 2009stephanAktionen
    Connecting USB-Adapter for FlashProgrammer
    59.81 kB11:01, 17 Aug 2009stephanAktionen
    Bilder (0)
    Kommentare (0)
    Um einen Kommentar zu schreiben, müssen Sie sich anmelden.
    © Simple Solutions  •  Impressum  •  Wiki powered by Mindtouch