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

📄 ram-ln.cmd~

📁 This a simple bootloader for AT91SAM7{S,X}{64,128,256} processors. It permits you to download new c
💻 CMD~
字号:
/*   Linker options for loading a program in RAM on the AT91SAM7S256   This goes with ram-crt.s   by Adam Pierce http://www.doctort.org/adam   I'm assuming here that the SAM-BA leaves the system in user mode with a   stack and everything already configured.   The AT91SAM7S256 has RAM starting from 0x00200000 to 0x0020FFFF. SAM-BA reserves   some of that so we have a usable range of 0x00202000 to 0x0020FFFF.*//* Define the entry point of the program */
ENTRY(_init)

/* RAM address range for the AT91SAM7S256 minus the amount used by SAM-BA */
MEMORY 
{
	ram : ORIGIN = 0x00202000, LENGTH = 56K
}
/* Map all the sections used by the C compiler to RAM */
SECTIONS
{
	.text : /* The .text section is where the C compiler will put it's code */
	{		*(.text)
		*(.rodata)		*(.rodata.str1.4)
		*(.glue_7)  /* The glue sections are required by the linker for it's own */
		*(.glue_7t) /* internal weirdness. */		_etext = .;
	} >ram

	.data :	/* The .data section is for C constants and initialised variables */
	{
		_data = .;
		_edata = .;
	} >ram

	.bss :	/* The .bss section is for C variables */
	{
		_bss_start = .;
	} >ram

	_bss_end = . ;
}

⌨️ 快捷键说明

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