Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

How does LM3S8962 MPU work with FreeRTOS 7.01

Posted by Victor Zhang on August 18, 2011
Environment: EK-LM3s8962 Eval Kit.
Code sourcery G++ Lite
RTOS Version : 7.0.1

The demo works perfect on the board.
But when I'm changing the ARM_CM3/port.c to ARM_CM3_MPU/port.c , there happens to be a lot of errors like:
“../../../Source/portable/GCC/ARM_CM3_MPU/port.c:206:17: error: conflicting types for 'pxPortInitialiseStack'
...
...


So which other files do I have to modify if I want to use the MPU of LM3s8962?

Memory Protection Unit (MPU)
The Memory Protection Unit (MPU) is included on the LM3S8962 controller and supports the standard
ARMv7 Protected Memory System Architecture (PMSA) model. The MPU provides full support for
protection regions, overlapping protection regions, access permissions, and exporting memory
attributes to the system.


Do I look into ARM7TDMI code?

Many Thanks.

RE: How does LM3S8962 MPU work with FreeRTOS 7.01

Posted by Richard on August 18, 2011
Think of FreeRTOS and FreeRTOS-MPU as being two different ports to the Cortex-M3. The MPU version requires different configuration, and uses a different API (especially for functions that create tasks, as MPU regions have to be set up for the task). I would recommend starting with one of the existing MPU demo applications, looking at which files are included and how it is configured, hopefully compile and run it (if possible), and then adapting that to your target platform - rather than starting with a non-MPU version and trying to update it to be an MPU version. The demo located in the FreeRTOS/Demo/CORTEX_MPU_LM3Sxxxx_Rowley directory would seem to be a good starting point (built with Rowley CrossWorks). I just tried building it, although not running it, and it built fine. main() generated some warnings where variables are set but not used, but these are in the fault handler and are set for inspection in the debugger.

More information, if you have not already seen it, can be found here:
http://www.freertos.org/FreeRTOS-MPU-memory-protection-unit.html

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists