B4R Question trouble with mega2560 eeprom.readbytes

Hans- Joachim Krahe

Active Member
Licensed User
Longtime User
hi,

I dont understand this problem:

B4X:
    ' ---------------------            solution 1 - works
    Dim bab() As Byte = eeprom.ReadBytes(1, 298 ) '
  
    ' ---------------------            solution 2 - does not work - restart
    Dim bab() As Byte = eeprom.ReadBytes(1, 300) '        same start, different length (>298)
  
    ' ---------------------            solution 3 - works
    Dim bab() As Byte = eeprom.ReadBytes(100, 298 )      ' same length, different start
  
    ' ---------------------            solution 4 - works
    Dim bab() As Byte = eeprom.ReadBytes(1, 200)'
    Dim bab2() As Byte = eeprom.ReadBytes(200, 90) '

    ' ---------------------            solution 5 - does not work - restart
    Dim bab() As Byte = eeprom.ReadBytes(1, 200)'
    Delay(1000)
    Dim bab2() As Byte = eeprom.ReadBytes(200, 98) '
... there seems to be a readlength maximum, even if I split the request ... can someone
comprehend it, or ist ist a hardware defect?

thanks
 
Last edited:

Hans- Joachim Krahe

Active Member
Licensed User
Longtime User
sorry Erel, I always forget this special tag. Is there a place where to check it? A blind note inside the Edit Monitor would be fine...
 
Upvote 0
Top