bool MemoryManagerV3::uploadFunclet(FuncletCode::Type type) { const FuncletCode& funclet = parent->getFunclet(type); const uint8_t* code = (uint8_t*)funclet.code(); const size_t count = funclet.codeSize(); vector<uint32_t> tmp(code, code + count); // copy funclet into vector MemoryArea* ram = this->getMemoryArea("system", 0); return ram && ram->write(0, &tmp[0], count) && ram->sync(); }