Comparative Study of Safety Critical Systems using MPU & Non-MPU model of FreeRTOS+IO
Table of Contents
Introduction .................................................................................................................................................5
System Requirements .................................................................................................................................6
Hardware Requirements ............................................................................................................................6
Software Requirements .............................................................................................................................6
Hardware/Software characteristics ...........................................................................................................7
Linux Computer ........................................................................................................................................7
NGX-LPC1769-Xplorer board (Cortex M3 Platform) .............................................................................7
Miscellaneous ...........................................................................................................................................9
LPC-Xpresso IDE .....................................................................................................................................9
Memory Protection .....................................................................................................................................9
The basic question is why to set up MPU???? ........................................................................................10
What’s so great about this set-up??.........................................................................................................11
MPU PORTING ........................................................................................................................................11
Task performed by us ..............................................................................................................................11
Default Memory Map Cortex M3 ...........................................................................................................12
MPU Divided Memory MAP ..................................................................................................................12
MPU Setup Steps Followed ......................................................................................................................13
MPU Setup used by FreeRTOS ...............................................................................................................14
Our MPU Configuration .........................................................................................................................15
FreeRTOS+IO Framework ......................................................................................................................16
Modes of Operation: ...............................................................................................................................16
Polling .................................................................................................................................................16
Interrupt driven Circular Buffer ..........................................................................................................16
Interrupt driven Zero Copy .................................................................................................................16
Interrupt driven character queue .........................................................................................................16
FreeRTOS+IO+LPCOpen Framework ..................................................................................................17
Universal asynchronous receiver/transmitter ..........................................................................................17
LPC1769 PIN Configuration....................................................................................................................18
Pin function select register0 ....................................................................................................................18
Pin function select register 1 ...................................................................................................................18
I2C Pin Configuration register ................................................................................................................19
UARTn Interrupt Enable Register ..........................................................................................................19
UART0/2/3 Register Map .......................................................................................................................20
I²C BUS...................................................................................................................................................21
Case Study .................................................................................................................................................22
References ..................................................................................................................................................24
PG-DESD CDAC, ACTS PUNE