What kind of Arduino are you using? I would not imagine that your code, with all its dynamic data structures like vectors, is going to run correctly on an mcu with only 2K ram.
What kind of Arduino are you using? I would not imagine that your code, with all its dynamic data structures like vectors, is going to run correctly on an mcu with only 2K ram.