Re: 關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
高級會員
|
難怪...看來我有必要去上24的課了...感恩耶!
發表於: 2008/3/12 18:30
|
|||
|
Re: 關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
版主
|
發表於: 2008/3/12 15:10
|
|||
|
Re: 關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
版主
|
那是c18 的用法,C30 要用 attributes _Address( ) 的宣告。詳細使用方法參考 C30 User's Guide, earch 一下。
發表於: 2008/3/12 15:08
|
|||
|
Re: 關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
高級會員
|
非常謝謝版主! 所以說*gld 文件 可以決定我之後程式要燒到的位址是嗎?
那使用 pragma code 直接指定位址 就可以把 程式 #pragma code isrhighcode = 0x0008 #pragma code 就可以把 程式Flash到我想要的位址? 沒指定的 才會從0x200 開始Flash ? 是這個意思嗎?
發表於: 2008/3/12 9:14
|
|||
|
Re: 關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
版主
|
對 PIC24FJ64GA006 元件裡的 RAM & Flash 的描述。
{ data (a!xr) : ORIGIN = 0x800, LENGTH = 0x2000 RAM 的容量及起始位址&長度。 reset : ORIGIN = 0x0, LENGTH = 0x4 Reset 位址 ivt : ORIGIN = 0x4, LENGTH = 0xFC 第一組中斷向量表 aivt : ORIGIN = 0x104, LENGTH = 0xFC 第二組中斷向量表 program (xr) : ORIGIN = 0x200, LENGTH = 0xA9FC Flash Memory 的位址及長度 config2 : ORIGIN = 0xABFC, LENGTH = 0x2 config. 位置 config1 : ORIGIN = 0xABFE, LENGTH = 0x2 }
發表於: 2008/3/7 14:24
|
|||
|
關於 *.gld 文件裡面的內容!?
|
||||
---|---|---|---|---|
高級會員
|
目前手上的pic 是 p24FJ64GA006
想請問 p24FJ64GA006.gld 裡面是有哪方面的資訊呢? 想請問 以下這段的意思是? MEMORY { data (a!xr) : ORIGIN = 0x800, LENGTH = 0x2000 reset : ORIGIN = 0x0, LENGTH = 0x4 ivt : ORIGIN = 0x4, LENGTH = 0xFC aivt : ORIGIN = 0x104, LENGTH = 0xFC program (xr) : ORIGIN = 0x200, LENGTH = 0xA9FC config2 : ORIGIN = 0xABFC, LENGTH = 0x2 config1 : ORIGIN = 0xABFE, LENGTH = 0x2 } 感恩~
發表於: 2008/3/6 13:13
|
|||
|