Conversation
Signed-off-by: HiFiPhile <admin@hifiphile.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Enables STM32F4 flash instruction cache, data cache, and prefetch buffer in board_init() to improve throughput (cdc_msc_throughput from 500kB/s to 900kB/s).
Changes:
- Enable flash instruction cache via
__HAL_FLASH_INSTRUCTION_CACHE_ENABLE() - Enable flash data cache via
__HAL_FLASH_DATA_CACHE_ENABLE() - Enable flash prefetch buffer via
__HAL_FLASH_PREFETCH_BUFFER_ENABLE()
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
TinyUSB Average Code Size Metrics
Input files
|
|
| target | .text | .rodata | .data | .bss | total | % diff |
|---|---|---|---|---|---|---|
| feather_stm32f405/board_test | 7,360 → 7,388 (+28) | — | — | — | 8,092 → 8,120 (+28) | +0.3% |
| feather_stm32f405/dfu_runtime | 12,772 → 12,804 (+32) | — | — | — | 13,840 → 13,872 (+32) | +0.2% |
| feather_stm32f405/hid_generic_inout | 13,836 → 13,868 (+32) | — | — | — | 14,732 → 14,764 (+32) | +0.2% |
| feather_stm32f405/hid_multiple_interface | 14,528 → 14,560 (+32) | — | — | — | 15,596 → 15,628 (+32) | +0.2% |
| feather_stm32f405/hid_boot_interface | 14,584 → 14,616 (+32) | — | — | — | 15,608 → 15,640 (+32) | +0.2% |
| feather_stm32f405/hid_composite | 14,616 → 14,648 (+32) | — | — | — | 15,772 → 15,804 (+32) | +0.2% |
| feather_stm32f405/midi_test | 14,860 → 14,892 (+32) | — | — | — | 15,848 → 15,880 (+32) | +0.2% |
| feather_stm32f405/cdc_dual_ports | 15,484 → 15,516 (+32) | — | — | — | 16,724 → 16,756 (+32) | +0.2% |
| feather_stm32f405/printer_to_cdc | 15,748 → 15,780 (+32) | — | — | — | 16,788 → 16,820 (+32) | +0.2% |
| feather_stm32f405/audio_test | 15,912 → 15,944 (+32) | — | — | — | 16,876 → 16,908 (+32) | +0.2% |
Collaborator
Author
|
Included in #3634 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which increase
cdc_msc_throughputspeed from 500kB/s to 900kB/s.Was wondering why
dcd_event_xfer_completetakes 4us.