Skip to main content
F K
Associate
September 26, 2017
Question

STM32 Error Driver HAL_StatusType Def not found

  • September 26, 2017
  • 2 replies
  • 1946 views

Posted on September 26, 2017 at 17:43

Hello,

I am experiencing some problems when I set up the STM32L432KCU6 NUCEO-L432KC wiith FreeRTOS.

The driver files containing HAL are causing compilation errors (see attached screenshots) when used in eclipse.

What could be the reason for this?I haven't written any code in the main yet, I am just trying to compile the given project as is.

How do I know which UART to be using?

Thank you!

This topic has been closed for replies.

2 replies

Technical Moderator
September 26, 2017
Posted on September 26, 2017 at 18:07

Hello,

You should check your project configuration, you may find to the example/template projects under the STM32CubeL4 and have a look to the pre-configured project and

specific files

, this will help you in your project.

Best Regards

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Tesla DeLorean
Guru
September 26, 2017
Posted on September 26, 2017 at 19:51

Make sure your project's stm32l4xx_hal_conf.h flags all the modules you want pulled in.

You pass USE_HAL_DRIVER on the compiler command line and #include 'stm32l4xx.h' rather than 'stm32l4xx_hal.h'

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
F K
F KAuthor
Associate
September 26, 2017
Posted on September 26, 2017 at 21:53

My conf file is empty. Should I be adding code to it?

And i don't have any libraries included in my main either.

0690X00000608NqQAI.png