Andes Workshop http://forum.andestech.com/ |
|
如何在gdb console裡連線到simulator http://forum.andestech.com/viewtopic.php?f=23&t=612 |
Page 1 of 1 |
Author: | cindy [ Fri Aug 24, 2012 2:49 pm ] |
Post subject: | 如何在gdb console裡連線到simulator |
以下提供gdb在console裡,連線到simultor的方法。 方法有2種 (1) 在Andesight裡將simulator啟動, Attachment: p1.png [ 8.32 KiB | Viewed 7809 times ] 得到port number之後,再用gdb連線。 Attachment: p2.png [ 8.83 KiB | Viewed 7809 times ] 如下圖,我們連到port 9901。 Attachment: p3.png [ 11.88 KiB | Viewed 7808 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 [ 16.32 KiB | Viewed 7808 times ] 再以gdb連上port 9898 Attachment: p5.png [ 10.54 KiB | Viewed 7808 times ] 在sid console裡可以看到有一條新連線。 Attachment: p6.png [ 5.39 KiB | Viewed 7808 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 [ 5.98 KiB | Viewed 7799 times ] |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |