Copy RTS from demo-cortex-m3.