I got the error message "arm-none-eabi-gcc: error: CreateProcess: No such file or directory
" can someone help me with this? Thanks
Thanks, But after I reinstall the GNU and Make sure the PATH had add to ENV. here came the other error message “tup error: failed to create child process: No such file or directory”
show as image.
I try to make firmware on my the other notebook, but still show error message.
the message as below:
$ make
* 1% 1) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/S rc\stm32f4xx_hal_cortex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION _VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_ HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=h ard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fsta ck-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4 F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewa res/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_D evice_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/ CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx _HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBo ard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
*** tup errors ***
*** Command ID=278 failed with return value 255
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Drive r_Src_stm32f4xx_hal_cortex.c.o' from cmd 278 but didn't
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Drive r_Src_stm32f4xx_hal_cortex.c.su' from cmd 278 but didn't
* 2% 2) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/S rc\stm32f4xx_hal_can.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VO LTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D_ _weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL _DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack- usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F - IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares /Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Devi ce_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC /Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HA L_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard /v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o bu ild\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
*** tup errors ***
*** Command ID=303 failed with return value 255
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Drive r_Src_stm32f4xx_hal_can.c.o' from cmd 303 but didn't
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Drive r_Src_stm32f4xx_hal_can.c.su' from cmd 303 but didn't
* 4% 3) arm-none-eabi-gcc -std=c99 -c Board/v3/Src\stm32f4xx_hal_timebase_TIM .c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTO COL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__ ((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405x x -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sectio ns -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Mid dlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middleware s/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTO S/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Driv ers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/In clude -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Src_stm 32f4xx_hal_timebase_TIM.c.o
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
*** tup errors ***
*** Command ID=300 failed with return value 255
tup error: Expected to write to file 'build/Board_v3_Src_stm32f4xx_hal_timebase_ TIM.c.o' from cmd 300 but didn't
tup error: Expected to write to file 'build/Board_v3_Src_stm32f4xx_hal_timebase_ TIM.c.su' from cmd 300 but didn't
* 5% 4) arm-none-eabi-gcc -std=c99 -c Board/v3/Middlewares/ST/STM32_USB_Devic e_Library/Core/Src\usbd_ioreq.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_V ERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STE P_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat -abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/A RM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Mi ddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32 _USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/ Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM 32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Includ e -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV83 01 -o build\Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_iore q.c.o
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
*** tup errors ***
*** Command ID=293 failed with return value 255
tup error: Expected to write to file 'build/Board_v3_Middlewares_ST_STM32_USB_De vice_Library_Core_Src_usbd_ioreq.c.o' from cmd 293 but didn't
tup error: Expected to write to file 'build/Board_v3_Middlewares_ST_STM32_USB_De vice_Library_Core_Src_usbd_ioreq.c.su' from cmd 293 but didn't
*** tup: 4 jobs failed.
make: *** [all] Error 1
What do you get if you run the following commands?
where tup
tup --version
where arm-none-eabi-gcc
arm-none-eabi-gcc --version
This is what I got
This seems to be an internal error in GCC.
I see you’re storing the ODrive repo on “I:”. Is that a network share? Try moving it to the local disk.
Else maybe this is related: https://stackoverflow.com/questions/46147992/gcc-exe-runtime-error
(The suggested fix is to point your “TEMP” variable to some specific directory at C:\TEMP)
I move the odrive firmware to c: and use administrator to run git bash to avoid the permission issue, but still not work out. the tup and gcc problem still there. thanks anyway.
$ make
* 1% 1) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_cortex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=278 failed with return value 1
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o' from cmd 278 but didn't
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.su' from cmd 278 but didn't
* 2% 2) arm-none-eabi-gcc -std=c99 -c Board/v3/Src\stm32f4xx_hal_timebase_TIM.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=300 failed with return value 1
tup error: Expected to write to file 'build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o' from cmd 300 but didn't
tup error: Expected to write to file 'build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.su' from cmd 300 but didn't
* 4% 3) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_can.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=303 failed with return value 1
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o' from cmd 303 but didn't
tup error: Expected to write to file 'build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.su' from cmd 303 but didn't
* 5% 4) arm-none-eabi-gcc -std=c99 -c Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Src\usbd_ioreq.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=293 failed with return value 1
tup error: Expected to write to file 'build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o' from cmd 293 but didn't
tup error: Expected to write to file 'build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.su' from cmd 293 but didn't
*** tup: 4 jobs failed.
make: *** [all] Error 1
My OS is windows10 running under traditional chinese, do you think this might cause problem? and is there any way to get the firmware other than build it from ground. my odrive board is V3.4-48V version.
Thanks , but the error still there.
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware/build (master)
$ dir
ODriveFirmware_v3.4-48V.elf ODriveFirmware_v3.4-48V.hex
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware/build (master)
$ make flash
make: *** No rule to make target `flash’. Stop.
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware/build (master)
$ cd …
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware (master)
$ make flash
- 1% 1) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_can.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=303 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o’ from cmd 303 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.su’ from cmd 303 but didn’t - 2% 2) arm-none-eabi-gcc -std=c99 -c Board/v3/Src\stm32f4xx_hal_timebase_TIM.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=300 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o’ from cmd 300 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.su’ from cmd 300 but didn’t - 4% 3) arm-none-eabi-gcc -std=c99 -c Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Src\usbd_ioreq.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=293 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o’ from cmd 293 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.su’ from cmd 293 but didn’t - 5% 4) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_cortex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=278 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o’ from cmd 278 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.su’ from cmd 278 but didn’t
*** tup: 4 jobs failed.
make: *** [all] Error 1
Try to clean the build folder and try again with just the .elf file. Sorry I forgot to mention, you have to rename the elf file to just ODriveFirmware.elf
. Try again with that.
still same
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware (master)
$ cd build
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware/build (master)
$ dir
ODriveFirmware.elf
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware/build (master)
$ cd …
heict_000@fcsoap MINGW64 /c/odrive/Odrive/Firmware (master)
$ make flash
tup: Converting build to a generated directory.
- 1% 1) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_cortex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=278 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o’ from cmd 278 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.su’ from cmd 278 but didn’t - 2% 2) arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src\stm32f4xx_hal_can.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=303 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o’ from cmd 303 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.su’ from cmd 303 but didn’t - 4% 3) arm-none-eabi-gcc -std=c99 -c Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Src\usbd_ioreq.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=293 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o’ from cmd 293 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.su’ from cmd 293 but didn’t - 5% 4) arm-none-eabi-gcc -std=c99 -c Board/v3/Src\stm32f4xx_hal_timebase_TIM.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=48 -DUSB_PROTOCOL_NATIVE -DUART_PROTOCOL_NONE -DUSE_GPIO_MODE_STEP_DIR -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build\Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o
arm-none-eabi-gcc: error: CreateProcess: No such file or directory
*** tup errors ***
*** Command ID=300 failed with return value 1
tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o’ from cmd 300 but didn’t
tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.su’ from cmd 300 but didn’t
*** tup: 4 jobs failed.
make: *** [all] Error 1
Thank everyone, I try to git clone the source again, The problem is fixed now.
here comes an other error message when I make dfu.
My python is version 3.6 and doing pip install without problem.
$ make dfu
…/tools/dfu.py build/ODriveFirmware.hex
C:\Python\python.exe: can’t find ‘main’ module in ‘C:\Odrive’
make: *** [dfu] Error 1
Which path are you running this from?
Try invoking the script directly by navigating to C:\ODrive\tools
and then running python dfu.py ..\Firmware\build\ODriveFirmware.hex
Also note that the DFU feature only works if you flashed the ODrive at least once before.
BTW the problem when you ran “make” as admin was that the PATH variable for the user is not the same as the admin’s. So you need to change the admin PATH too to include the build dependencies (e.g. arm-none-eabi-gcc)
it works now, Thanks