remoteconfig

所属分类:嵌入式/单片机/硬件编程
开发工具:C/C++
文件大小:1913KB
下载次数:11
上传日期:2013-01-30 16:17:29
上 传 者wwqlll
说明:  nios-II在线升级包源码,开发环境NIOS II IDE
(nios-II remote updata source on-line,use nios-II IDE develop)

文件列表:
remote_config_bylib\remote_config_bylib\.cdtbuild (2401, 2013-01-17)
remote_config_bylib\remote_config_bylib\.cdtproject (2777, 2013-01-17)
remote_config_bylib\remote_config_bylib\.project (2958, 2013-01-16)
remote_config_bylib\remote_config_bylib\.settings\org.eclipse.cdt.core.prefs (106, 2013-01-16)
remote_config_bylib\remote_config_bylib\.settings\org.eclipse.cdt.managedbuilder.core.prefs (532, 2013-01-16)
remote_config_bylib\remote_config_bylib\.settings\org.eclipse.core.resources.prefs (92, 2013-01-16)
remote_config_bylib\remote_config_bylib\alt_error_handler.c (15515, 2013-01-07)
remote_config_bylib\remote_config_bylib\alt_error_handler.h (7251, 2013-01-07)
remote_config_bylib\remote_config_bylib\application.stf (158, 2013-01-16)
remote_config_bylib\remote_config_bylib\Debug\epcs_controller_boot_rom.flash (726402, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\generated_app.sh (415, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\makefile (3662, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\Nor_Flash.flash (18, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\alt_error_handler.d (3399, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\alt_error_handler.o (15532, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\flash_utilities.d (4990, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\flash_utilities.o (8220, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\iniche_init.d (8195, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\iniche_init.o (9272, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\network_utilities.d (7330, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\network_utilities.o (6736, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\remote_config.d (6653, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\remote_config.o (12224, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\srec_utilities.d (5062, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\obj\srec_utilities.o (8000, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\remote_config_bylib.elf (1316915, 2013-01-17)
remote_config_bylib\remote_config_bylib\Debug\subdir.mk (488, 2013-01-17)
remote_config_bylib\remote_config_bylib\DM9000A.h (3397, 2013-01-14)
remote_config_bylib\remote_config_bylib\DM9000A_iniche.h (1020, 2012-12-26)
remote_config_bylib\remote_config_bylib\flash_utilities.c (7786, 2013-01-07)
remote_config_bylib\remote_config_bylib\flash_utilities.h (3462, 2013-01-07)
remote_config_bylib\remote_config_bylib\iniche_init.c (6589, 2013-01-17)
remote_config_bylib\remote_config_bylib\libnetdriver.a (1883122, 2013-01-16)
remote_config_bylib\remote_config_bylib\network_utilities.c (2364, 2013-01-14)
remote_config_bylib\remote_config_bylib\network_utilities.h (3417, 2013-01-07)
remote_config_bylib\remote_config_bylib\remote_config.c (15076, 2013-01-07)
remote_config_bylib\remote_config_bylib\remote_config.h (4871, 2013-01-07)
remote_config_bylib\remote_config_bylib\srec_utilities.c (11082, 2013-01-07)
remote_config_bylib\remote_config_bylib_syslib\.cdtbuild (2052, 2013-01-16)
... ...

Remote Configuration Application ================================ The files contained in this project comprise a remote configuration over TFTP implementation. For details on the TFTP protocol, please search for "TFTP description" in your favorite web search engine. NOTE: For program-level details please see the source code comments. What this program does: ================== Implements a TFTP server where "PUT"ting or uploading "FLASH" files will cause them to be programmed to the flash of your choice. Both CFI and EPCS devices are supported, but not simulataneously. NOTE: The type of flash is chosen by setting DEFAULT_FLASH_TYPE in flash_utilities.h. - The following "mapping" is supported: CFI <=> "/dev/ext_flash" EPCS <=> "/dev/epcs_controller" If your names are different, then you'll have to modify the code in flash_utilities.c to support your flash. This TFTP server only supports what is necessary to program images and reconfigure the device. - This amounts to reasonably complete WRQ (write request) detection, a reasonably complete DATA (data packet) handler, and a crippled RRQ (read request) detection. See the in-line comments for details! Usage flow: ========================================= NOTE: assumes that the source for this project already resides in your software examples directory 1. Create the FLASH (.flash) images that you wish to upload. - This has already been done for you if you've previously programmed your software/hardware to flash using the Nios II Flash Programmer. 2. Program your FPGA with a standard or full-featured design. The EP1C12 Nios II Eval. Kit is not supported due to lack of ethernet support. 3. Create a "Remote Configuration" project. 4. If necessary, edit flash_utilities.h to match your system. 5. Build the project in the Nios II IDE. 6. Run the project from within the Nios II IDE. 7. Pay attention to the IP Address that is attained. 8. Upload your image(s) using the TFTP client application of your choice. Looks something like this: tftp PUT -- Uploading, SREC parsing and flash programming is done. -- May be done as many times as necessary. NOTE: multiple FLASH files may be combined (concatenated) into a single FLASH file as well. tftp GET reconfig -- Triggers a reconfiguration. Nuggets of knowledge (most of this can be obtained elsewhere): ====================== * Useful flash programming commands: - Erasing the flash nios2-flash-programmer [--epcs] --base= --erase-all or nios2-flash-programmer [--epcs] --base= --erase=, - Reading data range from flash nios2-flash-programmer [--epcs] --base= --read= --read-bytes=, - General command line for creating a "FLASH" file ...from an ELF: elf2flash --base= --end= --reset= --input= --output= --boot= ...from a SOF: sof2flash --offset= --input= --output= ...from a binary: bin2flash --base= --location= --input= --output= - Getting information about a flash device nios2-flash-programmer [-epcs] --debug --base= - For CFI flash, this dumps the CFI table. - For EPCS, this dumps useful EPCS registers and their initial values. * Upload Throughput NOTE: Keep in mind that the Remote Configuration application is parsing text files (S-Records) and then programming the data (line-by-line) to flash. - Better performance (20-25% better on a Nios II/f running on a Stratix II) can be achieved by using the "Release" set of compilation options. - Performance will be, ultimately, limited by the write/program timings to your flash device. - Removing S-Record parsing from the programming path should increase performance dramatically.

近期下载者

相关文件


收藏者