Skip to content

[cortex-m7] Enable I/D-Cache via lbuild#1255

Merged
salkinium merged 3 commits intomodm-io:developfrom
salkinium:fix/dcache
Jan 29, 2025
Merged

[cortex-m7] Enable I/D-Cache via lbuild#1255
salkinium merged 3 commits intomodm-io:developfrom
salkinium:fix/dcache

Conversation

@salkinium
Copy link
Copy Markdown
Member

@salkinium salkinium commented Jan 17, 2025

Only enable the D-Cache after the memory operations, so that all data is committed to the memory when required (for example for the VTOR in RAM!!!)

Related to #1236.

@salkinium salkinium added this to the 2025q1 milestone Jan 17, 2025
@salkinium salkinium force-pushed the fix/dcache branch 4 times, most recently from 12a27d4 to 539a0bf Compare January 21, 2025 15:26
@salkinium salkinium marked this pull request as ready for review January 21, 2025 15:53
@salkinium
Copy link
Copy Markdown
Member Author

@jgmess-dlr Could you check if this change still works for your use case? I discovered stability issues when uploading using a JLINK. I think the main issue is that VTOR is set to RAM by default on Cortex-M4, but the VTOR may not actually have been copied to RAM and instead is still in DCache.

@salkinium salkinium merged commit 6c4e0f5 into modm-io:develop Jan 29, 2025
12 checks passed
@salkinium salkinium deleted the fix/dcache branch January 29, 2025 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant