- Credits
- 763CR
Just thought I'd share a little quick-n-dirty debugging technique I've just used.
In CRomCheck::calculateCrc I've added a serial begin and a message:
Serial.begin(9600);
Serial.println("Rom read start");
Then as it loops through reading the ROM I've written the HEX form of the byte to serial and a space.
Essentially it slowly dumps the rom to serial.
Then I can convert online the string to a BIN file (https://tomeko.net/online_tools/hex_to_file.php?lang=en) and compare it with the rom in hexedit to see where the errors start in the rom and whether they relate to particular address bits etc.
I did this because the first 4 reads that the test did were correct but the roms failed verify (but were ok out of circuit) and the other roms on the board passed.
If anyone wants the nasty code I wrote LMK.
In CRomCheck::calculateCrc I've added a serial begin and a message:
Serial.begin(9600);
Serial.println("Rom read start");
Then as it loops through reading the ROM I've written the HEX form of the byte to serial and a space.
Essentially it slowly dumps the rom to serial.
Then I can convert online the string to a BIN file (https://tomeko.net/online_tools/hex_to_file.php?lang=en) and compare it with the rom in hexedit to see where the errors start in the rom and whether they relate to particular address bits etc.
I did this because the first 4 reads that the test did were correct but the roms failed verify (but were ok out of circuit) and the other roms on the board passed.
If anyone wants the nasty code I wrote LMK.