Andes Workshop https://forum.andestech.com/ |
|
利用Diagnosis程式測試local memory https://forum.andestech.com/viewtopic.php?f=6&t=21 |
Page 1 of 1 |
Author: | cindy [ Sat Mar 12, 2011 11:04 am ] |
Post subject: | 利用Diagnosis程式測試local memory |
ADP-XC5內建的Diagnosis program有一個測試memory的功能, 先寫入再讀出數值做比較。 我們利用這個程式, 先將local memory enabled,並設定位址, 即可檢查local memory的讀寫是否正常。 Step1: 先將ILM base設到0x04000000,並enable它。(set $mr6=0x04000001) DLM base設到0x05000000,並enable它。 (set $mr7=0x05000001) Attachment: pp1.gif [ 16.81 KiB | Viewed 8922 times ] Step2: 利用Diagnosis程式的(14)測試local memory。 本程式掃過的範圍是0x04000000~0x08000000。 三個測試均pass Attachment: pp2.gif [ 10.62 KiB | Viewed 8922 times ] Step3: 測試完成,再用gdb連進去看0x04000000的這個位置。 數值為0xaaaa5555,為剛才的測試pattern。 然後我把ILM disabled ( set $mr6=0x0 ) 得到數值變成讀dram的位置 0x12345678 Attachment: pp3.gif [ 16.24 KiB | Viewed 8922 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/ |