Site Mirror:   USA  |  China
  Home   Products   Service   Order   Support   Forum   Company   Download 
 

  Support


>> FAQ
 
 
>> FAQ Search
 
 
>> Support Contact
 
 
>> Online Support
 
 
 


Answer


FAQ >> Embest IDE for ARM >> Linker and script files


Date   2005-7-5 10:47:09
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


 Embest Info&Tech Co., Ltd. Copyright © 2000-2010, All rights reserved.

Room 509, Luohu Science&Technology Building, #85 Taining Road, Shenzhen, Guangdong, China(518020)
Tel: +86-755-25635656   Fax: +86-755-25616057  http://www.armkits.com  http://www.embedinfo.com 
Report any problems to the webmaster.