setup hello world from component
This commit is contained in:
parent
12f3fc9f05
commit
4bf5fef40b
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -3,7 +3,7 @@
|
||||
"idf.openOcdConfigs": [
|
||||
"board/esp32s3-builtin.cfg"
|
||||
],
|
||||
"idf.port": "detect",
|
||||
"idf.port": "/dev/ttyACM0",
|
||||
"idf.currentSetup": "/home/mitchell/.espressif/v6.0/esp-idf",
|
||||
"idf.customExtraVars": {
|
||||
"IDF_TARGET": "esp32s3"
|
||||
@ -13,5 +13,6 @@
|
||||
"--background-index",
|
||||
"--query-driver=**",
|
||||
"--compile-commands-dir=/home/mitchell/cpp/blk_box_control/build"
|
||||
]
|
||||
],
|
||||
"idf.flashType": "JTAG"
|
||||
}
|
||||
|
||||
@ -4,5 +4,5 @@ cmake_minimum_required(VERSION 3.22)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
||||
idf_build_set_property(MINIMAL_BUILD ON)
|
||||
# idf_build_set_property(MINIMAL_BUILD ON)
|
||||
project(blk_box_control)
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit d91b05856dde07b49a254778a49cf14680ef2a1e
|
||||
Subproject commit a5411c45f5b6f8636b02149b35cf94c1405143ea
|
||||
@ -1,3 +1,6 @@
|
||||
idf_component_register(SRCS "main.cpp"
|
||||
PRIV_REQUIRES spi_flash
|
||||
idf_component_register(
|
||||
SRCS "main.cpp"
|
||||
PRIV_REQUIRES
|
||||
spi_flash
|
||||
blk_box_lib
|
||||
INCLUDE_DIRS "")
|
||||
|
||||
@ -12,10 +12,11 @@
|
||||
#include "esp_chip_info.h"
|
||||
#include "esp_flash.h"
|
||||
#include "esp_system.h"
|
||||
#include "blk_box.h"
|
||||
|
||||
extern "C" void app_main(void)
|
||||
{
|
||||
printf("Hello world!\n");
|
||||
printf(get_hello_world());
|
||||
|
||||
/* Print chip information */
|
||||
esp_chip_info_t chip_info;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user