Optional: Update the generated files by executing the copy_gen.bat scripts in hello_world_s\mdk and hello_world_ns\mdk folders.Open the multi-project workspace hello_world.uvmpw.The example project can be loaded, built and debugged in µVision by performing the following steps: In the following, the usage in Arm Keil MDK is described. These files can be used in any IDE to create the final application. Setup of the peripheral protection controller (PPC).Ĭonfiguration of the secure attribution unit (SAU) and the NVIC interrupt assignment. Setup of the memory protection controller (MPC). Header file that contains the memory region definitions, for example for the linker scatter file.Įxample scatter file for the non-secure zone (currently not used in MDK).Įxample scatter file for the secure zone (currently not used in MDK). This creates the following files in the ftl_gen directory: Template File To generate the output, click on the Generate button in the Zone Editor tool bar. Peripherals, such as the system and IO configuration, as well as an UART are available in the secure world only. The zones use different Flash and SRAM regions for code and data, but share Flash configuration registers. Selected various memory regions and peripherals for using in the different zones:.Created the memory regions CODE_NS, Config, CODE_S, Veneer, DATA_NS, and DATA_S.Added the zones hello_world_s and hello_worls_ns.The LPC55S69.azone file of that project has the following configuration settings: Import the project "Examples\LPC55S69\Zone" into the CMSIS-Zone utility. ![]() The application itself shows how to implement calls between the secure and the non-secure part. Peripheral protection controller (PPC) and related interrupt setup.Memory protection controller (MPC) setup.A header file that contains #defines to control the various linker scatter files (and might be used in other parts of the application).It is split into a secure and non-secure part. This single processor demo application shows how to do the TrustZone Partitioning.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |