Skip to main content
rib.1
Associate II
Mar 9, 2023 4:30 PM UTC
Question

on project creation adc_if.h file missing.

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 ?

This topic has been closed for replies.

8 replies

Wijeden RHIMI
ST Employee
Mar 10, 2023 10:07 AM UTC

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
rib.1Author
Associate II
Mar 13, 2023 8:29 AM UTC

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
Mar 13, 2023 10:30 AM UTC

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 ,

Visitor II
Jun 3, 2024 5:59 AM UTC

Hi Wijeden 

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

rib.1
rib.1Author
Associate II
Mar 13, 2023 10:56 AM UTC

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
Mar 13, 2023 11:01 AM UTC

Hello

I tag your thread as STM32cubeMX issue.

Thanks

rib.1
rib.1Author
Associate II
Mar 27, 2023 10:02 AM UTC

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
Mar 27, 2023 10:09 AM UTC

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,