Enable DTCM and ITCM of core R8 on Renesas RZ/V2H #100500
Merged
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.



In the previous implementation, the sram node was treated as a single large RAM block that included ITCM, DTCM, and general SRAM, starting at address 0x0 with a total size of 256 MB.
However, Arm Cortex-R8 MPCore Processor r0p2 Technical Reference Manual, DTCM cannot store executable instructions. If an application grows large enough, the linker may place instructions in the DTCM area, which begins at address 0x20000, leading to invalid execution.
This PR updates the memory layout to use the sram3 node and relocates the vector table into the ITCM region. The entire DTCM region is now left unused by default so that applications may choose how to use it explicitly.
The MPU configuration has also been updated to align with the new memory layout.