2018-01-09 02:19 AM
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-lrwan12018-01-10 03:09 PM
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
shouldwork?Might be easier to merge your stuff into the LoRa stuff - rather than the other way around ... ?
2018-01-10 04:22 PM
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.
2018-01-11 02:42 AM
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.
2018-01-11 06:31 AM
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
2018-01-11 06:34 AM
Ok thank you for your help, we will try to merge our code with an existing project (probably the AT_Slave example which is the only one who works correctly for us, the other ones have the same problem with unresolved includes in the IDE we use, SW4STM32).
We might also try to change the IDE and chose Keil to see if that works better
2018-01-11 10:03 AM
It is a common issue with Eclipse that you can get the Editor saying it can't resolve stuff, while the code actually builds correctly!
This is because Eclipse uses its own, separate thing to do the indexing - and it's that indexer which gets out-of-step.
There are menu options to rebuild the index.
Sometimes doing a clean & full rebuild helps.
Sometimes closing & restarting Eclipse helps.
You could try raising the issue in the Atollic and AC6 forums ...
2018-01-11 06:59 PM
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.
2019-01-30 06:52 AM
Did you solve those ussues?
I would like to start a project using atollic....
PS: Why ST did not generate a project with Atollic ?
2019-01-30 07:21 AM
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.