Skip to content

Commit 12f26f2

Browse files
authored
Merge pull request #29 from toniebox-reverse-engineering/develop
Develop
2 parents e5c008b + 48d334e commit 12f26f2

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CC3200 Tool v1.2.3
1+
# CC3200 Tool v1.2.4
22

33
A small tool to read and write files in TI's CC3200 SimpleLink (TM) filesystem.
44
Partial support for the CC32XX (CC3230/CC3235) series (via flash image)

cc3200tool/cc.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,22 @@ def __call__(self, string):
331331
"--no-verify", type=bool, default=False,
332332
help="do not perform a read of the written data to verify")
333333

334+
parser_dll_data_test = subparsers.add_parser(
335+
"dll_data_test",
336+
help="Tests the dll_data function")
337+
334338
def dll_data(fname):
335-
return get_data('cc3200tool', os.path.join('dll', fname))
339+
data = None
340+
path = os.path.join(os.path.dirname(__file__), os.path.join('dll', fname))
341+
if os.path.exists(path):
342+
log.info("Reading %s from file %s" % (fname, path))
343+
data = open(path, 'rb').read()
344+
if data is None:
345+
log.info("Reading %s from package" % fname)
346+
data = get_data('cc3200tool', os.path.join('dll', fname))
347+
if data is None:
348+
raise CC3200Error("could not find dll file %s" % fname)
349+
return data
336350

337351

338352
class CC3200Error(Exception):
@@ -1572,6 +1586,9 @@ def main():
15721586
cc.copy_input_file_to_output_file()
15731587
cc.write_all_files(command.local_dir, command.simulate, use_api, command.no_verify)
15741588
check_fat = True
1589+
1590+
if command.cmd == "dll_data_test":
1591+
dll_data('rbtl3100s.dll')
15751592

15761593

15771594
if check_fat:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="cc3200tool",
5-
version="1.2.3",
5+
version="1.2.4",
66
description="A tool to down-/upload files form/to TI CC3200",
77
author="Kiril Zyapkov, 0xbadbee",
88
author_email="k.zyapkov@allterco.com",

0 commit comments

Comments
 (0)