1
\$\begingroup\$

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.

\$\endgroup\$
3
  • \$\begingroup\$ Then just select no firmware instead of HAL when you configure the project. \$\endgroup\$
    – DKNguyen
    Feb 11, 2020 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\$ Feb 13, 2020 at 6:53
  • \$\begingroup\$ Best tutorial with accurate setting I have found to create project in STM32CUBE IDE with CMSIS but without HAL library and it work perfectly. Link: pomad.fr/node/67 \$\endgroup\$ Jun 23, 2021 at 16:12

1 Answer 1

5
\$\begingroup\$

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

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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