Is it possible to create a project in System Workbench for STM32 with CMSIS but without HAL library? My target microcontroller is STM32L053R8 on a Nucleo board. When I create a with HAL and delete all the files related to this library, I get a lot of errors and some source files can't see header files. Generally, I want to have clean project with CMSIS only.

  • \$\begingroup\$ Then just select no firmware instead of HAL when you configure the project. \$\endgroup\$ – DKNguyen Feb 11 '20 at 14:13
  • \$\begingroup\$ I tried that and It doesn't work. When I select the project without firmware, there is no CMSIS inside. Unless I have to add it manually. \$\endgroup\$ – Marco Svizzeri Feb 13 '20 at 6:53

I've found it.

In the properties of the project, you need to go to C/C++ build -> Settings -> Tool Settings -> Includes. In the Include paths (-l), remove the HAL-related directories and add a catalogue with your own prepared drivers. Save the settings.


The last step is to rebuild indexes.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.