Private Sub Check_EEprom(start As UInt, finish As UInt) As Boolean
Log("Start checking ...")
' Check if any location not cleared to zero
Dim success As Boolean = True
Dim n As UInt
For n=start To finish
Log(n, " ", EE.ReadBytes(n,1)(0))
Log("stack: ", StackBufferUsage)
If EE.ReadBytes(n,1)(0) <> 0 Then success = False
Next
Log("EEPROM check result: ",success)
Return success
End Sub