Skip to content

Conversation

@jescarri
Copy link
Owner

No description provided.

jescarri added 8 commits July 16, 2025 12:57
- Local build artifacts: firmware.elf, firmware.map, build.log
- Memory usage: RAM 17.3% (56,560/327,680 bytes), Flash 99.3% (1,302,037/1,310,720 bytes)
- Added GitHub Actions workflow for CI baseline capture
- Created comprehensive memory usage summary for future comparisons
Size Optimization Summary:
- Before: 1,302,037 bytes (99.3% Flash usage)
- After: 1,211,449 bytes (92.4% Flash usage)
- Reduction: 90,588 bytes (~90KB)

Changes Made:
1. Added size-optimization compiler flags: -Os, -ffunction-sections, -fdata-sections, -Wl,--gc-sections
2. Reduced LMIC debug level from 3 to 0 for smaller binary size
3. Created comprehensive build documentation in docs/BUILD.md
4. Updated README.md with size-saving tips and current build sizes
5. Added build environment configurations for release, debug, and minimal builds

Build Types:
- ttgo-lora32-v1-release: Production build with size optimizations
- ttgo-lora32-v1-debug: Debug build with logging (101.4% Flash - exceeds limit)
- ttgo-lora32-v1-minimal: Minimal build with reduced dependencies

This optimization successfully reduces the build size by 90KB while maintaining
all functionality, making the firmware fit comfortably within Flash constraints.
…n info

- Create docs/BUILD.md with build types and optimization tips
- Update README.md with size-saving tips and current build sizes
- Document 90KB size reduction achievement
- Fix skip_size_check.py script for proper operation
- Remove --json-output flag from PlatformIO run command (doesn't exist)
- Update flash usage extraction pattern to match actual PlatformIO output
- Primary pattern: 'Flash:.*used \K\d+'
- Fallback pattern: 'used \K\d+'
- Improve error handling and debugging output
- Fix all three pipelines: branch, main, and release
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@jescarri jescarri merged commit 1dcdb5f into main Jul 22, 2025
4 of 5 checks passed
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