cancel
Showing results for 
Search instead for 
Did you mean: 

on project creation adc_if.h file missing.

rib.1
Associate II

Hi everyone.

im trying to create a project with a LoraWan module that based on stm32wle5ccu6.(RAK3172).

after compliting my ioc UI i build the project, on the building process i got this error.

/LoRaWAN/App/lora_app.c:33:10: fatal error: adc_if.h: No such file or directory

  33 | #include "adc_if.h"

   |     ^~~~~~~~~~

compilation terminated.

make: *** [LoRaWAN/App/subdir.mk:28: LoRaWAN/App/lora_app.o] Error 1

make: *** Waiting for unfinished jobs....

"make -j8 all" terminated with exit code 2. Build might be incomplete.

17:24:44 Build Failed. 3 errors, 11 warnings. (took 4s.918ms)

how i can solve this problem ?

8 REPLIES 8
Wijeden RHIMI
ST Employee

Hello @rib.1​ ,

Ensure the directory of the header file is listed in your include paths for the compiler.

right click project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Include paths

 Or you can just verify the spelling of "adc_if.h"

Thanks,

Wiejden,

rib.1
Associate II

hi Wijeden,

first of all thanks for your reply.

as you see i think that the path is already included ...

0693W00000aImk7QAC.png

Wijeden RHIMI
ST Employee

Hello ,

I wonder you check the stuffs bellow :

  1. Can you create a project, enable lorawan (without any additional configuration) and build?
  2. If step 1 is successful, can you identify what additional configurations you made to the project?
  3. At which of those additional configurations does the build break?

Maybe you made some sort of configuration to the .ioc file .

I wait your feedback

Thanks ,

rib.1
Associate II

Hi Wijeden,

thank you for the replay.

i have recreate a project following your advice.

1- SUBGHz for allowing LoRaWan.

2-USART2 for log ecc.

3- ADC for battery and temp sensor.

at the end when i select in the voice LoRaWan Application under the LoRaWan config.

Application -> End Node skeleton.

i have the adc_if.h error.

Wijeden RHIMI
ST Employee

Hello

I tag your thread as STM32cubeMX issue.

Thanks

rib.1
Associate II

Hi Wijeden ,

i still have the same problem with my project when i select the End Node skeleton.

do you have any advice to fix this problem ?

best regards

Rami

Wijeden RHIMI
ST Employee

Hello @rib.1,

I think your issue is not Cube IDE related it's MX one , i tagged it as Mx Thread and maybe someone else can find the right solution and help you .

Thanks,

Wijeden,

Hi Wijeden 

 How can we enable LoRaWAN in the .ioc file during project creation? Is it available in the Middleware section?