Files
Misaki 439a379945 1. 测试了wifi的驱动,连带着蓝牙一同测试,带着蓝牙则测试不通过,需要重写蓝牙驱动代码
2. 修改wifi与蓝牙的驱动代码,并且进行了测试,测试通过
3. 新增分区表,为板载16M的flash作分区规划,预留ota分区
4. 测试了SD卡的驱动,正常读出数据,测试通过
5. 新增了CMake配置,just_monitor(monitor_only.sh),只监视,无编译,无烧录
2025-08-24 15:25:38 +08:00

31 lines
1.3 KiB
CMake

# For more information about build system see
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)
# 注意!如果你使用了下面的编译烧录监视方式,那么Clion对于你来说就只是个代码编辑器,几乎不承担编译功能
# 如果你把脚本放项目根,可直接用 ${CMAKE_SOURCE_DIR}/build_flash_monitor.sh
add_custom_target(flash_monitor_gui
COMMAND ${CMAKE_COMMAND} -E env
"IDF_PATH=$ENV{IDF_PATH}" # 保证 idf.py 能找到
${CMAKE_SOURCE_DIR}/build_flash_monitor.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL # 让 ninja 把 stdout 实时转发到 CLion Build 窗口
COMMENT "Build + Flash in CLion, then launch Konsole with idf.py monitor"
)
# 只监视,而不做编译与烧录
add_custom_target(just_monitor
COMMAND ${CMAKE_COMMAND} -E env
"IDF_PATH=$ENV{IDF_PATH}"
${CMAKE_SOURCE_DIR}/monitor_only.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
USES_TERMINAL
COMMENT "Launch Konsole with idf.py monitor (no build/flash)"
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Bionic_sphere)