Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/tools/test_mkuf2/
Dtest_mkuf2.py81 for chunk in iter(partial(f.read, mkuf2.UF2Writer.UF2_BLOCK_SIZE), b''):
135 flags = mkuf2.UF2Writer.UF2_FLAG_FAMILYID_PRESENT | mkuf2.UF2Writer.UF2_FLAG_MD5_PRESENT
148 self.assertEqual(len(block), mkuf2.UF2Writer.UF2_BLOCK_SIZE)
149 self.assertEqual(block.magicStart0, mkuf2.UF2Writer.UF2_FIRST_MAGIC)
150 self.assertEqual(block.magicStart1, mkuf2.UF2Writer.UF2_SECOND_MAGIC)
153 self.assertEqual(len(block.data), mkuf2.UF2Writer.UF2_DATA_SIZE)
156 … md5_part = block.data[block.payloadSize:block.payloadSize + mkuf2.UF2Writer.UF2_MD5_PART_SIZE]
164 self.assertEqual(block.magicEnd, mkuf2.UF2Writer.UF2_FINAL_MAGIC)
202 self.common([(0x100, self.generate_binary(mkuf2.UF2Writer.UF2_DATA_SIZE)),
203 (0x200, self.generate_binary(mkuf2.UF2Writer.UF2_DATA_SIZE + 1)),
[all …]
/hal_espressif-3.6.0/tools/
Dmkuf2.py40 class UF2Writer(object): class
104 with UF2Writer(args['chip_id'], args['output_file'], args['chunk_size']) as writer: