AlkaMotors / AM32-MultiRotor-ESC-firmware

Firmware for stm32f051 based speed controllers for use with mutirotors
GNU General Public License v3.0
784 stars 270 forks source link

Moved firmware name / version to a fixed location so that they can be queried in files / on chip. #19

Closed mikeller closed 3 years ago

mikeller commented 3 years ago

Now the firmware version and name will appear at location 0x10C0 in all firmware versions:

mikeller@pc:~/git/AM32-MultiRotor-ESC-firmware$ hexdump -C IFLIGHT.bin | head -20
00000000  00 20 00 20 5d 14 00 08  e5 22 00 08 e9 22 00 08  |. . ]...."..."..|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 ed 22 00 08  |............."..|
00000030  00 00 00 00 00 00 00 00  f1 22 00 08 f5 22 00 08  |........."..."..|
00000040  ad 14 00 08 ad 14 00 08  ad 14 00 08 ad 14 00 08  |................|
*
00000060  ad 14 00 08 0d 24 00 08  f9 22 00 08 39 23 00 08  |.....$..."..9#..|
00000070  71 23 00 08 35 24 00 08  ad 14 00 08 ad 14 00 08  |q#..5$..........|
00000080  e9 23 00 08 8d 23 00 08  00 00 00 00 a9 23 00 08  |.#...#.......#..|
00000090  c5 23 00 08 bd 23 00 08  ad 14 00 08 ad 14 00 08  |.#...#..........|
000000a0  ad 14 00 08 ad 14 00 08  ad 14 00 08 c1 23 00 08  |.............#..|
000000b0  ad 14 00 08 00 00 00 00  ad 14 00 08 00 00 00 00  |................|
000000c0  01 3c 49 46 6c 69 67 68  74 5f 35 30 41 20 00 00  |.<IFlight_50A ..|
000000d0  10 b5 06 4c 23 78 00 2b  07 d1 05 4b 00 2b 02 d0  |...L#x.+...K.+..|
000000e0  04 48 00 e0 00 bf 01 23  23 70 10 bd c8 01 00 20  |.H.....##p..... |
000000f0  00 00 00 00 58 4e 00 08  04 4b 10 b5 00 2b 03 d0  |....XN...K...+..|
00000100  03 49 04 48 00 e0 00 bf  10 bd c0 46 00 00 00 00  |.I.H.......F....|
00000110  cc 01 00 20 58 4e 00 08  00 22 43 08 8b 42 74 d3  |... XN..."C..Bt.|
00000120  03 09 8b 42 5f d3 03 0a  8b 42 44 d3 03 0b 8b 42  |...B_....BD....B|
00000130  28 d3 03 0c 8b 42 0d d3  ff 22 09 02 12 ba 03 0c  |(....B..."......|
AlkaMotors commented 3 years ago

Great! thanks @mikeller added.