You are reading a single comment by @ChristianW and its replies. Click here to read the full conversation.
  • OK - some updates:

    1. I blew up my MDBT42s somehow. It still works, but days ago I overloaded one of the LED pins and was curious about the bad battery runtime and the high amps (> 40 mA) even with everything switched off.
      Pulled everything apart to sort it out, put it back together (minus LED, don't need it) - yes D27 is gone.
      So I replaced it with a spare device, unfortunately not with external antenna (just ordered replacements yesterday)

    2. I run tests again and ran into issues again after ~30 minutes runtime and ~160 - 200 simulated laps with two Pucks:

    • the lap array is limited to 200 entries, so process.memory().free stays way above 400 mostly
    • at some point everything freezes. No display updates, no button reponses, amps at ~15 mA (also with Backlight on which is only a few mA) all the time, no BLE connection possible, no advertising either
    • doing it a second time I tried to stay connected via Web Console, after ~ 10 minutes I lost connection, reconnected and monitored memory a few times.
      This is the final output before and after reconnect and before the freeze:

      ={ free: 900, usage: 1600, total: 2500, history: 10,
      gc: 0, gctime: 6.43920898437, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 891, usage: 1609, total: 2500, history: 10,
      gc: 0, gctime: 6.50024414062, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 888, usage: 1612, total: 2500, history: 10,
      gc: 0, gctime: 6.65283203125, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 873, usage: 1627, total: 2500, history: 10,
      gc: 0, gctime: 6.53076171875, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 873, usage: 1627, total: 2500, history: 10,
      gc: 0, gctime: 6.53076171875, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      Disconnected from Web Bluetooth, MDBT42Q cd4f
      >
      <- Serial1
      Found MDBT42Q, 2v08
      >
      Connected to Web Bluetooth, MDBT42Q cd4f
      >process.memory()
      ={ free: 603, usage: 1897, total: 2500, history: 10,
      gc: 0, gctime: 7.2021484375, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 510, usage: 1990, total: 2500, history: 10,
      gc: 0, gctime: 7.4462890625, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 447, usage: 2053, total: 2500, history: 10,
      gc: 0, gctime: 7.87353515625, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 511, usage: 1989, total: 2500, history: 10,
      gc: 0, gctime: 7.41577148437, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 510, usage: 1990, total: 2500, history: 10,
      gc: 0, gctime: 7.41577148437, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 468, usage: 2032, total: 2500, history: 10,
      gc: 0, gctime: 7.53784179687, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      >process.memory()
      ={ free: 502, usage: 1998, total: 2500, history: 10,
      gc: 0, gctime: 7.4462890625, blocksize: 16, stackEndAddress: 536928912, flash_start: 0,
      flash_binary_end: 430980, flash_code_start: 442368, flash_length: 524288 }
      ERROR: Ctrl-C while processing interval - removing it.
      Execution Interrupted during event processing.
      New interpreter error: CALLBACK,LOW_MEMORY,MEMORY
      ERROR: Ctrl-C while processing interval - removing it.
      Execution Interrupted during event processing.
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      New interpreter error:
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      >
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      Execution Interrupted
      

      The errors happened just when calling process.memory()

    Any ideas someone?
    I'll remove the logging into RAM completely now and see if that helps.

About

Avatar for ChristianW @ChristianW started