URL
https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk
Show entire file |
Details |
Blame |
View Log
Rev 8 |
Rev 9 |
Line 1... |
Line 1... |
flashdemo
|
default
|
---------
|
-------
|
|
|
This example demonstrates how data can be read and written to/from the
|
This firmware can be used as default firmware for ZTEX USB-FPGA Modules
|
Flash memory.
|
1.15y and 1.15y2. It supports:
|
|
|
During the start-up the firmware (defined in flashdemo.c) reads the
|
* Firmware uploading
|
number of last sector n from sector 0 (dword at position 0) and
|
* High speed FPGA configuration via USB
|
increments it by one. If n is larger than or equal to the total amount
|
* Configuration data: Storage of device settings in MAC-EEPROM
|
of sectors, or if it is equal to 0, n is set to 1.
|
|
|
|
Then n is written back to sector 0 and sector n is filled with the
|
The upload utility Default.java creates the configuration data structure
|
string "Hello World!".
|
in MAC-EEPROM and can be used to upload the default firmware to EEPROM.
|
|
The wrapper scripts prog-1.15y.sh can be used to do that.
|
The host software (defined in FlashDemo.java) reads out the string from
|
|
the last sector of the flash memory.
|
|
The wrapper scripts prog-1.15y.sh can be used to do that.
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.