Andes Workshop

It is currently Fri Mar 29, 2024 12:40 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 如何在gdb console裡連線到simulator
PostPosted: Fri Aug 24, 2012 2:49 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
以下提供gdb在console裡,連線到simultor的方法。
方法有2種

(1) 在Andesight裡將simulator啟動,
Attachment:
p1.png
p1.png [ 8.32 KiB | Viewed 7727 times ]


得到port number之後,再用gdb連線。
Attachment:
p2.png
p2.png [ 8.83 KiB | Viewed 7727 times ]


如下圖,我們連到port 9901。
Attachment:
p3.png
p3.png [ 11.88 KiB | Viewed 7726 times ]


(2) 不用Andesight,在console裡用sid將simulator啟動。
(指令為sid *.conf)
注意!這個模式下只有console輸出,其他在Andesight裡的GUI,
如LCD display等都不會顯示。

請看下圖,
我們預設的vep檔案在
/cygdrive/e/Andestech/AndeSight200MCU/vep/tmpl裡
用以下command啟動simulator
sid.exe ADP-XC5-for-N903-S-32GPR.vep.conf
Attachment:
p4.png
p4.png [ 16.32 KiB | Viewed 7726 times ]


再以gdb連上port 9898
Attachment:
p5.png
p5.png [ 10.54 KiB | Viewed 7726 times ]


在sid console裡可以看到有一條新連線。
Attachment:
p6.png
p6.png [ 5.39 KiB | Viewed 7726 times ]


---------------------------------------------------------------------
vep轉成conf檔的方法
在上面提到的tmpl目錄下,預設是*.vep檔,
如果曾用IDE啟動simulator的target,則Andesight會自動產生*.vep.conf檔。
這個.vep.conf檔,可以用sid啟動。

我們有另個tool vep2conf.exe,能將vep檔轉成conf檔。指令如下。
../../sid/ins/vep2conf.exe ADP-XC5-for-N1033A-S.vep -o ADP-XC5-for-N1033A-S.vep.conf
打vep2conf.exe --help可以看使用說明。

Attachment:
p7.png
p7.png [ 5.98 KiB | Viewed 7717 times ]


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 16 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