B4R Question trouble with mega2560 eeprom.readbytes

Discussion in 'B4R Questions' started by Hans- Joachim Krahe, Nov 2, 2018.

  1. Hans- Joachim Krahe

    Hans- Joachim Krahe Active Member Licensed User

    hi,

    I dont understand this problem:

    Code:
    ' ---------------------            solution 1 - works
        Dim bab() As Byte = eeprom.ReadBytes(1298 ) '
      
        
    ' ---------------------            solution 2 - does not work - restart
        Dim bab() As Byte = eeprom.ReadBytes(1300'        same start, different length (>298)
      
        
    ' ---------------------            solution 3 - works
        Dim bab() As Byte = eeprom.ReadBytes(100298 )      ' same length, different start
      
        
    ' ---------------------            solution 4 - works
        Dim bab() As Byte = eeprom.ReadBytes(1200)'
        Dim bab2() As Byte = eeprom.ReadBytes(20090'

        
    ' ---------------------            solution 5 - does not work - restart
        Dim bab() As Byte = eeprom.ReadBytes(1200)'
        Delay(1000)
        
    Dim bab2() As Byte = eeprom.ReadBytes(20098'
    ... 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: Nov 6, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.
     
  3. Hans- Joachim Krahe

    Hans- Joachim Krahe Active Member Licensed 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...
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Change the value of #StackBufferSize to 1000.
     
  5. Hans- Joachim Krahe

    Hans- Joachim Krahe Active Member Licensed User

    Code:
    test insert function
    ... got it:)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice