2006-06-27

What's is command script (*.cs) ?

From: What is a command script file *.cs? How can I make a command script file?

Haha~~ it is one of FAQs. :P I am lamer. 囧rz


Date 7/5/2005 10:47:09 AM
Question What is a command script file *.cs? How can I make a command script file?
Answer

While debugging software or after the target board resetted, sometimes users may need IDE automatically finish some special functions such as resetting target board, clearing off watchdog, shutting off interrupts, memory map, etc., these special functions can be completed through executing a group of commands. This group of commands saved as a text file and is called command script file.
You can execute the command script (*.cs) file to initialize your target board before debugging. But such a file is not necessary if some programs (such as bios,bootloader) execute well after power on. The cs file for Embest Debugger is just very useful to debug a target board without any code in boot rom.
For Embest IDE, when remotely connected to the target device, we can execute the command script (*.cs) file to initialize the system before debugging. We can do as following:
Project ->Settings ->DEBUG ->Action After connected, select the command script that you want to execute.
The following are the examples of command scripts :

; stop target CPU
stop
; configurations of the special register
memwrite 0xffe00000 0x01002535
memwrite 0xffe00004 0x02002121
memwrite 0xffe00024 0x06
; configuration for Mapping Address
memwrite 0xffe00020 0x01
refresh
download -v D:\Demo\armdemo\debug\led.elf 0x2000000
;end

1 則留言:

Alan Lu (盧利雄) 提到...

*.cs Usage:

EMbest help -> User Guide -> 命令參考 -> 命令列表 or 命令腳本文件格式