Skip to content
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

build error: 'BODPD_SAMPLED_gc' undeclared #41

Open
isopix opened this issue May 6, 2023 · 9 comments
Open

build error: 'BODPD_SAMPLED_gc' undeclared #41

isopix opened this issue May 6, 2023 · 9 comments

Comments

@isopix
Copy link

isopix commented May 6, 2023

[HDK_20][-O3] ../src/Boot.c : HDK_20/src/Boot.o
In file included from ../src/ASF/common/services/ioport/ioport.h:121,
from ../src/Boot.c:10:
In function 'arch_ioport_set_pin_dir',
inlined from 'ioport_set_pin_dir' at ../src/ASF/common/services/ioport/ioport.h:266:5,
inlined from 'CheckForBootloaderSwitchOnStartup' at ../src/Boot.c:40:3:
../src/ASF/common/services/ioport/xmega/ioport.h:262:22: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
262 | base->DIRSET = arch_ioport_pin_to_mask(pin);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'PrepareForSoftwareUpgrade',
inlined from 'CheckForBootloaderSwitchOnStartup' at ../src/Boot.c:43:3:
../src/Boot.c:56:14: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
56 | PORTD.INTCTRL &= ~PORT_INT0LVL0_bm; // Disable PORT D Interrupt
| ^
../src/Boot.c:56:23: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
56 | PORTD.INTCTRL &= ~PORT_INT0LVL0_bm; // Disable PORT D Interrupt
| ^
[HDK_20][-O3] ../src/Console.c : HDK_20/src/Console.o
[HDK_20][-O3] ../src/FPGA.c : HDK_20/src/FPGA.o
[HDK_20][-O3] ../src/SerialStateMachine.c : HDK_20/src/SerialStateMachine.o
../src/SerialStateMachine.c: In function 'getBODStatusInPD':
../src/SerialStateMachine.c:1637:14: error: 'BODPD_SAMPLED_gc' undeclared (first use in this function); did you mean 'BOD_SAMPLED_gc'?
1637 | case BODPD_SAMPLED_gc:
| ^~~~~~~~~~~~~~~~
| BOD_SAMPLED_gc
../src/SerialStateMachine.c:1637:14: note: each undeclared identifier is reported only once for each function it appears in
../src/SerialStateMachine.c:1639:14: error: 'BODPD_CONTINUOUS_gc' undeclared (first use in this function); did you mean 'BOD_CONTINUOUS_gc'?
1639 | case BODPD_CONTINUOUS_gc:
| ^~~~~~~~~~~~~~~~~~~
| BOD_CONTINUOUS_gc
../src/SerialStateMachine.c:1641:14: error: 'BODPD_DISABLED_gc' undeclared (first use in this function); did you mean 'BOD_DISABLED_gc'?
1641 | case BODPD_DISABLED_gc:
| ^~~~~~~~~~~~~~~~~
| BOD_DISABLED_gc
make: *** [add_variant.mk:54: HDK_20/src/SerialStateMachine.o] Error 1

@rpavlik
Copy link
Member

rpavlik commented May 10, 2023

Yeah unfortunately they renamed that symbol at some point. If you can figure out an easy way to distinguish headers with the bodpd symbols from the ones with the old ones I'll happily put in a happy #if

What environment are you building in?

@isopix
Copy link
Author

isopix commented May 12, 2023

It's recent ArchLinux with gcc 13.1.1 20230429

I was able to fix it enough to build hdk2 and hdk2svr (which one should I use?) and soem other by 'make all'.

I've called:

sed -i 's@BODPD_@BOD_@g' ../src/SerialStateMachine.c
sed -i 's@NVM_FUSES_BOD_gm@NVM_FUSES_BODPD_gm@g' ../src/SerialStateMachine.c

Resulting in:

diff --git a/Source code/Embedded/src/SerialStateMachine.c b/Source code/Embedded/src/SerialStateMachine.c
index 96b42b7..7371e0e 100644
--- a/Source code/Embedded/src/SerialStateMachine.c     
+++ b/Source code/Embedded/src/SerialStateMachine.c     
@@ -1634,11 +1634,11 @@ static inline BOD_Status_t getBODStatusInPD(uint8_t fuse2)
        uint8_t bodpd = fuse2 & NVM_FUSES_BODPD_gm;
        switch (bodpd)
        {
-       case BODPD_SAMPLED_gc:
+       case BOD_SAMPLED_gc:
                return BOD_Status_Sampled;
-       case BODPD_CONTINUOUS_gc:
+       case BOD_CONTINUOUS_gc:
                return BOD_Status_Continuous;
-       case BODPD_DISABLED_gc:
+       case BOD_DISABLED_gc:
        default:
                // default is technically reserved, will interpret as disabled.
                return BOD_Status_Disabled;

As I stated 'make all' passes, building firmwaress
but when compilling by simply calling 'make', it prints the errors:

[dSight_Sharp_LCD] Reading full .elf file to extract dSight_Sharp_LCD/HMD_MCU.hex
[dSight_Sharp_LCD] Extracting assembly listing dSight_Sharp_LCD/HMD_MCU.lss
[dSight_Sharp_LCD] Copied output hex to dsight.hex
[dSight_Sharp_LCD - dsight] Build finished.
[HDK_20] Generating HDK_20/command_parts.json
[HDK_20] Generating HDK_20/compile_commands.json
src/Boot.c
/bin/sh: line 1: src/Console.c: No such file or directory
/bin/sh: line 1: src/FPGA.c: No such file or directory
/bin/sh: line 1: src/SerialStateMachine.c: No such file or directory
/bin/sh: line 1: src/SvrYield.c: No such file or directory
/bin/sh: line 1: src/TimingDebug.c: No such file or directory
/bin/sh: line 1: src/USB.c: No such file or directory
/bin/sh: line 1: src/main.c: No such file or directory
/bin/sh: line 1: src/my_hardware.c: No such file or directory
/bin/sh: line 1: src/SideBySide.c: No such file or directory
/bin/sh: line 1: src/Revision.c: No such file or directory
/bin/sh: line 1: src/uart_xmega.c: No such file or directory
/bin/sh: line 1: src/NXP/AVRHDMI.c: No such file or directory
/bin/sh: line 1: src/NXP/NXP_AVR_Internal.c: No such file or directory
/bin/sh: line 1: src/NXP/i2c.c: No such file or directory
/bin/sh: line 1: src/NXP/tmbslTDA1997X_functions.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_IW_RTX.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_cfg.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_DualAUO_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_FPGALockPin.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Single_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_TMDS422_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/BNO070_using_hostif.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/HDK2.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/TI-TMDS442.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/bno_callbacks.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub_hid.c: No such file or directory
/bin/sh: line 1: _StackInstrument.c: command not found
/bin/sh: line 1: src/ASF/common/services/clock/xmega/sysclk.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/ioport/xmega/ioport_compat.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/serial/usart_serial.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/sleepmgr/xmega/sleepmgr.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_spi/spi_master.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_usart_spi/usart_spi.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/example/atxmega256a3bu_xmega_a3bu_xplained/ui.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/udi_cdc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/composite/device/udi_composite_desc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/generic/udi_hid_generic.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/udi_hid.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/udc/udc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/boards/xmega_a3bu_xplained/init.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/nvm/nvm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/rtc32/rtc32.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/spi/spi.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/tc/tc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twim.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twis.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usart/usart.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usb/usb_device.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/pwm/pwm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/timeout/timeout.c: No such file or directory
[HDK_20_SVR] Generating HDK_20_SVR/command_parts.json
[HDK_20_SVR] Generating HDK_20_SVR/compile_commands.json
src/Boot.c
/bin/sh: line 1: src/Console.c: No such file or directory
/bin/sh: line 1: src/FPGA.c: No such file or directory
/bin/sh: line 1: src/SerialStateMachine.c: No such file or directory
/bin/sh: line 1: src/SvrYield.c: No such file or directory
/bin/sh: line 1: src/TimingDebug.c: No such file or directory
/bin/sh: line 1: src/USB.c: No such file or directory
/bin/sh: line 1: src/main.c: No such file or directory
/bin/sh: line 1: src/my_hardware.c: No such file or directory
/bin/sh: line 1: src/SideBySide.c: No such file or directory
/bin/sh: line 1: src/Revision.c: No such file or directory
/bin/sh: line 1: src/uart_xmega.c: No such file or directory
/bin/sh: line 1: src/NXP/AVRHDMI.c: No such file or directory
/bin/sh: line 1: src/NXP/NXP_AVR_Internal.c: No such file or directory
/bin/sh: line 1: src/NXP/i2c.c: No such file or directory
/bin/sh: line 1: src/NXP/tmbslTDA1997X_functions.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_IW_RTX.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_cfg.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_DualAUO_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_FPGALockPin.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Single_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_TMDS422_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/BNO070_using_hostif.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/HDK2.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/TI-TMDS442.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/bno_callbacks.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub_hid.c: No such file or directory
/bin/sh: line 1: _StackInstrument.c: command not found
/bin/sh: line 1: src/ASF/common/services/clock/xmega/sysclk.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/ioport/xmega/ioport_compat.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/serial/usart_serial.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/sleepmgr/xmega/sleepmgr.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_spi/spi_master.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_usart_spi/usart_spi.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/example/atxmega256a3bu_xmega_a3bu_xplained/ui.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/udi_cdc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/composite/device/udi_composite_desc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/generic/udi_hid_generic.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/udi_hid.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/udc/udc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/boards/xmega_a3bu_xplained/init.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/nvm/nvm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/rtc32/rtc32.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/spi/spi.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/tc/tc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twim.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twis.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usart/usart.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usb/usb_device.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/pwm/pwm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/timeout/timeout.c: No such file or directory
[HDK_OLED] Generating HDK_OLED/command_parts.json
[HDK_OLED] Generating HDK_OLED/compile_commands.json
src/Boot.c
/bin/sh: line 1: src/Console.c: No such file or directory
/bin/sh: line 1: src/FPGA.c: No such file or directory
/bin/sh: line 1: src/SerialStateMachine.c: No such file or directory
/bin/sh: line 1: src/SvrYield.c: No such file or directory
/bin/sh: line 1: src/TimingDebug.c: No such file or directory
/bin/sh: line 1: src/USB.c: No such file or directory
/bin/sh: line 1: src/main.c: No such file or directory
/bin/sh: line 1: src/my_hardware.c: No such file or directory
/bin/sh: line 1: src/SideBySide.c: No such file or directory
/bin/sh: line 1: src/Revision.c: No such file or directory
/bin/sh: line 1: src/uart_xmega.c: No such file or directory
/bin/sh: line 1: src/NXP/AVRHDMI.c: No such file or directory
/bin/sh: line 1: src/NXP/NXP_AVR_Internal.c: No such file or directory
/bin/sh: line 1: src/NXP/i2c.c: No such file or directory
/bin/sh: line 1: src/NXP/tmbslTDA1997X_functions.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_IW_RTX.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_cfg.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_DualAUO_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_FPGALockPin.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Single_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_TMDS422_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/BNO070_using_hostif.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/HDK2.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/TI-TMDS442.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/bno_callbacks.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub_hid.c: No such file or directory
/bin/sh: line 1: _StackInstrument.c: command not found
/bin/sh: line 1: src/ASF/common/services/clock/xmega/sysclk.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/ioport/xmega/ioport_compat.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/serial/usart_serial.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/sleepmgr/xmega/sleepmgr.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_spi/spi_master.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_usart_spi/usart_spi.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/example/atxmega256a3bu_xmega_a3bu_xplained/ui.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/udi_cdc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/composite/device/udi_composite_desc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/generic/udi_hid_generic.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/udi_hid.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/udc/udc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/boards/xmega_a3bu_xplained/init.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/nvm/nvm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/rtc32/rtc32.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/spi/spi.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/tc/tc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twim.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twis.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usart/usart.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usb/usb_device.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/pwm/pwm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/timeout/timeout.c: No such file or directory
[HDK_Sharp_LCD] Generating HDK_Sharp_LCD/command_parts.json
[HDK_Sharp_LCD] Generating HDK_Sharp_LCD/compile_commands.json
src/Boot.c
/bin/sh: line 1: src/Console.c: No such file or directory
/bin/sh: line 1: src/FPGA.c: No such file or directory
/bin/sh: line 1: src/SerialStateMachine.c: No such file or directory
/bin/sh: line 1: src/SvrYield.c: No such file or directory
/bin/sh: line 1: src/TimingDebug.c: No such file or directory
/bin/sh: line 1: src/USB.c: No such file or directory
/bin/sh: line 1: src/main.c: No such file or directory
/bin/sh: line 1: src/my_hardware.c: No such file or directory
/bin/sh: line 1: src/SideBySide.c: No such file or directory
/bin/sh: line 1: src/Revision.c: No such file or directory
/bin/sh: line 1: src/uart_xmega.c: No such file or directory
/bin/sh: line 1: src/NXP/AVRHDMI.c: No such file or directory
/bin/sh: line 1: src/NXP/NXP_AVR_Internal.c: No such file or directory
/bin/sh: line 1: src/NXP/i2c.c: No such file or directory
/bin/sh: line 1: src/NXP/tmbslTDA1997X_functions.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_IW_RTX.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_cfg.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_DualAUO_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_FPGALockPin.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Single_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_TMDS422_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/BNO070_using_hostif.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/HDK2.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/TI-TMDS442.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/bno_callbacks.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub_hid.c: No such file or directory
/bin/sh: line 1: _StackInstrument.c: command not found
/bin/sh: line 1: src/ASF/common/services/clock/xmega/sysclk.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/ioport/xmega/ioport_compat.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/serial/usart_serial.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/sleepmgr/xmega/sleepmgr.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_spi/spi_master.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_usart_spi/usart_spi.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/example/atxmega256a3bu_xmega_a3bu_xplained/ui.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/udi_cdc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/composite/device/udi_composite_desc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/generic/udi_hid_generic.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/udi_hid.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/udc/udc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/boards/xmega_a3bu_xplained/init.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/nvm/nvm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/rtc32/rtc32.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/spi/spi.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/tc/tc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twim.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twis.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usart/usart.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usb/usb_device.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/pwm/pwm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/timeout/timeout.c: No such file or directory
[dSight_Sharp_LCD] Generating dSight_Sharp_LCD/command_parts.json
[dSight_Sharp_LCD] Generating dSight_Sharp_LCD/compile_commands.json
src/Boot.c
/bin/sh: line 1: src/Console.c: No such file or directory
/bin/sh: line 1: src/FPGA.c: No such file or directory
/bin/sh: line 1: src/SerialStateMachine.c: No such file or directory
/bin/sh: line 1: src/SvrYield.c: No such file or directory
/bin/sh: line 1: src/TimingDebug.c: No such file or directory
/bin/sh: line 1: src/USB.c: No such file or directory
/bin/sh: line 1: src/main.c: No such file or directory
/bin/sh: line 1: src/my_hardware.c: No such file or directory
/bin/sh: line 1: src/SideBySide.c: No such file or directory
/bin/sh: line 1: src/Revision.c: No such file or directory
/bin/sh: line 1: src/uart_xmega.c: No such file or directory
/bin/sh: line 1: src/NXP/AVRHDMI.c: No such file or directory
/bin/sh: line 1: src/NXP/NXP_AVR_Internal.c: No such file or directory
/bin/sh: line 1: src/NXP/i2c.c: No such file or directory
/bin/sh: line 1: src/NXP/tmbslTDA1997X_functions.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_IW_RTX.c: No such file or directory
/bin/sh: line 1: src/NXP/tmdlHdmiRx_cfg.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Display_DualAUO_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_FPGALockPin.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Single_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_TMDS422_NXP.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/VideoInput_Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/BNO070_using_hostif.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/HDK2.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Solomon.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/TI-TMDS442.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/Toshiba_TC358870.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/bno_callbacks.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub.c: No such file or directory
/bin/sh: line 1: src/DeviceDrivers/bno-hostif/src/sensorhub_hid.c: No such file or directory
/bin/sh: line 1: _StackInstrument.c: command not found
/bin/sh: line 1: src/ASF/common/services/clock/xmega/sysclk.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/ioport/xmega/ioport_compat.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/serial/usart_serial.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/sleepmgr/xmega/sleepmgr.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_spi/spi_master.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/spi/xmega_usart_spi/usart_spi.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/example/atxmega256a3bu_xmega_a3bu_xplained/ui.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/cdc/device/udi_cdc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/composite/device/udi_composite_desc.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/generic/udi_hid_generic.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/class/hid/device/udi_hid.c: No such file or directory
/bin/sh: line 1: src/ASF/common/services/usb/udc/udc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/boards/xmega_a3bu_xplained/init.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/nvm/nvm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/rtc32/rtc32.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/spi/spi.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/tc/tc.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twim.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/twi/twis.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usart/usart.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/drivers/usb/usb_device.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/pwm/pwm.c: No such file or directory
/bin/sh: line 1: src/ASF/xmega/services/timeout/timeout.c: No such file or directory

@rpavlik
Copy link
Member

rpavlik commented May 13, 2023

Use hdk2svr, the other one only exists because Razer required it years ago. It's the worse choice.

you'll note I recently committed the patch that "caused" this issue, to fix builds on Debian. You should just be able to revert that commit.

@isopix
Copy link
Author

isopix commented May 13, 2023

Use hdk2svr, the other one only exists because Razer required it years ago. It's the worse choice.

you'll note I recently committed the patch that "caused" this issue, to fix builds on Debian. You should just be able to revert that commit.|

Thanks for answer about hdk2svr. But I think I will forget about it in next few years, and after not finding answer in README.md I will ask about it again ;-)

If some distro do something in stupid way, it shouldn't be like that that we brake every other distro because of that ;-)

@rpavlik
Copy link
Member

rpavlik commented May 16, 2023

it's like that in the most recent upstream, it's not that a distro broke anything. The enum was just renamed to a more clear thing.

@isopix
Copy link
Author

isopix commented May 17, 2023

Sounds strange, because ArchLinux is usually recent vanilla upstream, while Debian is outdated and heavily patched.

But where does this enums come from? (I guess I've got something outdated in my system then ;-)

@rpavlik
Copy link
Member

rpavlik commented May 17, 2023

avr-libc. I think the problem is there is two upstreams: one open source git repo, and one from Atmel.

I'd really like to avoid having to write effectively a configure script in makefile, so if there's a way to distinguish them by preprocessor I'd be super interested.

@Nandox7
Copy link

Nandox7 commented Feb 9, 2024

Any quick fix to make it work with Atmel Studio7 (win10)?
I could spin a machine here with Linux but ideally I'd have it compiling in windows as I'm trying to compile a few other stuff for the HDK2.
Thanks

@rpavlik
Copy link
Member

rpavlik commented Feb 12, 2024

you just switch between the two different enum names for the brownout detector "sampled" setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants