L2 Cache Example¶
The L2 cache example demonstrates how to use the software defined L2 cache.
Building the firmware¶
Run the following commands in the xcore_sdk root folder to build the firmware:
cmake -B build -DCMAKE_TOOLCHAIN_FILE=xmos_cmake_toolchain/xs3a.cmake
cd build
make example_freertos_l2_cache
cmake -G "NMake Makefiles" -B build -DCMAKE_TOOLCHAIN_FILE=xmos_cmake_toolchain/xs3a.cmake
cd build
nmake example_freertos_l2_cache
Setting up the hardware¶
Before running the firmware, the swmem must be flashed.
make flash_example_freertos_l2_cache_swmem
nmake flash_example_freertos_l2_cache_swmem
Running the firmware¶
Running with hardware.
make run_example_freertos_l2_cache
nmake run_example_freertos_l2_cache