{"id":29039,"date":"2020-09-14T08:04:01","date_gmt":"2020-09-14T15:04:01","guid":{"rendered":"https:\/\/sysprogs.com\/w\/?p=29039"},"modified":"2020-10-15T12:18:52","modified_gmt":"2020-10-15T19:18:52","slug":"visualgdb-5-5-rc1-is-out","status":"publish","type":"post","link":"https:\/\/sysprogs.com\/w\/visualgdb-5-5-rc1-is-out\/","title":{"rendered":"VisualGDB 5.5 RC1 is Out"},"content":{"rendered":"<p>Today we are excited to announce the release of VisualGDB 5.5 RC1. Aside from numerous usability and stability improvements over the Preview builds, it introduces the new Embedded CMake Project Subsystem that delivers exceptional flexibility and usability for complex embedded projects. In this post I will show you the main highlights of the new subsystem.<\/p>\n<p><!--more--><\/p>\n<h2>Multi-Target Projects<\/h2>\n<p>One big limitation of the MSBuild-based Embedded project layout is the requirement to have only one target (e.g. application or static library) per project. Multiple targets would imply multiple projects, each one with its own copy of global settings, a separate project file, and various auxiliary files. If your project structure involves multiple applications and libraries relying on each other, managing it with MSBuild could quickly become quite bothersome.<\/p>\n<p>The Embedded CMake Project Subsystem addresses this by decoupling project-level settings (e.g. toolchain, debug interface) from the target definitions (e.g. defining static libraries and references between them). A single project can now contain an arbitrary number of applications and libraries spanning across any number of directories:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/emb.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-29040 size-full\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/emb.png\" alt=\"\" width=\"1326\" height=\"524\" \/><\/a>The definitions for these targets are stored in <strong>CMakeLists.txt<\/strong> files and are decoupled from the global settings, such as the specific toolchain:<\/p>\n<pre class=\"\">add_bsp_based_executable(NAME EmbeddedCMakeDemo\r\n\tSOURCES\r\n\t\tEmbeddedCMakeDemo.cpp\r\n\tGENERATE_BIN\r\n\tGENERATE_MAP)\r\n\r\nadd_bsp_based_library(NAME EmbeddedStaticLibrary\r\n\tSOURCES EmbeddedStaticLibrary.cpp)\r\n\r\ntarget_link_libraries(EmbeddedCMakeDemo PRIVATE EmbeddedStaticLibrary)<\/pre>\n<p>So if you have a single reusable library included from many projects built with different toolchains, you only need one reusable definition of it.<\/p>\n<p><strong>CMakeLists.txt<\/strong> can contain conditions, internal variables, custom macros, and everything you need to script your complex setups. VisualGDB even lets you step through them in the CMake debugger to quickly troubleshoot any unexpected behavior:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/step.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29041\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/step.png\" alt=\"\" width=\"1290\" height=\"808\" \/><\/a><\/p>\n<h2>Multiple Platforms<\/h2>\n<p>Another limitation of MSBuild projects is that the <strong>.vcxproj<\/strong> file must explicitly list all relevant source files in order for them to appear in Solution Explorer. This makes it virtually impossible to target multiple devices from the same project. Embedded CMake projects don&#8217;t have this limitation. A single project can instantiate multiple BSPs, and have each target explicitly reference one of them. Or have multiple platforms, each one targeting a different device. Or even have a Simulation platform that will build the code using the MinGW toolchain:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/sim.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29044\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/sim.png\" alt=\"\" width=\"786\" height=\"228\" \/><\/a>VisualGDB will automatically build and show the necessary files in Solution Explorer, as long as the <strong>CMakeLists.txt<\/strong> calls the high-level functions for referencing BSPs and test frameworks:<\/p>\n<pre class=\"\">find_bsp(ID com.sysprogs.arm.stm32\r\n\tVERSION 2020.06\r\n\tMCU STM32F407VG\r\n\tFRAMEWORKS com.sysprogs.arm.stm32.hal com.sysprogs.arm.stm32.ll com.sysprogs.arm.stm32.usbdev\r\n\tHWREGISTER_LIST_FILE STM32F4xxxx\/DeviceDefinitions\/stm32f407xx.xml)<\/pre>\n<p>And don&#8217;t worry, you won&#8217;t need to edit them manually unless you want to. VisualGDB provides intuitive GUI for all of the common settings:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/retarget.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29045\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/retarget.png\" alt=\"\" width=\"378\" height=\"274\" \/><\/a><\/p>\n<h2>More Flexibility<\/h2>\n<p>Because VisualGDB now directly controls the contents of Solution Explorer, we added a few usability commands that will help you manage your BSPs better:<\/p>\n<ol>\n<li>You can now convert a specific BSP to a stand-alone one directly from Solution Explorer. It will make it fully editable, letting you customize specific files or build settings.<\/li>\n<li>Once you are done tweaking the stand-alone BSP, you can now easily export it into a regular BSP and share it with other team members. Only one copy of the shared BSP will be installed on each machine, reducing the duplication of source files.<\/li>\n<li>VisualGDB now lets you patch a specific framework (e.g. the STM32 USB driver), while keeping the rest of the BSP unchanged. Simply convert that framework to a stand-alone one, and VisualGDB will copy it into the project folder, making it fully editable:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/fw.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29046\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/fw.png\" alt=\"\" width=\"786\" height=\"366\" \/><\/a>You can include the stand-alone frameworks when exporting stand-alone BSPs into shared BSPs, so you can easily share them with your team.<\/li>\n<\/ol>\n<h2>STM32CubeMX Project Type<\/h2>\n<p>Since VisualGDB now directly manages the Solution Explorer contents, we have added a separate project wizard for the STM32CubeMX projects. If you would like to use STM32CubeMX to generate the project layout, and keep editing it afterwards, you no longer need to install the STM32 BSP shipped with VisualGDB. Just launch the new STM32CubeMX Project Wizard and VisualGDB will automatically launch STM32CubeMX, let you configure the settings there, and will create a project around it.<\/p>\n<p>You can relaunch STM32CubeMX at any time directly from Solution Explorer and VisualGDB will immediately pick up any changes it makes to the project structure:<a href=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/cube.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-29049\" src=\"https:\/\/sysprogs.com\/w\/wp-content\/uploads\/2020\/09\/cube.png\" alt=\"\" width=\"1193\" height=\"739\" \/><\/a><\/p>\n<p>The new STM32CubeMX integration works around known GPDSC generator bugs in the STM32CubeMX tool, so you can enjoy intuitive workflow without any interruptions.<\/p>\n<h2>Other VisualGDB 5.5 Improvements<\/h2>\n<p>VisualGDB 5.5 RC1 includes numerous other improvements across the board. Native support for editing ESP-IDF partitions (including SPIFFS), better integration with the latest VS 2019 16.7, completion popups in the GDB Session window, go-to-definition for CMake projects, and much more. You can get the new release from our <a href=\"https:\/\/visualgdb.com\/download\/\">download page<\/a>.<\/p>\n<p>If you have any feedback, don\u2019t hesitate to reach us out via our\u00a0<a href=\"https:\/\/sysprogs.com\/support\/\">support form<\/a>\u00a0or the\u00a0<a href=\"https:\/\/sysprogs.com\/w\/forums\/forum\/visualgdb\/\">VisualGDB forum<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we are excited to announce the release of VisualGDB 5.5 RC1. Aside from numerous usability and stability improvements over the Preview builds, it introduces the new Embedded CMake Project Subsystem that delivers exceptional flexibility and usability for complex embedded projects. In this post I will show you the main highlights of the new subsystem.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/posts\/29039"}],"collection":[{"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/comments?post=29039"}],"version-history":[{"count":4,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/posts\/29039\/revisions"}],"predecessor-version":[{"id":29265,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/posts\/29039\/revisions\/29265"}],"wp:attachment":[{"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/media?parent=29039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/categories?post=29039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysprogs.com\/w\/wp-json\/wp\/v2\/tags?post=29039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}