Andes Workshop

It is currently Fri Mar 29, 2024 2:54 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: gdb指令之targetreset and targetresetrun
PostPosted: Thu Apr 26, 2012 2:31 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
targetreset是組合指令,
在E:\Andestech\AndeSight200MCU\toolchains\nds32le-elf-newlib-v3m\bin\.Andesgdbinit裡,如下:

將target reset並且hold住
# reset and hold
define targetreset
if $argc == 0
monitor reset hold
else
echo "targetreset has no parameter"
end
flushregs
end

將target reset並且run一段boot code再hold住。
# default reset address:0x00000000
# reset and run
define targetresetrun
if $argc == 0
monitor reset target 0x00000000
else
monitor reset target $arg0
end
flushregs
end


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group