Skip to main content
Nicolas Hell
Associate II
January 9, 2018
Question

Includes errors with LoRa library

  • January 9, 2018
  • 4 replies
  • 3079 views
Posted on January 09, 2018 at 11:19

Hi everyone, I'm currently working with my team on a GSM/LoRa gateway with the B-L072Z-LRWAN1 board and we are facing some trouble on the LoRa part. Indeed we figured out that we needed to import the LoRa library from STM32CubeExpansion in our project but when we do, there are a lot of errors appearing due to unresolved includes (for example 'hw_conf.h' or 'debug.h') and we did not manage to find those files or to fix these issues, is there someone facing the same issue or with a solution? It would be much appreciated

#stm32cubeexpansion #include-error #b-l072z-lrwan1
This topic has been closed for replies.

4 replies

Andrew Neil
Super User
January 10, 2018
Posted on January 11, 2018 at 00:09

What IDE are you using?

When you say, '

unresolved includes'

 are they actual compiler errors, or just Eclipse browsing problems?

Have you built the LoRa stuff 'standalone' to understand how it

should

work?

Might be easier to merge your stuff into the LoRa stuff - rather than the other way around ... ?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Nicolas Hell
Associate II
January 11, 2018
Posted on January 11, 2018 at 14:31

We are using SW4STM32 or Atollic TRUEStudio, both are equivalent, apparently it seems that it is browsing issues which leads to compilation failures, the IDE seems to not find the header files.

There is one example which works, the AT-Slave, we might try to merge our project in this one to see if that works

Tesla DeLorean
Guru
January 11, 2018
Posted on January 11, 2018 at 01:22

Start by building the examples unmodified. Keil will let you see and load the dependencies, right clicking on a file should get you to some options showing a path.

The LRWAN tree uses a significantly different environment compared to the typical HAL/CubeMX output. As Andrew indicates merging in what you need from CubeMX might be the easier route, or frankly just being proficient in HAL and register level peripheral interaction. The code has a number of broken concepts going on, and is rather fragile, especially with respect to interrupt priorities, spin loops and blocking code. Covered things in a couple of threads here.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
January 11, 2018
Posted on January 11, 2018 at 10:42

Clive One wrote:

Start by building the examples unmodified. Keil will let you see and load the dependencies

+1

The code will build in the free Keil for STM32L0/F0.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
T J
Senior III
January 12, 2018
Posted on January 12, 2018 at 03:59

Same issue here,  (trying to compile the end point project)

VS2018\LR073\inc\hw_gpio.h(86,1):               error : unknown type name 'IRQn_Type'

error : unknown type name 'GPIO_TypeDef'

error : unknown type name 'GPIO_InitTypeDef'

Keil is so slow, are you using uV5 ?

I use VisualStudio/GDB and uV5, much prefer VS for speed and robustness.

Somehow the file STM32Fl073xx.h is not included in the project..

still stuck trying to set the target somewhere.

Inside this file  hw_conf.h,  I can see there no targets are defined

where do I define the target ?

The IDE (VS) already knows its a L073, but the Lrwan firmware doesn't know which board is running.

daniele
Associate II
January 30, 2019

Did you solve those ussues?

I would like to start a project using atollic....

PS: Why ST did not generate a project with Atollic ?

Tesla DeLorean
Guru
January 30, 2019

Because few people we using it? And they were trying to negotiate a better price.

Keil has a free licences, the examples just work, why ski uphill on this?

All the required files are in the package, make sure the project, libraries and includes are pathed correctly for the toolset you have chosen to master.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
daniele
Associate II
January 30, 2019

ST bought Atollic and this is also free for ST CPU (this for all ST CPUs not like Keil)