Re: HI-TECH compiler "const" 語法問題
|
||||
---|---|---|---|---|
新會員
|
這裡沒有辦法解答HI-TECH compiler的問題嗎??
不知道哪裡有解答HI-TECH compiler問題的管道.... 不知道是MPLAB IDE的問題還是真的是compiler的問題??苦惱~~ 如有大大有知道相關的管道請通知小弟~~謝謝
發表於: 2008/6/9 14:24
|
|||
|
Re: HI-TECH compiler "const" 語法問題
|
||||
---|---|---|---|---|
新會員
|
謝謝你!!!
不過,還是出現一樣的錯誤~~!!
發表於: 2008/4/17 8:53
|
|||
|
Re: HI-TECH compiler "const" 語法問題
|
||||
---|---|---|---|---|
中級會員
|
我純猜測的啦! 是不是改一下這邊試試...
static unsigned char LcdDspBuf[90] @0x0AB4;
發表於: 2008/4/16 20:40
|
|||
|
HI-TECH compiler "const" 語法問題
|
||||
---|---|---|---|---|
新會員
|
請問一下,我用的是PIC24FJ32GA004...
以下是我問題的程式...: 大綱:基本上我要做的是我將LCD的畫面資料利用 const定義 好,在藉由Function 將畫面的資料搬到Buffer的過程中有些問題。 static unsigned char LcdDspBuf[90] @0x0AB4; unsigned const char Fun00Menu[80] = { ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', 'M','O','N','T',' ','S','E','T','P',' ','T','E','S','T',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ', }; void ShowFunctionMenu( unsigned const char *SourPtr ); void main (void) { ShowFunctionMenu ( Fun00Men ); } void ShowFunctionMenu( unsigned const char *SourPtr ) { unsigned char i,j; unsigned const char *DestPtr; DestPtr = &LcdDspBuf; for ( i=0; i<10; i++ ) { *(DestPtr++) = 0x00; for ( j=0; j<8; j++ ) *(DestPtr++) = *SourPtr++; } } 執行到紅色字時,出現的錯誤是 RIErr0031: Failed to get PC RIErr0017: File register read failed 但我看*SourPtr 所指到的位址是0xFFB0 看起來好像是超出範圍了....可否請高手幫我解答...是哪裡弄錯了....謝謝
發表於: 2008/4/15 15:57
|
|||
|