OpenCores
URL https://opencores.org/ocsvn/usb_fpga_2_13/usb_fpga_2_13/trunk

Subversion Repositories usb_fpga_2_13

[/] [usb_fpga_2_13/] [trunk/] [examples/] [usb-1.0/] [flashdemo/] [Readme] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
flashdemo
2
---------
3
 
4
This example demonstrates how data can be read and written to/from the
5
Flash memory.
6
 
7
During the start-up the firmware (defined in flashdemo.c) reads the
8
number of last sector n from sector 0 (dword at position 0) and
9
increments it by one. If n is larger than or equal to the total amount
10
of sectors, or if it is equal to 0, n is set to 1.
11
 
12
Then n is written back to sector 0 and sector n is filled with the
13
string "Hello World!".
14
 
15
The host software (defined in FlashDemo.java) reads out the string from
16
the last sector of the flash memory.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.