Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adbc27f

Browse files
authored
Fix build failure in STM32 Discovery MPU Projects (FreeRTOS#449)
* Fix build failure in STM32 Discovery MPU Projects Privileged data region size needs to be increased because heap is now placed in this region. Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent d668f3c commit adbc27f

File tree

11 files changed

+27
-35
lines changed

11 files changed

+27
-35
lines changed

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Config/FreeRTOSConfig.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

28-
2927
#ifndef FREERTOS_CONFIG_H
3028
#define FREERTOS_CONFIG_H
3129

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Demo/app_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
26+
2727
/* Scheduler includes. */
2828
#include "FreeRTOS.h"
2929
#include "task.h"

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Demo/app_main.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

2827
#ifndef __APP_MAIN_H__

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Demo/mpu_demo.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

2827
/* FreeRTOS includes. */

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Demo/mpu_demo.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

2827
#ifndef __MPU_DEMO_H__

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Projects/GCC/STM32L475VGTX_FLASH.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ MEMORY
6868
}
6969

7070
/* Initial 32K Flash is used to store kernel functions and
71-
* initial 512 bytes of RAM is used to store kernel data. */
71+
* initial 32K RAM is used to store kernel data. */
7272
__privileged_functions_region_size__ = 32K;
73-
__privileged_data_region_size__ = 512;
73+
__privileged_data_region_size__ = 32K;
7474

7575
__FLASH_segment_start__ = ORIGIN( FLASH );
7676
__FLASH_segment_end__ = __FLASH_segment_start__ + LENGTH( FLASH );

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Projects/GCC/Startup/memfault_handler.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

2827
/**

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Projects/IAR/memfault_handler.s

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121
*
22-
* http://www.FreeRTOS.org
23-
* http://aws.amazon.com/freertos
22+
* https://www.FreeRTOS.org
23+
* https://github.com/FreeRTOS
2424
*
25-
* 1 tab == 4 spaces!
2625
*/
2726

2827
EXTERN vHandleMemoryFault

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Projects/IAR/stm32l475xx_flash.icf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ define symbol __reigon_ROM_unprivileged_end__ = __ICFEDIT_region_ROM_end__;
3838
/* RAM Organization
3939
* 1. Privileged Data:
4040
* Start : 0x20000000
41-
* End : 0x200003FF
42-
* Size : 1 Kbytes
41+
* End : 0x20007FFF
42+
* Size : 32 Kbytes
4343
* 2. Unprivileged Data:
44-
* Start : 0x20000400
44+
* Start : 0x20008000
4545
* End : 0x20017FFF
46-
* Size : 95 Kbytes
46+
* Size : 64 Kbytes
4747
*/
4848
define symbol __region_RAM_privileged_start__ = __ICFEDIT_region_RAM_start__;
49-
define symbol __region_RAM_privileged_end__ = 0x200003FF;
50-
define symbol __region_RAM_unprivileged_start__ = 0x20000400;
49+
define symbol __region_RAM_privileged_end__ = 0x20007FFF;
50+
define symbol __region_RAM_unprivileged_start__ = 0x20008000;
5151
define symbol __region_RAM_unprivileged_end__ = __ICFEDIT_region_RAM_end__;
5252
define symbol __region_SRAM2_start__ = 0x10000000;
5353
define symbol __region_SRAM2_end__ = 0x10007FFF;

FreeRTOS/Demo/CORTEX_MPU_STM32L4_Discovery_GCC_IAR_Keil/Projects/Keil/MPUDemo.sct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ LR_APP 0x08000000 0x100000 ; load region size_region
3838
*(privileged_data)
3939
}
4040

41-
RW_IRAM_UNPRIVILEGED 0x20000400
41+
RW_IRAM_UNPRIVILEGED 0x20008000
4242
{
4343
.ANY (+RW +ZI)
4444
}

0 commit comments

Comments
 (0)