SDAA565 October 2026 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6422 , AM6441 , AM6442
Example used: XIP Benchmark
Table 5-3 shows the performance metrics obtained for the XIP benchmark example:
| Memory Devices | OCRAM | DDR | OSPI PSRAM (25MHz DDR) | OSPI NOR Flash (25MHz DDR) | ||
|---|---|---|---|---|---|---|
| MPU Region Configuration | ||||||
| Region Attributes | Cached | Cached | Cached | Cached | ||
| Sections | ||||||
| RO Data, Text | OCRAM | DDR | PSRAM | Flash | ||
| Rest of the Application | OCRAM | OCRAM | OCRAM | OCRAM | ||
| Benchmarks | ||||||
CPU Stats (Number of CPU cycles used) | FIR | Min | 24072 | 24072 | 24072 | 24072 |
| Max | 28447 | 38103 | 74978 | 93792 | ||
| Avg | 24512 | 25510 | 29654 | 31026 | ||
| MEMCPY | Min | 1565 | 1565 | 1565 | 1565 | |
| Max | 2010 | 3040 | 5203 | 8608 | ||
| Avg | 1614 | 1720 | 1932 | 2275 | ||
Relative Degradation with respect to OCRAM (Max cycles) | FIR | 1x | Approximately 1.3x | Approximately 2.6x | Approximately 3.3x | |
| MEMCPY | 1x | Approximately 1.5x | Approximately 2.6x | Approximately 4.3x | ||
Relative Degradation with respect to OCRAM (Average cycles) | FIR | 1x | Approximately 1x | Approximately 1.2x | Approximately 1.3x | |
| MEMCPY | 1x | Approximately 1.1x | Approximately 1.2x | Approximately 1.4x | ||
The XIP Benchmark measures how the memory that holds the code and read-only data affects a CPU-bound workload running in XIP mode. The SoC boots and runs the application on the R5F core under FreeRTOS™. The application executes two functions: FIR and MEMCPY.
The linker command file places the text and read-only (RO) data sections in the memory under test, and the rest of the application remains in OCRAM. In the baseline case, all sections are placed in OCRAM. Each function is run a total of 10 times and the worst-case, best-case, and average-case performance is printed on the UART terminal in units of CPU cycles. The maximum (which comes from the cold-cache first run) and average number of CPU cycles for OCRAM are taken as the baseline and the relative performance degradation are then calculated for each test case.