Board version not specified?

hi,

I already write the tup.config.default’s CONFIG_BOARD_VERSION=v3.5-24V, then make, but still report:

tup error [string “Tupfile.lua”]:43: board version not specified - take a look at tup.config.default
stack traceback:
[C]: in function ‘error’
[string “Tupfile.lua”]:43: in main chunk
[ ETA~=<1s Remaining=51 ] 1%
*** tup: 1 job failed.
Makefile:14: recipe for target ‘all’ failed
make: *** [all] Error 1

why? need more adjust ?

Did you uncomment the line? I think it is commented out to begin with, so you need to both update it to match your config and uncomment it.

Also, you need to copy tup.config.default and rename it to tup.config. Have you also done that?

thank you, I don’t rename it

Hi,

I am facing the same issue as well.

-master/Firmware
.tup repository initialized.
Scanning...
Reading tup.config...
Parsing...
 ~ 1% .vscode
 ~ 3% build
 ~ 5% Board/v3/Src/prev_board_ver
 ~ 7% Board/v3/Src
 ~ 9% Board/v3/Drivers/STM32F4xx_HAL_Driver/Src
 ~11% Board/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy
 ~13% Board/v3/Drivers/STM32F4xx_HAL_Driver/Inc
 ~15% Board/v3/Drivers/STM32F4xx_HAL_Driver
 ~16% Board/v3/Drivers/CMSIS/Lib
 ~18% Board/v3/Drivers/CMSIS/Include
 ~20% Board/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include
 ~22% Board/v3/Drivers/CMSIS/Device/ST/STM32F4xx
 ~24% Board/v3/Drivers/CMSIS/Device/ST
 ~26% Board/v3/Drivers/CMSIS/Device
 ~28% Board/v3/Drivers/CMSIS
 ~30% Board/v3/Drivers
 ~32% Board/v3/Inc/prev_board_ver
 ~33% Board/v3/Inc
 ~35% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/include
 ~37% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F
 ~39% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC
 ~41% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang
 ~43% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/portable
 ~45% Board/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS
 ~47% Board/v3/Middlewares/Third_Party/FreeRTOS/Source
 ~49% Board/v3/Middlewares/Third_Party/FreeRTOS
 ~50% Board/v3/Middlewares/Third_Party
 ~52% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src
 ~54% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
 ~56% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC
 ~58% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Class
 ~60% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Src
 ~62% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc
 ~64% Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core
 ~66% Board/v3/Middlewares/ST/STM32_USB_Device_Library
 ~67% Board/v3/Middlewares/ST
 ~69% Board/v3/Middlewares
 ~71% Board/v3
 ~73% Board
 ~75% fibre/test
 ~77% fibre/cpp/include/fibre
 ~79% fibre/cpp/include
 ~81% fibre/cpp
 ~83% fibre/python/fibre
 ~84% fibre/python
 ~86% fibre/tools
 ~88% fibre/tupfiles
 ~90% fibre
 ~92% communication
 ~94% Drivers/DRV8301
 ~96% Drivers
 ~98% MotorControl
* 100% .
tup error [string "Tupfile.lua"]:43: board version not specified - take a look at tup.config.default
stack traceback:
	[C]: in function 'error'
	[string "Tupfile.lua"]:43: in main chunk

I’ve added the board version: CONFIG_BOARD_VERSION=v3.6-56V to the tup.config.default.
Here are the contents of the file:

# Copy this file to tup.config and adapt it to your needs
# make sure this fits your board
CONFIG_BOARD_VERSION=v3.6-56V
CONFIG_USB_PROTOCOL=native
CONFIG_UART_PROTOCOL=ascii
CONFIG_DEBUG=false

# Uncomment this to error on compilation warnings
CONFIG_STRICT=true

I also made a copy of the file and renamed it to tup.config. However, I still run into the issue.

Any help would be appreciated as I am running a on time crunch project.

A file named tup.config in the Firmware directory with the following settings works for me:

# Copy this file to tup.config and adapt it to your needs
# make sure this fits your board
CONFIG_BOARD_VERSION=v3.6-56V
CONFIG_USB_PROTOCOL=native
CONFIG_UART_PROTOCOL=ascii
CONFIG_DEBUG=false

# Uncomment this to error on compilation warnings
#CONFIG_STRICT=true