cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation LL drivers

TomᨠMat?jka
Associate II
Posted on October 13, 2017 at 07:48

Hello I am trying to create new empty project only with HAL and CMSIS in SW4STM32. I've got STM32F401 and I want to use LL drivers. I create new C project and I set HAL drivers, HAL drivers have also LL driver. How can I use LL drivers? I get some mistakes. Below I put some pictures of this problem.

thank you very much!!!

#hal-ll #ll #library #stm32f401 #drivers #hal-drivers #nucleo-f401re #ll-drivers
1 ACCEPTED SOLUTION

Accepted Solutions
TomᨠMat?jka
Associate II
Posted on October 16, 2017 at 09:29

Your answer is confusing. I know that LL and HAL are included. But LL drivers are disabled, when you use symbol USE_FULL_LL_DRIVER you get some errors... 

This is true solution! 

http://www.openstm32.org/forumthread5888?topics_offset=0

 

Thanks for answers

View solution in original post

7 REPLIES 7
Amel NASRI
ST Employee
Posted on October 13, 2017 at 16:50

Hi

Mat_jka.Tom__

‌,

You can start with a generated project by STM32CubeMX and select LL driver for the peripherals you are using.

If you don't know how to do it, refer to

http://www.st.com/resource/en/user_manual/dm001047pdf

.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

TomᨠMat?jka
Associate II
Posted on October 13, 2017 at 19:43

OK, but this is not solution...Can you tell me what is this problem and how can i solve it?

STMCube is very bad problematic alpha tool, it is just toy for arduino kids, not for serious work. btw: Cube don't support LL drivers for STM32F401RE...

TomᨠMat?jka
Associate II
Posted on October 13, 2017 at 23:00

Yes, but the LL drivers are extern of project. I want all files in one folder(project). 

Posted on October 13, 2017 at 21:17

Review the LL Template for your tool chain

STM32Cube_FW_F4_V1.16.0\Projects\STM32F401RE-Nucleo\Templates_LL\SW4STM32

You'd want to have the defines passed in by the compiler

USE_FULL_LL_DRIVER

STM32F401xE

HSE_VALUE=8000000U

And the Include Paths to encompass those of the drivers and project

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 14, 2017 at 01:26

Ok, so copy them in one directory and construct the project. Pretty trivial task for GNU/GCC makefile, or Keil, can't believe it could be unduly complex in anything else.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 15, 2017 at 14:45

Hello !

I have SW4STM32 v. 4.6.3

0690X00000608Z4QAI.png

When create a project, for your MCU , at this screen you can choose between SPL and HAL 

In case you choose HAL you have the option to add LL drivers in project.

I tried to make an empty C project for f401RE with HAL and LL and didn't faced the behaviour you described.

Check if you have the latest versions of firmware and SW4STM32.

Regards

vf

TomᨠMat?jka
Associate II
Posted on October 16, 2017 at 09:29

Your answer is confusing. I know that LL and HAL are included. But LL drivers are disabled, when you use symbol USE_FULL_LL_DRIVER you get some errors... 

This is true solution! 

http://www.openstm32.org/forumthread5888?topics_offset=0

 

Thanks for answers