diff options
| author | Ian McIntyre <me@mciantyre.dev> | 2025-11-09 11:53:17 -0500 |
|---|---|---|
| committer | Ian McIntyre <me@mciantyre.dev> | 2025-11-22 11:20:32 -0500 |
| commit | c4ee315a20e41c234d2d0f7ca3ed7e37a09b9d32 (patch) | |
| tree | d877bd26bd8acdac391ccb3ccdd5470e2f22eed0 /src/lib.rs | |
| parent | 3a6bbd912c92c277611c7cea5780eb9afb04e451 (diff) | |
Add builder API for FlexRAM bank layout
The layout, or assignment of FlexRAM banks to memory regions, is more
precise than the count. When a user specifies the count, we still apply
the same layout as we always have. But now, by default, we prefer the
fuse layout for users who have made no choice.
This commit supports RAM loading with probe-rs. After probe-rs resets
the MCU and uses the fuse FlexRAM layout, firmware can perfectly match
that layout without disrupting the data already copied into RAM by the
debugger.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -139,11 +139,13 @@ //! //! # Limitations //! -//! The crate considers the assignment of FlexRAM memory banks to ITCM/DTCM/OCRAM -//! an implementation detail. Additionally, the implementation does not care -//! about the assignment of memory bank power domains. This seems to matter most on -//! the 1050, which has the widest spread of bank-to-power domain assignment -//! (according to AN12077). +//! By default, the crate considers the assignment of FlexRAM memory banks to +//! ITCM/DTCM/OCRAM an implementation detail. If you must define the assignment, +//! you can specify your own layout by using [`flexram_layout`](RuntimeBuilder::flexram_layout). +//! +//! Additionally, the implementation does not care about the assignment of memory bank power +//! domains. This seems to matter most on the 1050, which has the widest spread of bank-to-power +//! domain assignment (according to AN12077). //! //! There is no support for ECC on 1160 or 1170. The runtime assumes that OCRAM and TCM ECC //! is disabled, and that the corresponding memory banks can be used for OCRAM. |
