diff --git a/ports/minimal/frozentest.mpy b/ports/minimal/frozentest.mpy
index 87f9581bfe7290b67f473a49441fd25db204f459..7c6809bf6522f90339ec72ae0dcd16560ac5aafc 100644
Binary files a/ports/minimal/frozentest.mpy and b/ports/minimal/frozentest.mpy differ
diff --git a/py/persistentcode.c b/py/persistentcode.c
index d8b17c7e6ba564436b7eeebea61c43f0510d3c20..e0bb8f1d6544d8fd48e3e079a24ebf512e46c36f 100644
--- a/py/persistentcode.c
+++ b/py/persistentcode.c
@@ -39,7 +39,7 @@
 #include "py/smallint.h"
 
 // The current version of .mpy files
-#define MPY_VERSION (2)
+#define MPY_VERSION (3)
 
 // The feature flags byte encodes the compile-time config options that
 // affect the generate bytecode.
diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py
index ded9624878909c760a224d3f7680eca0c32b668d..5de4ecf1ccc4ba475c87369c337a02190678fdd2 100755
--- a/tools/mpy-tool.py
+++ b/tools/mpy-tool.py
@@ -57,7 +57,7 @@ class FreezeError(Exception):
         return 'error while freezing %s: %s' % (self.rawcode.source_file, self.msg)
 
 class Config:
-    MPY_VERSION = 2
+    MPY_VERSION = 3
     MICROPY_LONGINT_IMPL_NONE = 0
     MICROPY_LONGINT_IMPL_LONGLONG = 1
     MICROPY_LONGINT_IMPL_MPZ = 2