?? load_userpro.c
字號:
/*
* Copyright 2003 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== fpga_loader.c ========
*
* This program loads the Xilinx FPGA on the DM642 EVM with configuration
* data stored in Flash at 0x90040000.
*/
#include "load_userprocfg.h"
#include "evmdm642.h"
//__asm("SEC_COPY_TABLE .equ 0x90000000");
main()
{
/* volatile Uint8 * pFlash;
volatile Uint32 SizeInDWORD;
volatile Uint32 ram_AddrDest;
volatile Uint32 section_count;
volatile Uint32 entry_piont;*/
#define FLASH_PAGE ((volatile unsigned char *)0x90080018)
/* Call BSL init */
EVMDM642_init();
/* Load FPGA from Flash */
EVMDM642_fpgaLoad(0x90040000);
/*read flish*/
*FLASH_PAGE = 0x02;//select flashpage
///////////////////////////////////////////////////////
IRQ_globalDisable();
// Jump to donwloaded application entry_point
//(((void(*)(void))(0x80000000)))();
sndboot();
while(1);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -