diff --git a/utility.cpp b/utility.cpp index 7999e46a9..ca7e45feb 100755 --- a/utility.cpp +++ b/utility.cpp @@ -1427,7 +1427,7 @@ bool Utility::createCompressedConfigC(ConfigParams *params, QString configName, outSource << "// This file is autogenerated by VESC Tool\n\n"; outSource << "#include \"" << headerInfo.fileName() << "\"\n\n"; - outSource << "uint8_t data_" << configNameStr << "[" << compressed.size() << "] = {\n\t"; + outSource << "__attribute__((used)) uint8_t data_" << configNameStr << "[" << compressed.size() << "] = {\n\t"; int posCnt = 0; for (auto b: compressed) {