Download cubeprogdb and point the parser to that.
This commit is contained in:
parent
4a67203c86
commit
cd939ee553
5
d
5
d
@ -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
|
||||||
;;
|
;;
|
||||||
|
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user