Professional Documents
Culture Documents
This application note describes how the serial Flash Memory on the NanoBoard-NB1 can be used as embedded Flash memory within an FPGA design.
The NanoBoard-NB1 provides serial Flash memory for use as embedded memory in an FPGA design, enabling you to load and store an embedded software file that will be used when the target design is running. One example of where such functionality would prove useful is in a design that takes, as input, an audio data file and subsequently processes the data from that file. The audio file would be just the candidate for storage in the memory provided by the NanoBoard.
The Flash memory is an SPI-compatible device. The host microcontroller accesses the memory through the SPI Controller, as illustrated in Figure 2. The SPI Controller itself resides within the NanoTalk Controller on the NanoBoard-NB1. The SPI Controller determines who accesses the SPI Bus (NanoTalk Controller, FPGA daughter board or Host Computer (via the parallel port)) and which of the SPI slave devices (Embedded Flash memory, FPGA Boot Flash memory, NanoBoard System Clock) is selected for communications.
CS3
CS2
Note: If you have multiple NanoBoards daisy-chained together, the NanoBoard Controller chain will reflect each detected (powered-up) board. Each NanoBoard Controller in the chain will only appear in the Instrument Rack after its corresponding icon has been specifically double-clicked. On the instrument panel of the required NanoBoard Controller, click on the Embedded button. The Flash RAM Controller For Embedded Software dialog will appear (Figure 4). From this dialog, press the Read Electronic Signature button. This tests the communications link between the NanoBoard Controller and the Flash memory device. If communications are successful, a value will be entered into the field to the immediate right of the button and the confirmatory message Device Found: M25P80 (8M-Bit Serial Flash RAM) will be displayed.
To verify that the device has been successfully erased, press the Blank Check button in the Flash RAM Controller for Embedded Software dialog. Once the check has been conducted, you will receive another confirmation dialog.
After choosing the file and clicking Open, you will be returned to the Flash RAM Controller for Embedded Software dialog. The chosen file (including path) will be displayed, as shown in Figure 8.
To download this file to the Flash memory, simply click the Save File To Flash button. The download process will proceed, with progress shown in Altium Designer's Status bar. At the end of the download an information dialog will appear confirming the end of the process (Figure 9).
If the download process is shown to have failed, the verification will report an error count. A large number of errors typically indicates that the Flash memory device was not successfully erased prior to download of the embedded software file. In this case, try erasing the device again using the Erase Entire Device button and then using the Blank Check button to verify that the device's memory has indeed been successfully erased. The embedded software file can then be downloaded again.
Revision History
Date 20-Jan-2004 25-May-2005 12-Dec-2005 29-Feb-2008 Version No. 1.0 1.1 1.2 2.0 Revision New product release Updated for Altium Designer SP4 Path references updated for Altium Designer 6 Updated for Altium Designer Summer 08
Software, hardware, documentation and related materials: Copyright 2008 Altium Limited. All rights reserved. You are permitted to print this document provided that (1) the use of such is for personal use only and will not be copied or posted on any network computer or broadcast in any media, and (2) no modifications of the document is made. Unauthorized duplication, in whole or part, of this document by any means, mechanical or electronic, including translation into another language, except for brief excerpts in published reviews, is prohibited without the express written permission of Altium Limited. Unauthorized duplication of this work may also be prohibited by local statute. Violators may be subject to both criminal and civil penalties, including fines and/or imprisonment. Altium, Altium Designer, Board Insight, Design Explorer, DXP, LiveDesign, NanoBoard, NanoTalk, P-CAD, SimCode, Situs, TASKING, and Topological Autorouting and their respective logos are trademarks or registered trademarks of Altium Limited or its subsidiaries. All other registered or unregistered trademarks referenced herein are the property of their respective owners and no trademark rights to the same are claimed.