Page 1 of 1

ESP Insight not recognized by Compiler

Posted: Tue Mar 14, 2023 11:40 am
by Vaibhav Singh
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 ??

Re: ESP Insight not recognized by Compiler

Posted: Thu Mar 16, 2023 8:38 am
by ESP_alisitsyn
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]