⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 相当有用的并且已经调试通过的FLASH烧写程序。
💻 C
字号:
/*
	Designed by YHB, 07.06.2004  
	This is for TMS320C5416 board 
	
	If you want to use it,please note:
	1.Confirm that the connection between CPU and flash 
	  is the same as the document "spra585".
	  
	2.Be sure to select flash instead of RAM when entering in CCS.
	  Otherwise,you must reset the board and modify configuration.
	  
	3.If you want to modify the address which you want to burn in,
	  you can only modify the "BOOTADDRESS".
	  
	4.Look at the "NOTE" part in FlashBurn.h
*/
 
#include "FlashBurn.h"
#include "regs54xx.h"
#include "C54xInit.h"

#define BOOTADDRESS 0x8000

void main()
{
	int i;
	
	unsigned int* punTemp = (unsigned int*)(0x6000);
	
	SetClkMode(5);
	
	//Set DROM bit to 0,such flash will be the
	//DSP's data space from 0x8000 to 0xffff
	PMST  = 0xffa0;
	
	SWWSR = 0x7fff;
	
	for( i = 0 ; i < 100 ; i++ )
		punTemp[i] = i + 2;
				
//	BurnFile(BOOTADDRESS);	
	EraseFlash();
	BurnFlash(BOOTADDRESS,punTemp,100);			
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -