Electronic – CMSIS without HAL

cmsishalstm32

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.

Best Answer

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.

fsdfdsfds

The last step is to rebuild indexes.

enter image description here