![]() Let's build this thing! Fire up a MinGW console, navigate to the stm8flash folder, type "make all". A browser extension needed?) Made the source code fix. (In retrospect, how the hell is that 'Open' link even supposed to work? Communicating somehow between your browser and the native Desktop app. Okay, copy the URL and manually clone it in the Desktop client myself. Guess my already installed copy is too old, so I download the new version, install it and try again. The 'Open in Desktop' link didn't work, just redirected me to the GitHub Desktop download page. Went to clone the stm8flash repository on GitHub. Try again, but leave it with the i686 default choice, which it successfully manages to download and install. I chose the x86_64 version it failed to download that, and just exited after error-ing. It's a web installer that does further downloads itself. Downloaded the MinGW-w64 installer and ran it. I found the energy to attempt to build stm8flash myself in order to test the fix. But then the following record has an address of 0x1000, making a combined 32-bit address of 0x00011000? Shouldn't it restart at 0x0000? There is another address extension further in the file: Taking the sample above, there is an extended address record giving upper address bits of 0x0001. Because the record format only allows for 16-bit (4 hex digit) addresses, if you're dealing with an address space greater than 16 bits (24 in my case), you have an additional record type to extended addresses, which forms the upper 16 bits of the address of all subsequent data records. If I look up the details of Intel Hex format on Wikipedia, it tells me the shorter line in the middle is an 'Extended Linear Address' record. ![]() However, I think that the last two characters of these records may in fact be the correct checksum, and the error is earlier in the record, in the address field - it just doesn't seem right to me. ![]() If I delete it, it complains about an incorrect checksum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |