In wireless distributed systems like sensor networks a main part of the energy budget has to be spent for the communication, data retention in memory and execution of a code update. Current research in the DIAMANT project explores the useage of innovative non-volatile memories like RRAM for embedded systems.