setup hello world from component

This commit is contained in:
Mitchell Marino 2026-03-21 20:38:15 -05:00
parent 12f3fc9f05
commit 4bf5fef40b
5 changed files with 13 additions and 8 deletions

View File

@ -3,7 +3,7 @@
"idf.openOcdConfigs": [ "idf.openOcdConfigs": [
"board/esp32s3-builtin.cfg" "board/esp32s3-builtin.cfg"
], ],
"idf.port": "detect", "idf.port": "/dev/ttyACM0",
"idf.currentSetup": "/home/mitchell/.espressif/v6.0/esp-idf", "idf.currentSetup": "/home/mitchell/.espressif/v6.0/esp-idf",
"idf.customExtraVars": { "idf.customExtraVars": {
"IDF_TARGET": "esp32s3" "IDF_TARGET": "esp32s3"
@ -13,5 +13,6 @@
"--background-index", "--background-index",
"--query-driver=**", "--query-driver=**",
"--compile-commands-dir=/home/mitchell/cpp/blk_box_control/build" "--compile-commands-dir=/home/mitchell/cpp/blk_box_control/build"
] ],
"idf.flashType": "JTAG"
} }

View File

@ -4,5 +4,5 @@ cmake_minimum_required(VERSION 3.22)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on. # "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) project(blk_box_control)

@ -1 +1 @@
Subproject commit d91b05856dde07b49a254778a49cf14680ef2a1e Subproject commit a5411c45f5b6f8636b02149b35cf94c1405143ea

View File

@ -1,3 +1,6 @@
idf_component_register(SRCS "main.cpp" idf_component_register(
PRIV_REQUIRES spi_flash SRCS "main.cpp"
PRIV_REQUIRES
spi_flash
blk_box_lib
INCLUDE_DIRS "") INCLUDE_DIRS "")

View File

@ -12,10 +12,11 @@
#include "esp_chip_info.h" #include "esp_chip_info.h"
#include "esp_flash.h" #include "esp_flash.h"
#include "esp_system.h" #include "esp_system.h"
#include "blk_box.h"
extern "C" void app_main(void) extern "C" void app_main(void)
{ {
printf("Hello world!\n"); printf(get_hello_world());
/* Print chip information */ /* Print chip information */
esp_chip_info_t chip_info; esp_chip_info_t chip_info;