SPRADK4 October 2024 AM263P2-Q1 , AM263P4 , AM263P4-Q1
Getting started with OptiFlash is quite easy. All OptiFlash SW features are provided as part of TI Arm Clang Compiler tool-chain to enable easy and seamless development by the user. Developing an application for an MCU with integrated OptiFlash Technology is quite similar to the standard application development flow, as shown in Figure 7-1, with added options to enable OptiFlash tooling as part of code compilation and build, and modifying the SBL to configure the required OptiFlash HW accelerators during system startup, as shown in Figure 7-2 Few tools, such as smart placement and smart layout, would require an initial test run to collect code coverage statistics that would be fed to the tool to generate a linker command file with optimal placement of code and data. Next step would be to configure various parameters of OptiFlash HW components as part of SBL system initialization. For example, when using the OptiShare tool in a multi-core application, there is a separate binary created by the tool for shared code and RO data, mapped to a common shared memory address space. Now, the SBL needs to be configured to load the shared code and RO data once into the OCSRAM, and set up the RAT engine for each CPU such that the shared code and RO data map from shared memory address space to CPU unique address space. Finally, in the last step, the SBL and application is downloaded to Flash and the system will boot after power ON.

