Fix Build and Links failure in MPU projects. Minor cosmetic changes in some V8M files.

This commit is contained in:
Gaurav Aggarwal 2019-02-20 20:27:07 +00:00
parent 8b6ab5f197
commit 5623c69748
17 changed files with 47 additions and 44 deletions

View file

@ -66,20 +66,20 @@ static void prvCreateTasks( void );
/*-----------------------------------------------------------*/
/*
Instructions to Build and Run:
- The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for
both the secure project, and non secure project.
- Set the FreeRTOSDemo_s project as Active - Right click on
"Project: FreeRTOSDemo_s" and select "Set as Active Project".
- Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing
F7.
- Set the FreeRTOSDemo_ns project as Active Right click on
"Project: FreeRTOSDemo_ns" and select "Set as Active Project".
- Build the FreeRTOSDemo_ns project using "Project --> Build" or by
pressing "F7".
- Start Debug Session using "Debug -> Start/Stop Debug Session" or by
pressing "Ctrl+F5".
*/
* Instructions to Build and Run:
* - The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for
* both the secure project, and non secure project.
* - Set the FreeRTOSDemo_s project as Active - Right click on
* "Project: FreeRTOSDemo_s" and select "Set as Active Project".
* - Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing
* "F7".
* - Set the FreeRTOSDemo_ns project as Active - Right click on
* "Project: FreeRTOSDemo_ns" and select "Set as Active Project".
* - Build the FreeRTOSDemo_ns project using "Project --> Build" or by
* pressing "F7".
* - Start Debug Session using "Debug -> Start/Stop Debug Session" or by
* pressing "Ctrl+F5".
*/
/* Non-Secure main. */
int main( void )

View file

@ -2,7 +2,7 @@ Instructions to Build and Run:
- The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for both the secure project, and non secure project.
- Set the FreeRTOSDemo_s project as Active - Right click on "Project: FreeRTOSDemo_s" and select "Set as Active Project".
- Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing F7.
- Set the FreeRTOSDemo_ns project as Active Right click on "Project: FreeRTOSDemo_ns" and select "Set as Active Project".
- Set the FreeRTOSDemo_ns project as Active - Right click on "Project: FreeRTOSDemo_ns" and select "Set as Active Project".
- Build the FreeRTOSDemo_ns project using "Project --> Build" or by pressing "F7".
- Start Debug Session using "Debug -> Start/Stop Debug Session" or by pressing "Ctrl+F5".

View file

@ -45,20 +45,20 @@ void BootNonSecure( uint32_t ulNonSecureStartAddress );
/*-----------------------------------------------------------*/
/*
Instructions to Build and Run:
- The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for
both the secure project, and non secure project.
- Set the FreeRTOSDemo_s project as Active - Right click on
"Project: FreeRTOSDemo_s" and select "Set as Active Project".
- Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing
F7.
- Set the FreeRTOSDemo_ns project as Active Right click on
"Project: FreeRTOSDemo_ns" and select "Set as Active Project".
- Build the FreeRTOSDemo_ns project using "Project --> Build" or by
pressing "F7".
- Start Debug Session using "Debug -> Start/Stop Debug Session" or by
pressing "Ctrl+F5".
*/
* Instructions to Build and Run:
* - The Keil multi-project workspace FreeRTOSDemo.uvmpw contains projects for
* both the secure project, and non secure project.
* - Set the FreeRTOSDemo_s project as Active - Right click on
* "Project: FreeRTOSDemo_s" and select "Set as Active Project".
* - Build the FreeRTOSDemo_s project using "Project --> Build" or by pressing
* "F7".
* - Set the FreeRTOSDemo_ns project as Active - Right click on
* "Project: FreeRTOSDemo_ns" and select "Set as Active Project".
* - Build the FreeRTOSDemo_ns project using "Project --> Build" or by
* pressing "F7".
* - Start Debug Session using "Debug -> Start/Stop Debug Session" or by
* pressing "Ctrl+F5".
*/
/* Secure main() */
int main( void )

View file

@ -150,7 +150,7 @@ standard names. */
/* Normal assert() semantics without relying on the provision of an assert.h
header file. */
#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
#define configASSERT( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); }
/* LED not used at present, so just increment a variable to keep a count of the
number of times the LED would otherwise have been toggled. */

View file

@ -152,7 +152,7 @@ standard names. */
/* Normal assert() semantics without relying on the provision of an assert.h
header file. */
#define configASSERT( x ) if( ( x ) == 0UL ) { taskDISABLE_INTERRUPTS(); for( ;; ); }
#define configASSERT( x ) if( ( x ) == 0UL ) { portDISABLE_INTERRUPTS(); for( ;; ); }
/* LED not used at present, so just increment a variable to keep a count of the
number of times the LED would otherwise have been toggled. */

View file

@ -7,7 +7,7 @@ MEMORY
/* Variables used by FreeRTOS-MPU. */
_Privileged_Functions_Region_Size = 32K;
_Privileged_Data_Region_Size = 2048;
_Privileged_Data_Region_Size = 4096;
__FLASH_segment_start__ = ORIGIN( ROM );
__FLASH_segment_end__ = __FLASH_segment_start__ + LENGTH( ROM );

View file

@ -15,7 +15,7 @@ LR_IROM1 0x00000000 { ; load region size_region
RW_IRAM1 0x20000000 { ; RW data
*( privileged_data )
}
RW_IRAM2 0x20000800 { ; RW data
RW_IRAM2 0x20001000 { ; RW data
.ANY (+RW +ZI)
}
}