Download cubeprogdb and point the parser to that.

This commit is contained in:
Bob McWhirter 2021-08-02 11:05:50 -04:00
parent 4a67203c86
commit cd939ee553
2 changed files with 7 additions and 2 deletions

5
d
View File

@ -18,6 +18,7 @@ case "$CMD" in
./d download-svd ./d download-svd
./d download-headers ./d download-headers
./d download-cubedb ./d download-cubedb
./d download-cubeprogdb
;; ;;
download-mcufinder) download-mcufinder)
mkdir -p sources/mcufinder mkdir -p sources/mcufinder
@ -53,6 +54,10 @@ case "$CMD" in
rm -rf sources/cubedb rm -rf sources/cubedb
git clone --depth 1 https://github.com/embassy-rs/stm32cube-database.git sources/cubedb git clone --depth 1 https://github.com/embassy-rs/stm32cube-database.git sources/cubedb
;; ;;
download-cubeprogdb)
rm -rf sources/cubeprogdb
git clone --depth 1 https://github.com/embassy-rs/stm32cubeprog-database.git sources/cubeprogdb
;;
install-chiptool) install-chiptool)
cargo install --git https://github.com/embassy-rs/chiptool cargo install --git https://github.com/embassy-rs/chiptool
;; ;;

View File

@ -113,11 +113,11 @@ def parse_files(dir):
memories.append( chunk ) memories.append( chunk )
dir = sys.argv[1] dir = "sources/cubeprogdb/db"
parse_files(dir) parse_files(dir)
with open('data/memories.yaml', 'w') as f: with open('data/memories.yaml', 'w') as f:
f.write(yaml.dump(memories, width=500)) f.write(yaml.dump(memories, width=500))
#print(yaml.dump(memories, width=500)) #print(yaml.dump(memories, width=500))