diff options
| -rw-r--r-- | binmaker.py | 18 | ||||
| -rw-r--r-- | boot0A7.uf2 | bin | 0 -> 131072 bytes | |||
| -rw-r--r-- | plink0A7.bin | bin | 0 -> 1048576 bytes | |||
| -rw-r--r-- | plink0A7.uf2 | bin | 0 -> 876032 bytes | |||
| -rwxr-xr-x | sw/Core/Src/config.h | 4 |
5 files changed, 21 insertions, 1 deletions
diff --git a/binmaker.py b/binmaker.py index ee98fa9..c48e572 100644 --- a/binmaker.py +++ b/binmaker.py @@ -49,6 +49,24 @@ def main(): import uf2conv uf2conv.uf2conv(uf2args) + # read 'bootloader/Release/plinkybl.bin', pad to 64k, and write it back + try: + with open("bootloader/Release/plinkybl.bin", "rb") as f1: + bl_content = f1.read() + if len(bl_content) < 65536: + bl_content += b'\xff' * (65536 - len(bl_content)) + with open("bootloader/Release/plinkybl.bin", "wb") as f1: + f1.write(bl_content) + print('padded bootloader to 64k') + except IOError as e: + print(f"Failed to open file: {e}") + exit(2) + uf2args.input='bootloader/Release/plinkybl.bin' + uf2args.base='0x20008000' + uf2args.output=f"boot{ver1}{ver2}{ver3}.uf2" + uf2conv.uf2conv(uf2args) + + if __name__ == "__main__": main() diff --git a/boot0A7.uf2 b/boot0A7.uf2 Binary files differnew file mode 100644 index 0000000..8c8e9a2 --- /dev/null +++ b/boot0A7.uf2 diff --git a/plink0A7.bin b/plink0A7.bin Binary files differnew file mode 100644 index 0000000..663936b --- /dev/null +++ b/plink0A7.bin diff --git a/plink0A7.uf2 b/plink0A7.uf2 Binary files differnew file mode 100644 index 0000000..5658227 --- /dev/null +++ b/plink0A7.uf2 diff --git a/sw/Core/Src/config.h b/sw/Core/Src/config.h index f86471f..387382c 100755 --- a/sw/Core/Src/config.h +++ b/sw/Core/Src/config.h @@ -56,4 +56,6 @@ // 0.A4 - Disabled MERGE_PLAYBACK in touch.h. DISABLE_AUTOSAVE flag enables Demo Mode - changes are not written to flash. Disables ProgramPage() in params.h // 0.A5 - Encoder fix // 0.A6 - Set Channels for MIDI in and out (unused pad) -#define VERSION2 "v0.A6" +// 0.A7 - Bootloader work to make it work on MacOSX +#define VERSION2 "v0.A7" + |
