Test of Flash Prefetch, Data Cache, and Wait-States

group sdl_ex_flash_prefetch_test

sdl_ex_flash_prefetch_test

This example demonstrates how to test the behavior of the flash prefetch, data cache, and wait-states. Each of these configurations are altered one by one and the impact they have on a test function’s execution time is measured. It is expected that an increase in the execution time will be observed in each case.

Note that as mentioned in the safety manual description of this diagnostic, a golden value may be used to check the execution time. This wasn’t used for this example because of possible compiler differences between users’ environments, but can be used in your actual application.

External Connections

  • None.

Watch Variables

  • baseCycles - Execution time of runPrefetchTestCode();

  • failCount - Number of tests that returned failures.

  • result - Status of flash configuration logic test.