Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Building PanelDue Firmware with Visual Code Studio

    Scheduled Pinned Locked Moved Solved
    PanelDue
    2
    5
    291
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • prestoundefined
      presto
      last edited by presto

      Is there a way to build PanelDue firmware with VS Code? So far I am unsuccessful with the below errors.

      C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/src/Library/Thumbnail.cpp: In function 'bool ThumbnailDataIsValid(ThumbnailData&)':
      C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/src/Library/Thumbnail.cpp:38:19: warning: the address of 'ThumbnailData::buffer' will never be NULL [-Waddress]
         38 |         if (!data.buffer)
            |              ~~~~~^~~~~~
      In file included from C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/src/Library/Thumbnail.cpp:1:
      C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/src/Library/Thumbnail.hpp:28:23: note: 'ThumbnailData::buffer' declared here
         28 |         unsigned char buffer[1024];
            |                       ^~~~~~
      [ 95%] Generating paneldue.bin
      process_begin: CreateProcess(NULL, arm-none-eabi-objcopy -O binary paneldue.elf paneldue.bin, ...) failed.
      make (e=2): The system cannot find the file specified.
      make[2]: *** [paneldue.bin] Error 2
      make[2]: Leaving directory `C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/build'
      make[1]: *** [CMakeFiles/bin.dir/all] Error 2
      make[1]: Leaving directory `C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/build'
      make: *** [all] Error 2
      make: Leaving directory `C:/Users/Presto/Desktop/PanelDueFirmware-3.5.0-rc6/build'
      
      mfs12undefined 1 Reply Last reply Reply Quote 0
      • prestoundefined presto deleted this topic
      • prestoundefined presto restored this topic
      • prestoundefined
        presto
        last edited by

        Using default build system

        $ cmake -B build -DDEVICE="v3-7.0" .
        $ make -C build all -j12
        
        1 Reply Last reply Reply Quote 0
        • mfs12undefined
          mfs12
          last edited by

          Hey @presto, it should be straight forward.

          Basically it is using cmake a makefile or build system generator.

          Also Microsoft maintains a cmake extension.

          https://devblogs.microsoft.com/cppblog/cmake-tools-extension-for-visual-studio-code/

          Visit me on github at https://github.com/mfs12/

          1 Reply Last reply Reply Quote 0
          • mfs12undefined
            mfs12 @presto
            last edited by

            @presto

            I suspect arm-none-eabi-objcopy can not be found. You need to fix your path or use an absolute path for your toolchain.

            Visit me on github at https://github.com/mfs12/

            prestoundefined 1 Reply Last reply Reply Quote 0
            • mfs12undefined mfs12 marked this topic as a question
            • prestoundefined
              presto @mfs12
              last edited by

              @mfs12 Moved relevant files to VSCode toolkit directory solved the issue.

              1 Reply Last reply Reply Quote 0
              • prestoundefined presto has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA