2025-03-23 4:40 PM
Need to IAP save two 16(10) bit ADC values to EEROM. Done parm saves before in STM8S105, but want to see it in ICP mode.
In NXP MC9S08, I can turn off download, which cleared Its EEROM. That let me run the ADC "learn" of the values, save them to EEROM, then power cycle and see them retained.
I'm thinking running debug without download will be the same, but I can't find it.
SO, I want to test "stuff" two values to EEROM, power down / up, invoke Debug (ICP) and see them preserved.
Trusting IAP to get/save values without verifying doesn't sit well. Like Reagan: Engineers don't Trust - they Verify!
Deeply appreciate my "betters", everybody old enough has been on BOTH sides of this!! Thanks, Kevin
Solved! Go to Solution.
2025-03-24 2:01 AM
You can at least use the register MASS (Memory Access Security System) to protect the contents of the EEPROM; deletion/modification is then only possible after access has been enabled. Details can be found in PM0051, section 3.3.
Hope that helps?
Regards
/Peter
2025-03-24 2:01 AM
You can at least use the register MASS (Memory Access Security System) to protect the contents of the EEPROM; deletion/modification is then only possible after access has been enabled. Details can be found in PM0051, section 3.3.
Hope that helps?
Regards
/Peter
2025-03-29 4:35 PM
Given it's assembler, I was expecting immediate response from the EEROM system - NOPE.
I stumbled into the answer (as usual) - issue the unlock keys then loop until status bit changes.
Once lock bit is set, Wait to exit debugger and power cycle it. No valid reason, sometimes it just is.