2020-03-06 11:43 AM
In the h745 reference manual, the RAM region of memory is write-back while the code region is write-through. According an app note, cache coherency issues can be avoided by using a write-through ram region. In the h7 the sram sections are aliased in the code region.
Does this mean that i can simply use the aliased addresses to get write-through D2 ram access?
2020-03-07 06:41 AM
As the data will not just sit in memory, but be processed by CPU anyway, both (non-cacheable and clean/invalidate) methods have a performance impact. My experience with zero-copy Ethernet driver for lwIP shows that clean/invalidate is much faster, because it allows CPU to cache the data while processing it before transmission and after reception.
As for difficulties getting clean/invalidate right...
Not so difficult IMHO... :)