ESP Insight not recognized by Compiler

Vaibhav Singh
Posts: 8
Joined: Wed Jan 18, 2023 5:25 am

ESP Insight not recognized by Compiler

Postby Vaibhav Singh » Tue Mar 14, 2023 11:40 am

Hello All,

I am trying to integrate the ESP Insight feature into one of my projects but apparently whenever I am building the project it never recognizes the Insight header file esp_insight.h file I have made all the necessary addition in my root cmake file and my env variable and downloaded the necessary repo but I am unable to build my code
  1. [code]cmake_minimum_required(VERSION 3.16)
  2.  
  3.  
  4. if(DEFINED ENV{INSIGHTS_PATH})
  5.   set(INSIGHTS_PATH $ENV{INSIGHTS_PATH})
  6. else()
  7.   set(INSIGHTS_PATH ${CMAKE_CURRENT_LIST_DIR}/../..)
  8. endif(DEFINED ENV{INSIGHTS_PATH})
  9.  
  10. # Add RainMaker components
  11. set(EXTRA_COMPONENT_DIRS ${INSIGHTS_PATH}/components ${INSIGHTS_PATH}/examples/common)
  12.  
  13. set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/protocols/modbus/mb_example_common)
  14.  
  15.  
  16.  
  17. include($ENV{IDF_PATH}/tools/cmake/project.cmake)
  18. project(Feb_RS485)[/code]

Can anyone Help me in identifying the problems ??
Attachments
Screenshot (31).png
Screenshot (31).png (9.92 KiB) Viewed 1080 times

ESP_alisitsyn
Posts: 211
Joined: Fri Feb 01, 2019 4:02 pm
Contact:

Re: ESP Insight not recognized by Compiler

Postby ESP_alisitsyn » Thu Mar 16, 2023 8:38 am

Hello, @Vaibhav Singh,

In your cmake file you added the mb_example_common incorrectly through EXTRA_COMPONENT_DIRS and the previous value set for RainMaker is overwritten. Please change the last line as below:

Code: Select all

......  the above lines of cmake file
# Add RainMaker components
set(EXTRA_COMPONENT_DIRS ${INSIGHTS_PATH}/components ${INSIGHTS_PATH}/examples/common)
list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/protocols/modbus/mb_example_common")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Feb_RS485)
[/code]

Who is online

Users browsing this forum: No registered users and 120 guests