Commit eec9ff6
runtime/mimxrt1062: use Normal memory attributes for ITCM and DTCM
The MPU regions for ITCM and DTCM used TEX 0 with C=0 and B=0. That
encoding is Strongly Ordered memory. Unaligned accesses to Strongly
Ordered memory always fault, and the compiler can emit unaligned
accesses to globals. Use TEX 0b001, which is Normal non cacheable
memory. See the Arm v7-M Architecture Reference Manual (Arm DDI
0403), PMSAv7 memory attribute encoding.1 parent 93940cb commit eec9ff6
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | | - | |
| 32 | + | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments