Picproje Elektronik Sitesi

DERLEYİCİLER => Microchip XC Serisi => Microchip XC16 => Konuyu başlatan: Mr.Java - 14 Şubat 2014, 21:08:15

Başlık: XC16 error 255 hatası
Gönderen: Mr.Java - 14 Şubat 2014, 21:08:15
OS:Linux
IDE:MPLAB X
Derleyici:XC16
MCU:DsPIC33FJ128GP710
Error:255

CLEAN SUCCESSFUL (total time: 52ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]:`/home/fatih/MPLABXProjects/fuvk.X' dizinine giriliyor
make  -f nbproject/Makefile-default.mk dist/default/production/fuvk.X.production.hex
make[2]:`/home/fatih/MPLABXProjects/fuvk.X' dizinine giriliyor
"/opt/microchip/xc16/v1.21/bin/xc16-gcc"   newmain.c  -o build/default/production/newmain.o  -c -mcpu=33FJ128GP710  -MMD -MF "build/default/production/newmain.o.d"      -g -omf=elf -O0 -msmart-io=1 -Wall -msfr-warn=off
elf-cpp: dsPIC33FJ128GP710.gld: No such file or directory
elf-cpp: warning: '-x c' after last input file has no effect
elf-cpp: no input files
"/opt/microchip/xc16/v1.21/bin/xc16-gcc"   -o dist/default/production/fuvk.X.production.elf  build/default/production/newmain.o      -mcpu=33FJ128GP710        -omf=elf -Wl,--defsym=__MPLAB_BUILD=1,,--script=dsPIC33FJ128GP710.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/fuvk.X.production.map",--report-mem
/opt/microchip/xc16/v1.21/bin/bin/../bin/elf-ld: dsPIC33FJ128GP710.gld.00 bağlayıcı betik dosyası açılamadı: Böyle bir dosya ya da dizin yok
make[2]: *** [dist/default/production/fuvk.X.production.hex] Hata 255
make[1]: *** [.build-conf] Hata 2
make: *** [.build-impl] Hata 2
make[2]: `/home/fatih/MPLABXProjects/fuvk.X' dizininden çıkılıyor
make[1]: `/home/fatih/MPLABXProjects/fuvk.X' dizininden çıkılıyor

BUİLD FAILED (exit value 2, total time: 360ms)


Yardımcı olursanız sevinirim..
Başlık: Ynt: XC16 error 255 hatası
Gönderen: subram - 14 Şubat 2014, 22:44:22
boş bir proje oluşturdum. Aynı hatayı bende de verdi.
Başlık: Ynt: XC16 error 255 hatası
Gönderen: Tagli - 15 Şubat 2014, 00:09:57
Bu bağlantıda aynı sorundan bahsedilmiş: https://www.picproje.org/index.php?topic=47164.0 (https://www.picproje.org/index.php?topic=47164.0)

Ben Linux'ta hiç linker script hatası aldığımı hatırlamıyorum. Yalnız Linux'ta sorun çıkarmayan bir projenin Windows'ta derlenmediğini ve derlemek için kurulum klasöründen bir linker script'i proje klasörüne kopyalayıp projeye eklediğimi hatırlıyorum.
Başlık: Ynt: XC16 error 255 hatası
Gönderen: Burak B - 15 Şubat 2014, 02:42:53
Aşağıdaki dosyayı proje klasörüne kopyala (main.c dosyasının olduğu yere)
Alıntı YapC:\Program Files (x86)\Microchip\xc16\v1.21\support\dsPIC33F\gld\p33FJ256GP710.gld

MPLABX' de projendeki "Linker Files"  klasörüne sağ tıkla ve "Add existing item" seçeneğini seçip yukarıdaki dosyayı işaretle ve projene ekle. Tekrar derle.
Başlık: Ynt: XC16 error 255 hatası
Gönderen: Mr.Java - 02 Mart 2014, 10:56:53
Çoookkk teşekkürler ByteMaster hocam.Sayenizde oldu ve derlendi proje.Çok teşekürler.
Başlık: Ynt: XC16 error 255 hatası
Gönderen: kantirici - 02 Mart 2014, 12:09:22
*.gld dosyasını neden kendisi bulamıyor? Projeye eklemek yerine gld dosyasının ismini dsPIC****.gld olarak değiştirince sorun olmuyor. xc16 ve mplabx sürekli güncelleniyor ama bu hata halen var. Acaba farklı bir ayarmı var?