Building PanelDue Firmware with Visual Code Studio
-
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'
-
-
-
Using default build system
$ cmake -B build -DDEVICE="v3-7.0" . $ make -C build all -j12
-
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/
-
I suspect arm-none-eabi-objcopy can not be found. You need to fix your path or use an absolute path for your toolchain.
-
-
@mfs12 Moved relevant files to VSCode toolkit directory solved the issue.
-