Andes Workshop

It is currently Fri Jun 30, 2017 1:03 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ILM及DLM的設定
PostPosted: Fri Dec 30, 2011 4:34 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
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:
p1.gif
p1.gif [ 48.04 KiB | Viewed 4879 times ]


Attachment:
p2.gif
p2.gif [ 36.18 KiB | Viewed 4879 times ]


Top
 Profile  
 
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 2 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