Re: 請問 Warning [359] ?
|
||||
---|---|---|---|---|
初級會員
|
原來副函式宣告我忘了也加上 const
難怪看不懂 謝謝指教
發表於: 2008/3/10 14:06
|
|||
|
Re: 請問 Warning [359] ?
|
||||
---|---|---|---|---|
版主
|
ROM 的指標傳給RAM的指標,當然會被拒絕。
發表於: 2008/3/10 9:22
|
|||
|
Re: 請問 Warning [359] ?
|
||||
---|---|---|---|---|
版主
|
I2CWrite ( ) 函數所要使用的參數應該是變數或常數值,你傳 ROM 的指標(Reg_00_01)給它,它當然看不懂。
發表於: 2008/3/7 13:59
|
|||
|
請問 Warning [359] ?
|
||||
---|---|---|---|---|
初級會員
|
我的開發環境為 PIC16F628A、MPLAB IDE v8.0、Hi-Tech PICC v9.6
程式內使用相當多的陣列 所以我打算將他們擺進 ROM 內 宣告方式 : const unsigned char Reg_00_01[]={0x00,0x00,0xC8}; ... 呼叫方式 : I2cWrite(SlaveAddr,Reg_00_01,3); ... 在 compile 時出現了以下錯誤訊息 Warning [359] D:\Microchip\RS-485_I2C_v3\i2c.c; 49.32 illegal conversion between pointer types ------上面相同訊息好幾個------ Error [593] ; . can't find 0x3 words (0x3 withtotal) for psect "const8" in segment "CONST" ********** Build failed! ************** 請問這是怎麼回事呢 煩請指教 謝謝
發表於: 2008/3/7 13:46
|
|||
|