rosvall / cc2531_oem_flasher

Hack to flash a stock Texas Instruments CC2531USB-RD dongle, no tools required
http://rosvall.github.io/
2 stars 2 forks source link

Build error #1

Closed ekawahyu closed 8 months ago

ekawahyu commented 8 months ago

Please see the following error messages:

$ make
sdas8051 -pwlo stub.rel stub.s
sdld -nui stub.ihx stub.rel
objcopy --input-target=ihex --output-target=binary stub.ihx stub.bin
make -C bootloader bootloader.bin
make[1]: Entering directory '/Users/macos/Developer/cc2531_oem_flasher/bootloader'
sdas8051 -gcpwb -l dfu_mode.lst dfu_mode.s
dfu_mode.s:7: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:8: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:9: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:10: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:11: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:12: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:13: Error: <i> .include/.incbin file error or an .if/.endif mismatch
dfu_mode.s:86: Error: <r> relocation error
dfu_mode.s:97: Error: <r> relocation error
dfu_mode.s:115: Error: <r> relocation error
dfu_mode.s:118: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:372: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:377: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:388: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:393: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:398: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
dfu_mode.s:408: Error: <r> Arg1 + Arg2, Arg2 must be a constant.
removing 
make[1]: *** [Makefile:75: dfu_mode.lst] Error 2
make[1]: Leaving directory '/Users/macos/Developer/cc2531_oem_flasher/bootloader'
make: *** [Makefile:33: bootloader/bootloader.bin] Error 2
rm stub.ihx stub.rel
rosvall commented 8 months ago

Are you sure that you've cloned recursively? I get the same error messages if the bootloader/bsp directory is empty, so it might be that you for some reason don't have the bootloader/bsp repo cloned. Try git pull --recurse-submodules

ekawahyu commented 8 months ago

I had to fix the submodule url both in bootloader and bsp to make it work:

url = https://github.com/rosvall/cc2531_bsp_asm.git
url = https://github.com/rosvall/cc2531_bootloader.git
rosvall commented 8 months ago

Thank you. That should be fixed now.