device descriptor request failed #349
Unanswered
deskat-dan
asked this question in
Q&A
Replies: 1 comment
-
The problem is fixed—you need to exit the venv to build. BUT in the latest version (7.11.1), building throws an error (link), while older versions compile without issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I build the project using the discovery configuration (without changing the config file), I get a "device descriptor request failed" error after flashing and connecting to the PC. But if I flash a pre-built firmware, everything works perfectly.
Build log below:
(.venv) ubuntu@OpenDeck ~/workspace/OpenDeck master
HEAD is now at ca1dbff silence nrfx warnings
HEAD is now at ca1dbff silence nrfx warnings
=== updating libmidi (modules/libmidi):
--- libmidi: initializing
Initialized empty Git repository in /home/ubuntu/workspace/modules/libmidi/.git/
--- libmidi: fetching, need revision 4b9c5973eac07007931b201727fd97d8367ac47d
remote: Enumerating objects: 617, done.
remote: Counting objects: 100% (308/308), done.
remote: Compressing objects: 100% (194/194), done.
remote: Total 617 (delta 137), reused 259 (delta 90), pack-reused 309 (from 1)
Receiving objects: 100% (617/617), 214.91 KiB | 1023.00 KiB/s, done.
Resolving deltas: 100% (329/329), done.
From https://github.com/shanteacontrols/libmidi
HEAD is now at 4b9c597 refactor: reorganize sources, update ci/devcontainer, formatting, linting
HEAD is now at 4b9c597 refactor: reorganize sources, update ci/devcontainer, formatting, linting
=== updating liblessdb (modules/liblessdb):
--- liblessdb: initializing
Initialized empty Git repository in /home/ubuntu/workspace/modules/liblessdb/.git/
--- liblessdb: fetching, need revision 0ad7716c7480b68fc3d79999b7cd30e80254103e
remote: Enumerating objects: 1054, done.
remote: Counting objects: 100% (248/248), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 1054 (delta 102), reused 208 (delta 75), pack-reused 806 (from 1)
Receiving objects: 100% (1054/1054), 279.90 KiB | 1.26 MiB/s, done.
Resolving deltas: 100% (525/525), done.
From https://github.com/paradajz/liblessdb
HEAD is now at 0ad7716 refactor: reorganize sources, update ci/devcontainer, formatting, linting
HEAD is now at 0ad7716 refactor: reorganize sources, update ci/devcontainer, formatting, linting
=== updating libemueeprom (modules/libemueeprom):
--- libemueeprom: initializing
Initialized empty Git repository in /home/ubuntu/workspace/modules/libemueeprom/.git/
--- libemueeprom: fetching, need revision 62c9ae9412427075799bf1b94be47b56870acc25
remote: Enumerating objects: 745, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 745 (delta 100), reused 124 (delta 88), pack-reused 590 (from 1)
Receiving objects: 100% (745/745), 131.36 KiB | 1003.00 KiB/s, done.
Resolving deltas: 100% (362/362), done.
From https://github.com/paradajz/libemueeprom
HEAD is now at 62c9ae9 refactor: reorganize sources, update ci/devcontainer, formatting, linting
HEAD is now at 62c9ae9 refactor: reorganize sources, update ci/devcontainer, formatting, linting
=== updating libsysexconf (modules/libsysexconf):
--- libsysexconf: initializing
Initialized empty Git repository in /home/ubuntu/workspace/modules/libsysexconf/.git/
--- libsysexconf: fetching, need revision 20973e56a382c72a434fb932eff6286afbd95dfc
remote: Enumerating objects: 1233, done.
remote: Counting objects: 100% (281/281), done.
remote: Compressing objects: 100% (157/157), done.
remote: Total 1233 (delta 122), reused 248 (delta 100), pack-reused 952 (from 1)
Receiving objects: 100% (1233/1233), 264.48 KiB | 1.24 MiB/s, done.
Resolving deltas: 100% (632/632), done.
From https://github.com/shanteacontrols/libsysexconf
HEAD is now at 20973e5 refactor: reorganize sources, update ci/devcontainer, formatting, linting
HEAD is now at 20973e5 refactor: reorganize sources, update ci/devcontainer, formatting, linting
=== updating u8g2 (modules/u8g2):
HEAD is now at 8430f65c 1btn example for MUI
Synchronizing submodule url for 'sys/arm-linux/c-periphery'
=== updating tinyusb (modules/tinyusb):
HEAD is now at 86c416d4c Merge pull request #1890 from hathach/release-0.15.0
Synchronizing submodule url for 'hw/mcu/nordic/nrfx'
Synchronizing submodule url for 'tools/uf2'
Synchronizing submodule url for 'tools/uf2/hidapi'
Synchronizing submodule url for 'hw/mcu/st/cmsis_device_f4'
Synchronizing submodule url for 'hw/mcu/st/stm32f4xx_hal_driver'
Synchronizing submodule url for 'lib/CMSIS_5'
=== updating lufa (modules/lufa):
HEAD is now at d2aaa0a3a Fix build due to accidental trailing semicolons after some function attributes.
=== updating pico-sdk (modules/pico-sdk):
HEAD is now at 6a7db34 revert changes to when -nostartfiles is specified in link for 1.5.1 as it can cause link errors with C++; see #1368
=== updating avr-libstdcpp (modules/avr-libstdcpp):
HEAD is now at ec849a2 Use avr-objdump instead of avr-size.
Generating CMake files
Generating configuration for MCU: stub
Generating configuration for MCU: stm32f407vg
Generating project-specific configuration for MCU: stm32f407vg
Generating configuration for target: discovery
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Configuring done (3.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ubuntu/workspace/OpenDeck/build/discovery/release
[208/233] Performing configure step for 'sysexgen'
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ubuntu/workspace/OpenDeck/build/discovery/release/sysexgen
[209/233] Performing configure step for 'flashgen'
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ubuntu/workspace/OpenDeck/build/discovery/release/flashgen
[212/233] Linking CXX executable bootloader.elf
Memory region Used Size Region Size %age Used
RAM: 117568 B 128 KB 89.70%
CCMRAM: 0 B 64 KB 0.00%
FLASH: 27516 B 32 KB 83.97%
[215/233] Performing build step for 'sysexgen'
[1/3] Building CXX object CMakeFiles/mcu.dir/home/ubuntu/workspace/modules/libcore/src/arch/stub/timing.cpp.o
[2/3] Building CXX object CMakeFiles/sysexgen.dir/main.cpp.o
[3/3] Linking CXX executable sysexgen
[225/233] Performing build step for 'flashgen'
[1/10] Building CXX object CMakeFiles/mcu.dir/home/ubuntu/workspace/modules/libcore/src/arch/stub/timing.cpp.o
[2/10] Building CXX object CMakeFiles/flashgen.dir/home/ubuntu/workspace/OpenDeck/src/firmware/application/database/custom_init.cpp.o
[3/10] Building CXX object CMakeFiles/flashgen.dir/home/ubuntu/workspace/OpenDeck/src/firmware/application/database/database.cpp.o
[4/10] Building CXX object CMakeFiles/flashgen.dir/home/ubuntu/workspace/OpenDeck/src/firmware/application/util/configurable/configurable.cpp.o
[5/10] Building CXX object CMakeFiles/flashgen.dir/main.cpp.o
[6/10] Building CXX object modules/libemueeprom/CMakeFiles/libemueeprom.dir/src/emueeprom.cpp.o
[7/10] Linking CXX static library modules/libemueeprom/liblibemueeprom.a
[8/10] Building CXX object modules/liblessdb/CMakeFiles/liblessdb.dir/src/lessdb.cpp.o
[9/10] Linking CXX static library modules/liblessdb/libliblessdb.a
[10/10] Linking CXX executable flashgen
[227/233] Linking CXX executable application.elf
Memory region Used Size Region Size %age Used
RAM: 88496 B 128 KB 67.52%
CCMRAM: 0 B 64 KB 0.00%
FLASH: 87248 B 608 KB 14.01%
Converting elf file to hex
Appending firmware metadata to hex file
Adding firmware CRC at the end of application flash
Converting hex file to bin
[230/233] Generating merged_app_with_flash_config
Merging application with generated flash config
[231/233] Generating sysexgen/firmware.raw
Firmware update file size is 276204 bytes. Generating SysEx file, please wait...
[233/233] Generating merged.hex, merged.bin
-- Merging all firmware binary files into a single hex file
-- Appending: /home/ubuntu/workspace/OpenDeck/build/discovery/release/bootloader.elf.hex
-- Appending: /home/ubuntu/workspace/OpenDeck/build/discovery/release/application.elf.hex
-- Converting merged hex file to bin
Beta Was this translation helpful? Give feedback.
All reactions