/*-----------------------------------------------------------*/\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
+ * 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
/* Non-Secure main. */\r
int main( void )\r
- The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for both the secure project, and non secure project.\r
- Set the FreeRTOSDemo_s project as Active - Right click on "Project: FreeRTOSDemo_s" and select "Set as Active Project".\r
- Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing F7.\r
- - Set the FreeRTOSDemo_ns project as Active – Right click on "Project: FreeRTOSDemo_ns" and select "Set as Active Project".\r
+ - Set the FreeRTOSDemo_ns project as Active - Right click on "Project: FreeRTOSDemo_ns" and select "Set as Active Project".\r
- Build the FreeRTOSDemo_ns project using "Project --> Build" or by pressing "F7".\r
- Start Debug Session using "Debug -> Start/Stop Debug Session" or by pressing "Ctrl+F5".\r
\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
+ * 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
/* Normal assert() semantics without relying on the provision of an assert.h\r
header file. */\r
-#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
+#define configASSERT( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); }\r
\r
/* LED not used at present, so just increment a variable to keep a count of the\r
number of times the LED would otherwise have been toggled. */\r
\r
/* Normal assert() semantics without relying on the provision of an assert.h\r
header file. */\r
-#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
+#define configASSERT( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); }\r
\r
/* LED not used at present, so just increment a variable to keep a count of the\r
number of times the LED would otherwise have been toggled. */\r
\r
/* Variables used by FreeRTOS-MPU. */\r
_Privileged_Functions_Region_Size = 32K;\r
-_Privileged_Data_Region_Size = 2048;\r
+_Privileged_Data_Region_Size = 4096;\r
\r
__FLASH_segment_start__ = ORIGIN( ROM );\r
__FLASH_segment_end__ = __FLASH_segment_start__ + LENGTH( ROM );\r
RW_IRAM1 0x20000000 { ; RW data\r
*( privileged_data )\r
}\r
- RW_IRAM2 0x20000800 { ; RW data\r
+ RW_IRAM2 0x20001000 { ; RW data\r
.ANY (+RW +ZI)\r
}\r
}\r
If your Cortex-M33 application uses TrustZone then use the files from the\r
FreeRTOS/Source/portable/[compiler]/ARM_CM33 directories.\r
\r
-If you Cortex-M33 application is not going to use TrustZone then use the files\r
-from the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
+If you Cortex-M33 application does not use TrustZone then use the files from\r
+the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
def copy_files_in_dir(src_abs_path, dst_abs_path):\r
for src_file in os.listdir(src_abs_path):\r
src_file_abs_path = os.path.join(src_abs_path, src_file)\r
- if os.path.isfile(src_file_abs_path):\r
+ if os.path.isfile(src_file_abs_path) and src_file != 'ReadMe.txt':\r
if not os.path.exists(dst_abs_path):\r
os.makedirs(dst_abs_path)\r
print('Copying {}...'.format(os.path.basename(src_file_abs_path)))\r
If your Cortex-M33 application uses TrustZone then use the files from the\r
FreeRTOS/Source/portable/[compiler]/ARM_CM33 directories.\r
\r
-If you Cortex-M33 application is not going to use TrustZone then use the files\r
-from the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
+If you Cortex-M33 application does not use TrustZone then use the files from\r
+the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
+\r
* configRUN_FREERTOS_SECURE_ONLY = 0 and configENABLE_TRUSTZONE = 0\r
*/\r
#if( ( configRUN_FREERTOS_SECURE_ONLY == 1 ) && ( configENABLE_TRUSTZONE == 1 ) )\r
- #error Trust Zone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
+ #error TrustZone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
If your Cortex-M33 application uses TrustZone then use the files from the\r
FreeRTOS/Source/portable/[compiler]/ARM_CM33 directories.\r
\r
-If you Cortex-M33 application is not going to use TrustZone then use the files\r
-from the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
+If you Cortex-M33 application does not use TrustZone then use the files from\r
+the FreeRTOS/Source/portable/[compiler]/ARM_CM33_NTZ directories.\r
* configRUN_FREERTOS_SECURE_ONLY = 0 and configENABLE_TRUSTZONE = 0\r
*/\r
#if( ( configRUN_FREERTOS_SECURE_ONLY == 1 ) && ( configENABLE_TRUSTZONE == 1 ) )\r
- #error Trust Zone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
+ #error TrustZone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
* configRUN_FREERTOS_SECURE_ONLY = 0 and configENABLE_TRUSTZONE = 0\r
*/\r
#if( ( configRUN_FREERTOS_SECURE_ONLY == 1 ) && ( configENABLE_TRUSTZONE == 1 ) )\r
- #error Trust Zone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
+ #error TrustZone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
#ifndef configENABLE_TRUSTZONE\r
#error configENABLE_TRUSTZONE must be defined in FreeRTOSConfig.h. Set configENABLE_TRUSTZONE to 1 to enable TrustZone or 0 to disable TrustZone.\r
#endif /* configENABLE_TRUSTZONE */\r
+\r
/*-----------------------------------------------------------*/\r
\r
/**\r
* configRUN_FREERTOS_SECURE_ONLY = 0 and configENABLE_TRUSTZONE = 0\r
*/\r
#if( ( configRUN_FREERTOS_SECURE_ONLY == 1 ) && ( configENABLE_TRUSTZONE == 1 ) )\r
- #error Trust Zone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
+ #error TrustZone needs to be disabled in order to run FreeRTOS on the Secure Side.\r
#endif\r
/*-----------------------------------------------------------*/\r
\r
#ifndef configENABLE_TRUSTZONE\r
#error configENABLE_TRUSTZONE must be defined in FreeRTOSConfig.h. Set configENABLE_TRUSTZONE to 1 to enable TrustZone or 0 to disable TrustZone.\r
#endif /* configENABLE_TRUSTZONE */\r
+\r
/*-----------------------------------------------------------*/\r
\r
/**\r