Freertos and LPC1549

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Freertos and LPC1549

998件の閲覧回数
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 件の賞賛
5 返答(返信)

997件の閲覧回数
ronkreymborg
Contributor I

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

Ron

 

0 件の賞賛

985件の閲覧回数
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 件の賞賛

979件の閲覧回数
ronkreymborg
Contributor I

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

__priviledged_functions_start__

Ron

 

0 件の賞賛

968件の閲覧回数
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 件の賞賛

924件の閲覧回数
ronkreymborg
Contributor I

Thanks. I'll go learn about Freemarker.

0 件の賞賛