Freertos and LPC Microcontrollers: Richard Barry Design West, San Jose, 2013
Freertos and LPC Microcontrollers: Richard Barry Design West, San Jose, 2013
Freertos and LPC Microcontrollers: Richard Barry Design West, San Jose, 2013
Richard Barry
Design West, San Jose, 2013
Introductions
Richard Barry
Director, Real Time Engineers Ltd
Founder, the FreeRTOS project
Will it scale?
Code re-use
Testability
Code re-use
Perform control
Process data Process message
function
Send a message to
Output results
another task
Task #4
Background
processing
Perform control
Process data Process message
function
Autonomous sequential tasks,
RTOS takes care of signaling, communication and timing
Send a message to
Output results
another task
Task #4
Background
processing
Code re-use
Testability
Code re-use
RTOS
Executive
Scheduler
Deterministic
– Hard real time – “it absolutely must”
– Soft real time – “it should”
T2 preempts T3 T1 preempts T2
FreeRTOS
No Scheduler
Processor power
is everywhere ....
FreeRTOS offers lower project risks and a lower total cost of ownership
than commercial alternatives because:
It is fully supported and documented
Most people take products to market without ever contacting us, but
with the complete peace of mind that they could opt to switch to a fully
indemnified commercial license (with dedicated supports) at any time.
Yes
– Moderated open source
– Proprietary code remains proprietary
FreeRTOS Source
Interrupt
Scheduler
Task
Idle Task
Interrupt
Scheduler
Task
Idle Task
RTOS Training
Expert instructor led RTOS training to
maximise productivity – delivered
Your Product Here?
online or on site
for( ;; )
{
/* Wait for the next cycle. */
vTaskDelayUntil( &xLastWakeTime, xFrequency );
vPeriodicProcessingDoneHere();
}
}
vTaskStartScheduler();
Core Library
Board layer
Chip layer emWin FreeRTOS
LwIP LPCUSBlib
IP layer SWIM
LPCOpen Platform
LPCUSBlib LwIP Peripheral emWin OS
examples examples examples examples examples
TAKING IT FURTHER