-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Error #97
Comments
Is python on your path? From a command prompt, run |
no its not in my path it says $ where python3 |
When I check my Python Version it returns the version $ python --version |
Ah, interesting that your python only has `python.exe` and not
`python3.exe`. You could make a symlink named `python3.exe` that points at
`python.exe`, or edit the makefile in the bootloader folder to change calls
to `python3` to `python`.
…On Fri, Nov 6, 2020 at 7:40 PM NBAPJ ***@***.***> wrote:
When I check my Python Version it returns the version
$ python --version
Python 3.9.0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAETEQ45UYTBQYPKEC7AHZ3SOSJQHANCNFSM4TNIETEA>
.
|
I added it to my path where python |
oh nevermind its not working for python3 |
Different Error make[1]: *** [Makefile:401: _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539_s140_6.1.1.zip] Error 2 |
What are the lines around the error? |
yea i really messed up after i edited makefile to look for python instead of python3 i get this error $ make bootloader I changed it back but i still get the same error |
Here is the MakeFile: SDK_PATH = lib/sdk/components SD_VERSION = 6.1.1 MBR_HEX = lib/softdevice/mbr/hex/mbr_nrf52_2.4.1_mbr.hex linker by MCU eg. nrf52840.ldLD_FILE = linker/$(MCU_SUB_VARIANT).ld GIT_VERSION != git describe --dirty --always --tags compiled file nameOUT_FILE = merged file = compiled + sdMERGED_FILE = $(OUT_FILE)$(SD_NAME)$(SD_VERSION) #------------------------------------------------------------------------------ Tool configure#------------------------------------------------------------------------------ Toolchain commandsShould be added to your PATHCROSS_COMPILE ?= arm-none-eabi- Flasher utility optionsNRFUTIL = adafruit-nrfutil Flasher will default to nrfjprog,Check for pyocd, error on unexpected value.ifeq ($(FLASHER),nrfjprog) Set make directory command, Windows tries to create a directory named "-p" if that flag is there.ifneq ($(OS), Windows_NT) RM = rm -rf auto-detect BMP on macOS, otherwise have to specifyBMP_PORT ?= $(shell ls -1 /dev/cu.usbmodem????????1 | head -1) #--------------------------------- Select the board to build#--------------------------------- Note: whitespace is not allowed in the filenames... it WILL break this part of the scriptBOARD_LIST = ifeq ( Build directoryBUILD = _build/build-$(BOARD) Board specific-include src/boards/$(BOARD)/board.mk MCU_SUB_VARIANT can be nrf52 (nrf52832), nrf52833, nrf52840ifeq ($(MCU_SUB_VARIANT),nrf52) #------------------------------------------------------------------------------ SOURCE FILES#------------------------------------------------------------------------------ all files in srcC_SRC += $(wildcard src/*.c) all files in boardsC_SRC += $(wildcard src/boards/*.c) all sources files in specific boardC_SRC += nrfxC_SRC += $(NRFX_PATH)/drivers/src/nrfx_power.c SDK 11 files: serial + OTA DFUC_SRC += $(SDK11_PATH)/libraries/bootloader_dfu/bootloader.c Latest SDK files: peripheral driversC_SRC += $(SDK_PATH)/libraries/timer/app_timer.c UART or USB Serialifeq ($(MCU_SUB_VARIANT),nrf52) C_SRC += $(SDK_PATH)/libraries/uart/app_uart.c IPATH += $(SDK11_PATH)/libraries/util else USB Application ( MSC + UF2 )C_SRC += $(wildcard src/usb/.c) TinyUSB stackC_SRC += $(TUSB_PATH)/portable/nordic/nrf5x/dcd_nrf5x.c endif #------------------------------------------------------------------------------ Assembly Files#------------------------------------------------------------------------------ #------------------------------------------------------------------------------ INCLUDE PATH#------------------------------------------------------------------------------ srcIPATH += src nrfxIPATH += $(NRFX_PATH) IPATH += $(SDK11_PATH)/libraries/bootloader_dfu/hci_transport IPATH += $(SDK_PATH)/libraries/timer SoftdeviceIPATH += #------------------------------------------------------------------------------ Compiler Flags#------------------------------------------------------------------------------ Debug option use RTT for printfifeq ($(DEBUG), 1)
C_SRC += $(RTT_SRC)/RTT/SEGGER_RTT.c #flags common to all targets Suppress warning caused by SDKCFLAGS += -Wno-unused-parameter -Wno-expansion-to-defined TinyUSB tusb_hal_nrf_power_eventCFLAGS += -Wno-cast-function-type Defined Symbol (MACROS)CFLAGS += -D__HEAP_SIZE=0 Skip defining CONFIG_NFCT_PINS_AS_GPIOS if the device uses the NFCT.ifneq ($(USE_NFCT),yes) CFLAGS += -DSOFTDEVICE_PRESENT CFLAGS += -DUF2_VERSION='"$(GIT_VERSION) $(GIT_SUBMODULE_VERSIONS)"' _VER = #------------------------------------------------------------------------------ Linker Flags#------------------------------------------------------------------------------ LDFLAGS += LIBS += -lm -lc #------------------------------------------------------------------------------ Assembler flags#------------------------------------------------------------------------------ #function for removing duplicates in a list C_SOURCE_FILE_NAMES = ASM_SOURCE_FILE_NAMES = vpath %.c $(C_PATHS) OBJECTS = INC_PATHS = #------------------------------------------------------------------------------ BUILD TARGETS#------------------------------------------------------------------------------ Verbose mode (V=). 0: default, 1: print out CFLAG, LDFLAG 2: print all compile commandifeq ("$(V)","1") .PHONY: all clean flash dfu-flash sd gdbflash gdb default target to buildall: Print out the value of a make variable.https://stackoverflow.com/questions/16467718/how-to-print-out-a-variable-in-makefileprint-%: #------------------- Compile rules ------------------- Create build directories$(BUILD): clean: Create objects from C SRC files$(BUILD)/%.o: %.c Assemble files$(BUILD)/%.o: %.S Link
#------------------- Binary generator ------------------- Create hex file (no sd, no mbr)
Hex file with mbr (still no SD)
Bootolader only uf2
merge bootloader and sd hex together
Create pkg zip file for bootloader+SD combo to use with DFU CDC
#------------------- Flash target ------------------- check_defined = Flash the compiledflash: erase: flash SD onlysd: flash MBR onlymbr: #------------------- Flash with NRFUTIL via DFU ------------------- dfu using CDC interfacedfu-flash: #------------------- Debugging ------------------- gdbflash: gdb: |
Here is the Error $ make bootloader |
It's not finding |
Yea I already have it installed: pip install adafruit-nrfutil Do you think that it installed in the wrong directory? |
Is |
I finally got adafruit-nrfutil installed $ where adafruit-nrfutil I don't know why but when I piped installed adafruit-nrfutil it wasnt installing everything so I had to install it git clone command I have put it in my PATH but its still giving me the same error I don't understand what file it cannot find make bootloader |
Ah yeah, the |
Yea i think I did, but the scripts folder is in my path, I gonna play around with it to see if I can fix it. But can you tell me what file it’s looking for? |
It's looking for You can see where it failed with:
The second argument to create process is the command it's trying to run. |
Discussion continued in #98 |
Hi I think I finally got my build environment set up correctly. I ran the make command and got the following files in the Odiin build folder: nrf52840_xxaa.bin, nrf52840_xxaa.hex, nrf52840_xxaa.in, nrf52840_xxaa.map, nrf52840_xxaa.out.
But when I run the make bootloader command I get the following error:
$ make bootloader
Building UF2 bootloader...
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C bootloader BOARD=odiin all
make[1]: Entering directory 'C:/Users/melenese/Desktop/OdiinNFC2/Odiin/bootloader'
CC dfu_ble_svc.c
CC dfu_init.c
CC flash_nrf5x.c
CC main.c
CC boards.c
CC pinconfig.c
CC nrfx_power.c
CC nrfx_nvmc.c
CC system_nrf52840.c
CC bootloader.c
CC bootloader_settings.c
CC bootloader_util.c
CC dfu_transport_serial.c
CC dfu_transport_ble.c
CC dfu_single_bank.c
CC ble_dfu.c
CC ble_dis.c
CC pstorage_raw.c
CC app_timer.c
CC app_scheduler.c
CC app_error.c
CC app_util_platform.c
CC crc16.c
CC hci_mem_pool.c
CC hci_slip.c
CC hci_transport.c
CC nrf_assert.c
CC msc_uf2.c
CC usb.c
CC usb_desc.c
CC ghostfat.c
CC dcd_nrf5x.c
CC tusb_fifo.c
CC usbd.c
CC usbd_control.c
CC cdc_device.c
CC msc_device.c
CC tusb.c
AS gcc_startup_nrf52840.S
LD odiin_bootloader-0.3.2-158-g23e6539.out
text data bss dec hex filename
31300 1572 22594 55466 d8aa _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539.out
Create odiin_bootloader-0.3.2-158-g23e6539.hex
Create odiin_bootloader-0.3.2-158-g23e6539-nosd.hex
process_begin: CreateProcess(NULL, python3 tools/hexmerge.py --overlap=replace -o _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539-nosd.hex _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539.hex lib/softdevice/mbr/hex/mbr_nrf52_2.4.1_mbr.hex, ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [Makefile:387: _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539-nosd.hex] Error 2
make[1]: Leaving directory 'C:/Users/melenese/Desktop/OdiinNFC2/Odiin/bootloader'
make: *** [Makefile:483: bootloader] Error 2
The text was updated successfully, but these errors were encountered: