:::


Browsing this Thread:   1 Anonymous Users






BUILD SUCCEEDED:樣算建檔成功嗎?
#1
新會員
新會員


查看用戶資訊
各位前輩你好
執行下列app23實驗版30f4011的pwm程式


int main( void )
{
ADC10_Initial( ) ;
OpenLCD( ) ;
MotPWM_Initial( ) ;

CTRL_LED7 = 0 ;

Flags.Word = 0 ;
putrsLCD("Ex4:ADC Trigger ") ;
setcurLCD(0,1) ;
putrsLCD("PWM Trig AD= ") ;

SEVTCMP = 250 ;

while (1)
{
while ( Flags.AD_DONE == 0 ) ;
Flags.AD_DONE = 0 ;

PDC1 = ((long)ADC_Buf * 736 )/512 ;

setcurLCD(12,1) ;
putrsLCD(" ") ;
setcurLCD(12,1) ;
uitoa( ASCII_Buf , ADC_Buf );
putsLCD(ASCII_Buf) ;

Delay_123( ) ;
}
}
結果出現

Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\motor control\8. MPWM\ADC_PWM\ADC_PWM.o".
Clean: Deleted file "D:\motor control\8. MPWM\ADC_PWM\C30EVM_LCD.o".
Clean: Deleted file "D:\motor control\8. MPWM\ADC_PWM\EX1_PWM.cof".
Clean: Deleted file "D:\motor control\8. MPWM\ADC_PWM\EX1_PWM.hex".
Clean: Deleted file "D:\motor control\8. MPWM\ADC_PWM\EX1_PWM.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -c -x c "ADC_PWM.c" -o"ADC_PWM.o" -g
ADC_PWM.c: In function 'main':
ADC_PWM.c:81: warning: pointer targets in passing argument 1 of 'putsLCD' differ in signedness
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F4011 -c -x c "C30EVM_LCD.c" -o"C30EVM_LCD.o" -g
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -Wl,"D:\motor control\8. MPWM\ADC_PWM\ADC_PWM.o","D:\motor control\8. MPWM\ADC_PWM\C30EVM_LCD.o","C:\Program Files\Microchip\MPLAB C30\lib\libp30F4011-coff.a",-L"C:\Program Files\Microchip\MPLAB C30\lib",--script="C:\Program Files\Microchip\MPLAB C30\support\gld\p30f4011.gld",--defsym=__ICD2RAM=1,-Map="EX1_PWM.map",-o"EX1_PWM.cof"
Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-bin2hex.exe" "D:\motor control\8. MPWM\ADC_PWM\EX1_PWM.cof"
Loaded D:\motor control\8. MPWM\ADC_PWM\EX1_PWM.cof.
BUILD SUCCEEDED: Sat Jun 14 17:56:27 2008

其中
ADC_PWM.c: In function 'main':
ADC_PWM.c:81: warning: pointer targets in passing argument 1 of 'putsLCD' differ in signedness
是何問題請各位大大幫忙
這樣算建檔成功嗎?
謝謝感激萬分
明欽

發表於: 2008/6/15 18:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: BUILD SUCCEEDED:樣算建檔成功嗎?
#2
版主
版主


查看用戶資訊
參照:
ADC_PWM.c: In function 'main':
ADC_PWM.c:81: warning: pointer targets in passing argument 1 of 'putsLCD' differ in signedness

這是編譯的警告,因為祇是參數的宣告無法對應putsLCD( ) 的需求而已。編譯成功,但不見的傳進函數的顯示資料一定會對,所以還是要將此警告排除。

如果你忽略此警告的話,程式可以執行,但結果不一定會正確。

發表於: 2008/6/16 8:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You can attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

http://elearning.microchip.com.tw/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

課程 - 台北教育訓練中心
課程 - 新竹教育訓練中心
課程 - 高雄教育訓練中心
教育訓練中心介紹
購買 - 實驗工具
臺灣實驗板介紹與資源