ランニングエレクトロニクスサポート掲示板

SBRBTのビルド - 初心者

2021/11/04 (Thu) 23:03:58

はじめまして、お世話になります。
SBRBT-Rを購入して、フロー制御をなしに変更したい為、MPLABXIDE等をインストールしソースから変更して
ビルドを試みましたが、エラーが出てしまいできない状況です。
解決策をご教授願います。
エラー状況は
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
make -f nbproject/Makefile-default.mk dist/default/production/sbxbt_spp.X.production.hex
make[2]: Entering directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/btstack_memory.c -o build/default/production/_ext/1468720089/btstack_memory.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/btstack_memory.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/hci.c -o build/default/production/_ext/1468720089/hci.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/hci.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/hci_cmds.c -o build/default/production/_ext/1468720089/hci_cmds.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/hci_cmds.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/hci_dump.c -o build/default/production/_ext/1468720089/hci_dump.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/hci_dump.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/hci_transport_picusb.c -o build/default/production/_ext/1468720089/hci_transport_picusb.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/hci_transport_picusb.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/l2cap.c -o build/default/production/_ext/1468720089/l2cap.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/l2cap.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/linked_list.c -o build/default/production/_ext/1468720089/linked_list.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/linked_list.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/l2cap_signaling.c -o build/default/production/_ext/1468720089/l2cap_signaling.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/l2cap_signaling.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/rfcomm.c -o build/default/production/_ext/1468720089/rfcomm.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/rfcomm.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/run_loop_embedded.c -o build/default/production/_ext/1468720089/run_loop_embedded.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/run_loop_embedded.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/run_loop.c -o build/default/production/_ext/1468720089/run_loop.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/run_loop.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/remote_device_db_memory.c -o build/default/production/_ext/1468720089/remote_device_db_memory.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/remote_device_db_memory.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/memory_pool.c -o build/default/production/_ext/1468720089/memory_pool.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/memory_pool.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/utils.c -o build/default/production/_ext/1468720089/utils.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/utils.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/sdp.c -o build/default/production/_ext/1468720089/sdp.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/sdp.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../btstack/sdp_util.c -o build/default/production/_ext/1468720089/sdp_util.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1468720089/sdp_util.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../USB/usb_host.c -o build/default/production/_ext/1360907413/usb_host.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1360907413/usb_host.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../Common/uart1.c -o build/default/production/_ext/2108356922/uart1.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/2108356922/uart1.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../Common/uart2.c -o build/default/production/_ext/2108356922/uart2.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/2108356922/uart2.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../main.c -o build/default/production/_ext/1472/main.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1472/main.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O0 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../USB/usb_host_bluetooth.c -o build/default/production/_ext/1360907413/usb_host_bluetooth.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1360907413/usb_host_bluetooth.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../usb_config.c -o build/default/production/_ext/1472/usb_config.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1472/usb_config.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../xprintf.c -o build/default/production/_ext/1472/xprintf.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1472/xprintf.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../flash.c -o build/default/production/_ext/1472/flash.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1472/flash.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O1 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
../main.c:4:18: fatal error: ports.h: No such file or directory
compilation terminated.
make[2]: *** [build/default/production/_ext/1472/main.o] Error 255
make[2]: *** Waiting for unfinished jobs....
nbproject/Makefile-default.mk:364: recipe for target 'build/default/production/_ext/1472/main.o' failed
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
make[2]: Leaving directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 5s)

よろしくお願いします。

Re: SBRBTのビルド - ランエレ

2021/11/23 (Tue) 13:53:36

初心者様

返信が遅くなり申し訳ありません。
SBRBT-Rのご購入ありがとうございます。

Microchip Peripheral Libraries for PIC24 and dsPIC v2.00はインストールされてますか?

もしされていないようでしたら、下記リンクよりダウンロードし、インストールをお願いします。

https://www.microchip.com/SWLibraryWeb/product.aspx?product=PIC24%20MCU%20dsPIC%20Peripheral%20Lib

それでも問題が解決しないようでしたらもう一度ビルドログを貼り付けていただけると助かります。

Re: SBRBTのビルド - 初心者

2021/12/16 (Thu) 09:14:23

お世話になります。
ビルドログを貼り付けます。
よろしくお願いします。

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
make -f nbproject/Makefile-default.mk dist/default/production/sbxbt_spp.X.production.hex
make[2]: Entering directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
"C:\Program Files\Microchip\xc16\v1.70\bin\xc16-gcc.exe" ../main.c -o build/default/production/_ext/1472/main.o -c -mcpu=24FJ64GB004 -MP -MMD -MF "build/default/production/_ext/1472/main.o.d" -g -omf=elf -DXPRJ_default=default -no-legacy-libc -O0 -I".." -I"../Common" -I"../fatfs" -I"../USB" -I"../btstack" -I"." -msmart-io=1 -Wall -msfr-warn=off -mdfp="C:/Program Files/Microchip/MPLABX/v5.50/packs/Microchip/PIC24F-GA-GB_DFP/1.4.141/xc16"
../main.c:4:18: fatal error: ports.h: No such file or directory
compilation terminated.
nbproject/Makefile-default.mk:364: recipe for target 'build/default/production/_ext/1472/main.o' failed
make[2]: Leaving directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/Users/hashi/Desktop/sbrbt_spp_hex_141217/sbxbt_spp_src_150910/sbxbt_spp/sbxbt_spp.X'
make[2]: *** [build/default/production/_ext/1472/main.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 1s)

Re: SBRBTのビルド - ランエレ

2022/01/10 (Mon) 13:50:20

初心者様

ports.hが見つからないことがビルドできていない原因のようですが、Microchip Peripheral Libraries for PIC24 and dsPIC v2.00はインストールされてますか?

もしされていないようでしたら、下記リンクよりダウンロードし、インストールをお願いします。

https://www.microchip.com/SWLibraryWeb/product.aspx?product=PIC24%20MCU%20dsPIC%20Peripheral%20Lib

名前
件名
メッセージ
画像
メールアドレス
URL
文字色
編集/削除キー (半角英数字のみで4~8文字)
プレビューする (投稿前に、内容をプレビューして確認できます)

Copyright © 1999- FC2, inc All Rights Reserved.