Freertos and LPC1549

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Freertos and LPC1549

980 Views
ronkreymborg
Contributor I

I am using MCUXpresso 11 and FreeRTOS 8. I have ported the CORTEX_MPU_LPC1768 demo from the FreeRTOS 8 distro to an LPC1549 (OM13056). Apart fro linking it now compiles. Despite much searching, I cannot find how to add the necessary region names to the linker. The different names such as FLASH against could be MFlash256 could be edited, but how to add the FreeRTOS region names such as those below?

Ron Kreymborg

/* Variables used by FreeRTOS-MPU. */
_Privileged_Functions_Region_Size = 16K;
_Privileged_Data_Region_Size = 256;

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

__privileged_functions_start__ = ORIGIN( FLASH );
__privileged_functions_end__ = __privileged_functions_start__ + _Privileged_Functions_Region_Size;

__SRAM_segment_start__ = ORIGIN( SRAM );
__SRAM_segment_end__ = __SRAM_segment_start__ + LENGTH( SRAM );

__privileged_data_start__ = ORIGIN( SRAM );
__privileged_data_end__ = ORIGIN( SRAM ) + _Privileged_Data_Region_Size;

0 Kudos
5 Replies

979 Views
ronkreymborg
Contributor I

I forgot to mention the intent of this project is to use the M3 MPU.

Ron

 

0 Kudos

967 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

You can rename region or add/remove a region here in project properties, MCU settings.

ZhangJennie_0-1629690003858.png

 

Have a nice day,

Jun Zhang

 

0 Kudos

961 Views
ronkreymborg
Contributor I

Thankyou for that. But where do I define regions, such as:

__priviledged_functions_start__

Ron

 

0 Kudos

950 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

There is no direct IDE setting for this configuration. However you should be able to reconfigure the linker scripts generated by the IDE by making use of Freemarker linker script templates - as described in chapter 17, "Memory Configuration and Linker Scripts", of the MCUXpresso IDE v11 User Guide (in particularly sections 17.14 and 17.15).

Have a nice day

Jun Zhang

0 Kudos

906 Views
ronkreymborg
Contributor I

Thanks. I'll go learn about Freemarker.

0 Kudos