Not able to inherit from WiFiInterface and NetworkStack classes, not able to properly set Include Paths #195
-
Hello, I am new to MBed OS and I am trying to create my own WiFiInterface using an ESP32 as a programming exercise. To start out, I have decided to add all the code in my My mbed_app.json5 file - {
"target_overrides": {
"*": {
"platform.stdio-baud-rate": 115200,
"platform.stdio-buffered-serial": 1,
}
}
} My CMakeLists.txt - cmake_minimum_required(VERSION 3.19)
cmake_policy(VERSION 3.19)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Initialize Mbed OS build system.
# Note: This block must be before the include of app.cmake
set(MBED_APP_JSON_PATH mbed_app.json5)
include(mbed-os/tools/cmake/app.cmake)
add_subdirectory(mbed-os)
project(wifi-driver)
# add subdirectories and build targets here
add_executable(wifi-driver main.cpp)
target_link_libraries(wifi-driver mbed-os)
mbed_set_post_build(wifi-driver)
mbed_finalize_build() Other than this, I have followed the new project setup guide from the Wiki and have made sure that everything else works fine. I am suspecting the problem is in the mbed_app.json5 file, which I have not been able to correctly populate for my purpose due to insufficient documentation, but am not sure about the issue. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hello and welcome to MbedCE. the issue will be probably in cmake settings but also depends on your MCU target. I am not so much familiar with Cmake like Jamie but I believe he will fill correct information ASAP.
will be necessary to fill more libraries here I think. Probably something like
BTW there were already ESP32 driver |
Beta Was this translation helpful? Give feedback.
Ok, I understand and respect your decision about old driver.
I probably do not understand your issue properly. You wrote about a code in main.cpp where you need NetworkStack.h and WiFiInterface.h
Basic MbedOS
Modified top level CMakelists.txt
BR, Jan