Skip to content

Conversation

@finger563
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Nov 2, 2025

✅Static analysis result - no issues found! ✅

@github-actions
Copy link

github-actions bot commented Nov 3, 2025

ESP-IDF Size Report for 'Esp Box Emu'

Metric Base PR Delta
FLASH 3,156,300 bytes (50.17%) 3,188,372 bytes (50.68%) 🔺 +32,072 bytes (+0.51%)
DRAM 274,279 bytes (80.25%) 274,331 bytes (80.27%) 🔺 +52 bytes (+0.02%)
IRAM 16,384 bytes (100.00%) 16,384 bytes (100.00%) 0 bytes (0.00%)
RAM (DRAM+IRAM) 290,663 bytes 290,715 bytes 🔺 +52 bytes (+0.01%)

FLASH uses app .bin size or json2 flash sum. RAM sums DRAM+IRAM via idf_size. Percentages shown when totals are available.
DRAM/IRAM usage does not include memory used by the heap allocator at runtime.
This report was generated by esp-idf-size-delta.

@finger563 finger563 self-assigned this Nov 3, 2025
@finger563 finger563 requested a review from Copilot November 3, 2025 14:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the project to use espp IDF components from the component registry instead of git submodules, and updates some dependencies including ESP-IDF version to 5.5.1.

  • Migrated from git submodule to component registry for espp components
  • Updated ESP-IDF version from 5.4 to 5.5.1 and TinyUSB library to v2.0+
  • Refactored USB MSC initialization to use new TinyUSB API structure

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
main/idf_component.yml Adds component manifest with espp/monitor dependency
components/jpegdec Updates jpegdec submodule commit hash
components/gui/generated/ui.h Changes LVGL include path from "lvgl/lvgl.h" to "lvgl.h"
components/espp Removes espp git submodule
components/box-emu/src/make_color.cpp Updates LVGL include path
components/box-emu/src/box-emu.cpp Refactors USB MSC initialization for new TinyUSB API
components/box-emu/include/box-emu.hpp Updates TinyUSB includes and adds storage handle member
components/box-emu/idf_component.yml Updates dependencies and IDF version requirements
components/box-emu/example/CMakeLists.txt Removes espp components path from EXTRA_COMPONENT_DIRS
components/box-emu/CMakeLists.txt Adds "lvgl" to component requirements
CMakeLists.txt Comments out espp components path
.gitmodules Removes espp git submodule configuration
.github/workflows/static_analysis.yml Removes hardcoded ESP-IDF version
.github/workflows/package_main.yml Updates to use environment variables and adds size delta analysis
.github/workflows/build.yml Updates ESP-IDF version and adds size delta analysis
.github/instructions/ato.instructions.md Adds new ATO language documentation file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +660 to +665
tinyusb_msc_fatfs_config_t config_msc = {
.base_path = (char*)mount_point,
.config = fat_mount_config,
.do_not_format = true,
.format_flags = 0,
};
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C-style cast (char*)mount_point should be replaced with a C++ static_cast for better type safety: static_cast<char*>(mount_point).

Copilot uses AI. Check for mistakes.
Comment on lines +681 to +684
// no device_event_handler for tud_mount and tud_unmount callbacks
tinyusb_config_t tusb_cfg = TINYUSB_DEFAULT_CONFIG();
tusb_cfg.task = TINYUSB_TASK_CUSTOM(4096 /*size */, 4 /* priority */,
0 /* affinity: 0 - CPU0, 1 - CPU1 ... */);
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic numbers should be defined as named constants. Consider defining constants for task size (4096), priority (4), and CPU affinity (0) to improve code maintainability.

Copilot uses AI. Check for mistakes.
@finger563 finger563 merged commit 79dee22 into main Nov 3, 2025
8 of 9 checks passed
@finger563 finger563 deleted the chore/espp-idf-component branch November 3, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants