📄 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 + -