diff options
| author | Alex Evans <715855+mmalex@users.noreply.github.com> | 2023-07-25 20:56:28 +0100 |
|---|---|---|
| committer | Alex Evans <715855+mmalex@users.noreply.github.com> | 2023-07-25 20:56:28 +0100 |
| commit | 46a14bb12136bba0b98423edd41b4139fe806325 (patch) | |
| tree | bc96623a04a5c132168ea37cf10f1ba3756e94e1 /binmaker.py | |
| parent | 049da6bcbc4ce97169308f78684f9339fc4b7ac2 (diff) | |
| download | plinky-46a14bb12136bba0b98423edd41b4139fe806325.tar.gz | |
fix build process to use binmaker.py that calls uf2conv and also commit a built version...
Diffstat (limited to 'binmaker.py')
| -rw-r--r-- | binmaker.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/binmaker.py b/binmaker.py index 4e3b6e2..ee98fa9 100644 --- a/binmaker.py +++ b/binmaker.py @@ -35,6 +35,19 @@ def main(): except IOError as e: print(f"Failed to write file: {e}") exit(2) + fname = f"plink{ver1}{ver2}{ver3}.uf2" + print(f'outputting {fname}...') + # python ../../uf2conv.py -o ${ProjName}.uf2 -c -f STM32L4 ${ProjName}.hex + class DotAccessibleObject: + def __getattr__(self, key): return False + uf2args = DotAccessibleObject() + uf2args.output=fname + uf2args.convert=True + uf2args.family='STM32L4' + uf2args.input='sw/Release/plinkyblack.hex' + uf2args.base='0x2000' + import uf2conv + uf2conv.uf2conv(uf2args) if __name__ == "__main__": |
