rat-dev with SOC processor code (almost) ready for pull request