Skip to content

[csolution] output node in cbuild-run.yml incorrect and misleading terminal output in case of dual core solution #2139

Description

@ReinhardKeil

Describe the bug

When this project DualCore.zip is build the first time:

  • core0.bin file is missing.
  • cbuild-run.yml file is specifying load: image+symbols also for type bin and hex where no symbols exist
  • output is misleading.

cbuild-run.yml contains.

output:
    - file: out/core0/MCXN947/Debug/core0.axf
      info: generate by core0.Debug+MCXN947
      type: elf
      load: image+symbols
      pname: cm33_core0
    - file: out/core0/MCXN947/Debug/core0.hex
      info: generate by core0.Debug+MCXN947
      type: hex
      load: image+symbols
      pname: cm33_core0
    - file: out/core0/MCXN947/Debug/core0.bin
      info: generate by core0.Debug+MCXN947
      type: bin
      load: image+symbols
      pname: cm33_core0
    - file: out/core1/MCXN947/Debug/core1_image.axf
      info: generate by core1.Debug+MCXN947
      type: elf
      load: symbols
      pname: cm33_core1
    - file: out/core1/MCXN947/Debug/core1_image.hex
      info: generate by core1.Debug+MCXN947
      type: hex
      load: image
      pname: cm33_core1
    - file: out/core1/MCXN947/Debug/core1_image.bin
      info: generate by core1.Debug+MCXN947
      type: bin
      load: none
      pname: cm33_core1

The output makes you believe that core0 is build twice. The message in the middle is easily overlooked.

Execute: cbuild c:\Test\Jul2\DC\DualCore\DualCore.csolution.yml --active MCXN947 --packs
+--------------------------------------------
(1/2) Building context: "core0.Debug+MCXN947"
Using AC6 V6.24.0 compiler, from: 'c:/Users/reikei01/.vcpkg/artifacts/2139c4c6/compilers.arm.armclang/6.24.0/bin/'
Building CMake target 'core1.Debug+MCXN947'
[1/13] Building C object CMakeFiles/Group_Board.dir/C_/Test/Jul2/DC/DualCore/cm33_core1/main.o
:
[13/13] Linking C executable C:\Test\Jul2\DC\DualCore\out\core1\MCXN947\Debug\core1_image.axf
Program Size: Code=2366 RO-data=834 RW-data=8 ZI-data=2068  

Building CMake target 'core0.Debug+MCXN947'
[1/42] Building C object CMakeFiles/Group_ConfigTools_board.dir/C_/Test/Jul2/DC/DualCore/cm33_core0/MCUXpressoConfig/board/clock_config.o
:

Removing settings in csolution.yml and cproject.yml fixes the issues

solution:
  target-types:
    - type: MCXN947
      board: FRDM-MCXN947
      device: NXP::MCXN947VDF
      target-set:
        - set:
          debugger:
            name: CMSIS-DAP
            start-pname: cm33_core0
          images:
            - project-context: core0.Debug
#             load: image+symbols
            - project-context: core1.Debug

core0.cproject.yml

  output:
    type:
      - elf
#     - bin
      - hex
      - map

Environment (please complete the following information):

  • CMSIS-Toolbox 2.10

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions