I tried a .hex file with the st-flash command line tool and it filled my flash with the literal contents of the .hex.
Code: Select all
538> st-flash write firmware.hex 0x08000000
...output omitted...
539 >st-flash read foo-hex.bin 0x08000000 0x100
...output omitted...
540 >od -t x1z foo-hex.bin
0000000 3a 30 32 30 30 30 30 30 34 30 38 30 30 46 32 0d >:020000040800F2.<
0000020 0a 3a 31 30 30 30 30 30 30 30 30 30 30 30 30 32 >.:10000000000002<
0000040 32 30 33 44 38 41 30 34 30 38 39 31 30 41 30 34 >203D8A0408910A04<
0000060 30 38 >08<
Code: Select all
542 >st-flash write firmware.bin 0x08000000
...output omitted...
542 >st-flash read foo-bin.bin 0x08000000 32
...output omitted...
543 >od -t x1z foo-bin.bin
0000000 00 00 02 20 3d 8a 04 08 91 0a 04 08 81 0a 04 08 >... =...........<
0000020 95 0a 04 08 a5 0a 04 08 b5 0a 04 08 00 00 00 00 >................<
0000040 00 00 00 00 00 00 00 00 00 00 00 00 c5 0a 04 08 >................<
0000060 c7 0a >..<
The VID:PID od f055:9800 is common for all of the stmhal variants of MicroPython, regardless of the board.
I know that accessing USB ports from within a VM can be tricky.