Use flashrom tool and Arduino Leonardo to program flash