Home
last modified time | relevance | path

Searched refs:UF2_DATA_SIZE (Results 1 – 2 of 2) sorted by relevance

/hal_espressif-3.6.0/tools/test_mkuf2/
Dtest_mkuf2.py153 self.assertEqual(len(block.data), mkuf2.UF2Writer.UF2_DATA_SIZE)
202 self.common([(0x100, self.generate_binary(mkuf2.UF2Writer.UF2_DATA_SIZE)),
203 (0x200, self.generate_binary(mkuf2.UF2Writer.UF2_DATA_SIZE + 1)),
204 (0x300, self.generate_binary(mkuf2.UF2Writer.UF2_DATA_SIZE - 1))])
207 self.common([(0x100, self.generate_binary(3 * mkuf2.UF2Writer.UF2_DATA_SIZE)),
208 (0x200, self.generate_binary(2 * mkuf2.UF2Writer.UF2_DATA_SIZE + 1)),
209 (0x300, self.generate_binary(2 * mkuf2.UF2Writer.UF2_DATA_SIZE - 1))])
212 self.common([(0x100, self.generate_binary(20 * mkuf2.UF2Writer.UF2_DATA_SIZE + 5)),
213 (0x10000, self.generate_binary(50 * mkuf2.UF2Writer.UF2_DATA_SIZE + 100)),
214 (0x100000, self.generate_binary(100 * mkuf2.UF2Writer.UF2_DATA_SIZE))])
/hal_espressif-3.6.0/tools/
Dmkuf2.py44UF2_DATA_SIZE = 476 # max value of CHUNK_SIZE reduced by optional parts. Currently, MD5_PART only. variable in UF2Writer
54 …self.CHUNK_SIZE = self.UF2_DATA_SIZE - self.UF2_MD5_PART_SIZE if chunk_size is None else chunk_size
88 block += b'\x00' * (self.UF2_DATA_SIZE - self.UF2_MD5_PART_SIZE - len_chunk)