]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_MPU_M33F_Simulator_Keil_GCC/Secure/main_s.c
Add instructions on building the Cortex-M33 secure and non secure projects into the...
[freertos] / FreeRTOS / Demo / CORTEX_MPU_M33F_Simulator_Keil_GCC / Secure / main_s.c
index b3e6c56760f0f9eb153adde3272dbdd9dc2a6683..72b81131c9c6228ca82a8462aad06f3e025ad1f2 100644 (file)
@@ -44,6 +44,36 @@ typedef void ( *NonSecureResetHandler_t )    ( void ) __attribute__( ( cmse_nonsecu
 void BootNonSecure( uint32_t ulNonSecureStartAddress );\r
 /*-----------------------------------------------------------*/\r
 \r
+/*\r
+       Instructions to Build and Run:\r
+        - The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for\r
+          both the secure project, and non secure project.\r
+        - Set the FreeRTOSDemo_s project as Active - Right click on\r
+          "Project: FreeRTOSDemo_s" and select "Set as Active Project".\r
+        - Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing\r
+          F7.\r
+        - Set the FreeRTOSDemo_ns project as Active – Right click on\r
+          "Project: FreeRTOSDemo_ns" and select "Set as Active Project".\r
+        - Build the FreeRTOSDemo_ns project using "Project --> Build" or by\r
+          pressing "F7".\r
+        - Start Debug Session using "Debug -> Start/Stop Debug Session" or by\r
+          pressing "Ctrl+F5".\r
+*/\r
+\r
+/* Secure main() */\r
+int main( void )\r
+{\r
+       /* Boot the non-secure code. */\r
+       BootNonSecure( mainNONSECURE_APP_START_ADDRESS );\r
+\r
+       /* Non-secure software does not return, this code is not executed. */\r
+       for( ; ; )\r
+       {\r
+               /* Should not reach here. */\r
+       }\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
 void BootNonSecure( uint32_t ulNonSecureStartAddress )\r
 {\r
        NonSecureResetHandler_t pxNonSecureResetHandler;\r
@@ -64,16 +94,3 @@ void BootNonSecure( uint32_t ulNonSecureStartAddress )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-/* Secure main() */\r
-int main( void )\r
-{\r
-       /* Boot the non-secure code. */\r
-       BootNonSecure( mainNONSECURE_APP_START_ADDRESS );\r
-\r
-       /* Non-secure software does not return, this code is not executed. */\r
-       for( ; ; )\r
-       {\r
-               /* Should not reach here. */\r
-       }\r
-}\r
-/*-----------------------------------------------------------*/\r