load_userpro.c

来自「一个在DSP上执行的flash的烧写程序」· C语言 代码 · 共 50 行

C
50
字号

   
    
/*
 *  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 + =
减小字号Ctrl + -
显示快捷键?