This paper introduces the process of porting an open source real time operating system μC/OS-II to the ARM processor STM32F103ZET6. Several basic concepts of the Cortex-M3 and how to optimize the stack of task are briefly introduced. By creating some simple tasks, the grafting process is proved to be successful and the system running on STM32F103ZET6 is proved to be feasible and stable.