Andes Workshop http://forum.andestech.com/ |
|
ILM及DLM的設定 http://forum.andestech.com/viewtopic.php?f=7&t=229 |
Page 1 of 1 |
Author: | cindy [ Fri Dec 30, 2011 4:34 pm ] |
Post subject: | ILM及DLM的設定 |
DLMB ($mr7)的設定是這樣子的..最後1 個bit是enable。 前面是address,中間幾個bit是size,是readonly的。 例如想要將dlmb設定在0x100000地址上 用gdb command,是 set $dlmb=0x100001 則0x100000~0x110000都是dlm的位址 這一篇有說到一點相關的,可以參考 viewtopic.php?f=6&t=23&hilit=local+memory 請看Andesight v200 mcu裏附的SPA文件Page 179 我截圖如下: 例如要DLMB要從0x3000開始,則DLMB的DBPA設為0xC。(取前22個bit) 0x3000=11000000000000 (2) 取前22 bit (或者說,去掉後面10bit) 則為1100(2),即為0xC 最簡便的記法,是base再加1 DLMB要從0x3000開始,則設定$dlmb為0x3001 中間的size欄位為唯讀,所以並不會被改變。 Attachment: Attachment:
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |