Loading...
 
Skip to main content

System Workbench for STM32


How to remove files from a Workbench generated HAL project.

France

Hi,
There is two easy ways to avoid source code to be compiled:

  1. Just delete the source file from your project 😎
  2. Mark the file (or a complete directory) as not to be compiled, if you want to keep it for reference, by
    • file (or folder) >> Properties >> C/C++ Build >> Exclude Resource from build
      Image
    • Then the file (or folder) should be listed at the end of the files (or folders) list, grayed and its icon barred by a slash: Image

Bernard