Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27618

STM Cube Programmer setting is not used

    XMLWordPrintable

Details

    • 3b02d7b32a
    • Tooling Sprint 2022/3.1

    Description

      I (rakeller ) added the path to the Cube Programmer manually in the devices dialog (see UL-5871).

      That makes QtCreator happy, but CMake still reports it can't find it.

      2022-05-17T09:07:51 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.
      Running /home/rakeller/QtMCUs/Tools/CMake/bin/cmake -S /home/rakeller/QtMCUs/QtMCUs/2.2.0/demos/thermo -B /home/rakeller/QtMCUs/QtMCUs/2.2.0/demos/build-thermo-Qt_for_MCUs_2_2_STM32H750B_DISCOVERY_BAREMETAL_32bpp_ARMGCC-Debug -DCMAKE_GENERATOR:STRING=Ninja -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_PROJECT_INCLUDE_BEFORE:FILEPATH=/home/rakeller/QtMCUs/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake -DQUL_TARGET_TOOLCHAIN_DIR:STRING=/home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10 -DQUL_BOARD_SDK_DIR:STRING=/home/rakeller/QtMCUs/Tools/QtMCUs/STM/STM32Cube_FW_H7_V1.5.0 -DCMAKE_CXX_COMPILER:STRING=/home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10/bin/arm-none-eabi-g++ -DCMAKE_C_COMPILER:STRING=/home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10/bin/arm-none-eabi-gcc -DCMAKE_TOOLCHAIN_FILE:STRING=/home/rakeller/QtMCUs/QtMCUs/2.2.0/lib/cmake/Qul/toolchain/armgcc.cmake -DQUL_GENERATORS:STRING=/home/rakeller/QtMCUs/QtMCUs/2.2.0/lib/cmake/Qul/QulGenerators.cmake -DQUL_PLATFORM:STRING=STM32H750B-DISCOVERY-BAREMETAL -DQUL_COLOR_DEPTH:STRING=32 -DCMAKE_PREFIX_PATH:STRING= in /home/rakeller/QtMCUs/QtMCUs/2.2.0/demos/build-thermo-Qt_for_MCUs_2_2_STM32H750B_DISCOVERY_BAREMETAL_32bpp_ARMGCC-Debug.
      -- The C compiler identification is GNU 10.3.1
      -- The CXX compiler identification is GNU 10.3.1
      -- The ASM compiler identification is GNU
      -- Found assembler: /home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10/bin/arm-none-eabi-gcc
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10/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: /home/rakeller/QtMCUs/Tools/QtMCUs/arm_gcc_10/bin/arm-none-eabi-g++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- CMake version 3.21.1
      -- Loading board defaults /home/rakeller/QtMCUs/QtMCUs/2.2.0/lib/cmake/Qul/../../../platform/boards/st/stm32h750b-discovery-baremetal/cmake/BoardDefaults.cmake
      -- OS: BareMetal
      -- IPO will be enabled for executable targets
      -- Using imported architecture configuration. Ignoring architecture.cmake file.
      -- STM32_Programmer not found, won't generate flash targets for thermo_small
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /home/rakeller/QtMCUs/QtMCUs/2.2.0/demos/build-thermo-Qt_for_MCUs_2_2_STM32H750B_DISCOVERY_BAREMETAL_32bpp_ARMGCC-Debug
      Elapsed time: 00:00.

      Manually setting it in the Kits's CMake Configuration solves the issue:

      -DSTM32PROGRAMMER_PATH:STRING=/home/rakeller/QtMCUs/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI

      This should be done automatically if a user has to set a path.

      For me it looks like the information that this option is to be a cmake option is missing from the kit config json file.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              yasser Yasser Grimes
              christiaan.janssen Christiaan Janssen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes