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

📄 c_load

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻
字号:
The load CommandloadThe load command downloads programs and data from the host. FormatThe format for the load command is:load [-abeistB] [-baud] [offset] [-c cmdstr] filenamewhere:-m	Only load the symbol information.-a	suppresses addition of an offset to symbols.-b	suppresses deletion of all breakpoints before the download. -e	suppresses clearing of the exception handlers.-i	ignores checksum errors.-s	suppresses clearing of the symbol table before the download.-t	loads at the top of memory (PMON only).-f	load driver from flash (IMON only).-B	Interprets input from host as binary data for Ethernet 	transfers.-baud		sets the baud rate for transfer.offset		loads at the specified offset.-c cmdstr	sets a command string that the Monitor sends to the host to 		start a download operation. String cmdstr is the string that 		starts the download. Note that the command string must be 		enclosed in double quotation marks if the string contains any 		spaces.filename	load the specified file (imon95 only).Invoking the load command with no parameters or arguments clears the symbol table, deletes all current breakpoints, allows the Monitor to receive programs or data from the host, and uses the current baud rate by default.Functional DescriptionThe load command accepts programs and data from the host port in LSILogic's proprietary FastLoad format, Motorola S-record, or binary files.  The user canset environment variables to change the data port, the format, and thetransfer protocol. The load command normally clears the symbol table, exception handlers, and all breakpoints. The -s and -b options suppress the clearing of the symbol table and breakpoints, respectively. The value of the EPC register is set automatically to the entry point of the program. Therefore, to execute the downloaded program, only the g command is required.The -c option permits a command string to be sent to the host when the load command is issued. This is intended for use in conjunction with the transparent mode. Note that if the command string contains multiple words, the command must be enclosed in double quotation marks, as shown in the example below.The load command returns the error message "out of memory" if there is insufficient space in the heap for the program's global symbols. To increase the size of the heap , use the set heaptop command to reserve more space in the heap, and then use the -T option with the pmcc command to set the start address of the text section to the same address that was specified for the heap. See the pmcc command on page 3-13.The dlecho, dlproto, and hostport VariablesThe dlecho, dlproto, and hostport variables control operation of the download. The following table shows how these environment variables affect the operation of the load command.VariableActiondlecho offDo not echo the linesdlecho onEcho the linesdlecho lfeedEcho only a linefeed for each linedlproto noneDo not use a protocoldlproto XonXoffSend Xon and Xoff to control the hostdlproto EtxAckExpect Etx as end of record, send Ackhostport tty0Select tty0 as the port to which the host is connectedhostport tty1Select tty1 as the port to which the host is connectedhostport ethernetSelect ethernetas the port to which the host is connectedSee the section on downloading beginning on page 1-9 for more information on these variables and the use of the load command.ExamplesDownload to tty1 using the edown program.	PMON set dlecho off 	PMON set hostport tty1 	PMON set dlproto EtxAck 	PMON load 		% edown Download to tty0 using a terminal emulator.	PMON set dlecho off 	PMON set hostport tty0 	PMON set dlproto none 	PMON load 		-- use terminal emulator's "send text file" command	Downloading from tty0, ^C to abort	Entry address is 80020000	Total = 0x00043C00 bytes	PMONWhen using the Monitor in an environment wheretty1 is connected to a login line on a Unix host. You will need to senda command to start the download. In the following example the command"cat test1.rec" is sent to the host.	PMON load -c "cat test1.rec"FilesThe code for the load command is located in pmon/load.c (PMON), and imon/load.c (IMON).See Alsoset command for the setup of the environment variables.

⌨️ 快捷键说明

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