MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / set_programming_data

Method set_programming_data

test/tests/test_msd.py:103–116  ·  view source on GitHub ↗

Set data to program over mass storage Data should be the conetents of the hex or binary file being loaded. This option cannot be used with set_shutils_copy.

(self, data, file_name)

Source from the content-addressed store, hash-verified

101 self._load_with_shutils = True
102
103 def set_programming_data(self, data, file_name):
104 """
105 Set data to program over mass storage
106
107 Data should be the conetents of the hex or binary file
108 being loaded. This option cannot be used with set_shutils_copy.
109 """
110 assert type(data) is bytearray
111 assert type(file_name) is str
112 assert(self._load_with_shutils is False or
113 self._load_with_shutils is None)
114 self._load_with_shutils = False
115 self._programming_data = data
116 self._programming_file_name = file_name
117
118 def set_flush_size(self, size):
119 """Set the block size to simulate a flush of"""

Callers 2

test_mass_storageFunction · 0.95
test_file_typeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected