AT91SAM7X256 Board and FreeRTOS Overview Real-Time Systems Lab Dae Don Jeon
내 용 AT91SAM7X256 Board Overview FreeRTOS Overview Gateway Middleware Network Initializing and Update
System Boundary
Hardware Block Diagram(AT91SAM7X256) USBEthernet UART
FreeRTOS Overview Main Features Choice of RTOS scheduling policy Pre-emptive : Always runs the highest available task. Tasks of identical priority share CPU time (fully pre-emptive with round robin time slicing). Cooperative : Context switches only occur if a task blocks, or explicitly calls taskYIELD(). Co-routines (light weight tasks that utilize very little RAM). Message queues Semaphores [ via macros ] Trace visualization ability (requires more RAM) Majority of source code common to all supported development tools Wide range of ports and examples
FreeRTOS Overview (cont’) Basic directory structure Demo : Contains the demo application. Source : Contains the real time kernel source code. ※ The Majority of the real time kernel code in three files that are common to every processor architecture.(tasks.c, queue.c list.c) (croutine.c if co-routines are used) Demo Common : The demo application files that are used by all the ports. Dir x : The demo application build files for port x Dir y : The demo application build files for port y Source Portable : Processor specific code.
FreeRTOS Overview (cont’) Demo Application Test FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/
Gateway Middleware Network Initializing
… Start Standalone Network Starting #Gateway node-1 [ ] ’ s Sync list tables 1
Gateway Middleware Network Initializing … Network Joining #Gateway node-2 [ ] ’ s Sync list tables … Join to [ ] ’ s Sync list tables Join Request 12
Gateway Middleware Network Initializing … Network Joining #Gateway node-2 [ ] ’ s Sync list tables … Join Accept [ ] ’ s Sync list tables 12
Gateway Middleware Network Initializing … Sync Request [ ] ’ s Sync list tables … [ ] ’ s Sync list tables Join Response : Sync list tables 12
Gateway Middleware Network Initializing … Sync Request [ ] ’ s Sync list tables … Sync Request to All Gateway node in Sync list table. (Except Parent and Local address) In this case, no target to sync. [ ] ’ s Sync list tables 12
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 2 OR 1 Join Request Join to
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 Join Accept
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 Join Response : Sync list tables
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 Sync Request to All Gateway node in Sync list table. (Except Parent and Local address) In this case, Except parent Gateway( ), local( ) Sync target is
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 Update Request : Sync list tables
Gateway Middleware Network Initializing … Network Joining #Gateway node-3 [ ] ’ s Sync list tables … [ ] ’ s Sync list tables … [ ] ’ s Sync list tables 3 Initializing Complete.
Further works FreeRTOS Ethernet and UART application Test. ZigBee Coordinator Node Application Test.