You would need to disable the watchdog - I believe this is what is causing the reboot - I think you can only do that in R&D mode?