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;
I forgot to mention the intent of this project is to use the M3 MPU.
Ron
Hi
You can rename region or add/remove a region here in project properties, MCU settings.
Have a nice day,
Jun Zhang
Thankyou for that. But where do I define regions, such as:
__priviledged_functions_start__
Ron
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
Thanks. I'll go learn about Freemarker.