diff --git a/panda/tests/test_build.py b/panda/tests/test_build.py new file mode 100644 index 0000000000..5584ba866d --- /dev/null +++ b/panda/tests/test_build.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python3 +import os +import shutil +import struct +import sys +import subprocess +import tempfile +import unittest + +ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__), "..")) +# RM0468 4.5.1: FLASH_CR and FLASH_OPTCR only unlock with these keys +FLASH_KEYS = (0x45670123, 0xCDEF89AB) +OPT_KEYS = (0x08192A3B, 0x4C5D6E7F) + + +def word(w): + return struct.pack("