AM261x MCU+ SDK  11.00.00
Optiflash XIP Benchmark with 64KB L2 Cache

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 freertos
Toolchain ti-arm-clang
Boards am261x-lp, am261x-som
Example folder examples/benchmarks/optiflash_benchmark/flash_xip_l2_cache_64k

Introduction

This is the same application as Optiflash OCRAM Benchmark, however, target functions are kept in external flash and L2 cache of 64KB is enabled. The effect of it is seen in the execution time.

Steps to Run the Example

Building the application

  • When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
  • When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)

Running the application

Flash the application binary to the device, follow the steps mentioned here (see Flash a Hello World example).

Sample output

Starting OSPI Bootloader ...
KPI_DATA: [BOOTLOADER_PROFILE] Boot Media : NOR SPI FLASH
KPI_DATA: [BOOTLOADER_PROFILE] Boot Media Clock : 166.667 MHz
KPI_DATA: [BOOTLOADER_PROFILE] Boot Image Size : 6 KB
KPI_DATA: [BOOTLOADER_PROFILE] Cores present :
r5f0-0
KPI_DATA: [BOOTLOADER PROFILE] System_init : 497us
KPI_DATA: [BOOTLOADER PROFILE] Drivers_open : 96us
KPI_DATA: [BOOTLOADER PROFILE] LoadHsmRtFw : 1us
KPI_DATA: [BOOTLOADER PROFILE] Board_driversOpen : 4475us
KPI_DATA: [BOOTLOADER PROFILE] CPU load : 3605us
KPI_DATA: [BOOTLOADER PROFILE] SBL End : 8us
KPI_DATA: [BOOTLOADER_PROFILE] SBL Total Time Taken : 8684us
Image loading done, switching to application ...
OCMC benchmarking:: Board_init success
Filling up the buffers
master_task
master_task -- start sending
memcpy Exec Time I$ Miss I$ Acc INST ICM/sec INST/sec
0B 16503us 85713 1076234 2167576 6.4 162.2
100B 16379us 84832 1221300 2356841 6.4 177.7
200B 17112us 85971 1370906 2557067 6.2 184.5
400B 18586us 87576 1673473 2958903 5.8 196.6
700B 19208us 83417 2115014 3544559 5.4 227.9
1000B 21494us 85525 2577901 4159290 4.9 239.0
1500B 24943us 84683 3327743 5151634 4.2 255.1
2250B 31189us 86719 4470469 6666130 3.4 264.0
2500B 33269us 86626 4836459 7153610 3.2 265.6
4096B 45017us 85468 7234375 10349054 2.3 283.9
All tests have passed