Avatar for Andreas_Rozek

Andreas_Rozek

Member since Dec 2019 • Last active Apr 2020
  • 32 conversations
  • 122 comments

Most recent activity

  • in Other Boards
    Avatar for Andreas_Rozek

    Hi folks,

    given the low amount of free memory in a BBC micro:bit

    >process.memory()
    ={ free: 280, usage: 20, total: 300, history: 0,
      gc: 0, gctime: 2.83813476562, blocksize: 12, "stackEndAddress": 536884560, flash_start: 0,
      "flash_binary_end": 258580, "flash_code_start": 260096, flash_length: 262144 }
    

    is there an estimate of how much code may be sent to that device without causing a LOW_MEMORY error?

    That code should also be able to be saved, of course.

    Or, is there way to build larger code from smaller pieces (e.g. by saving individual functions rather than a whole bunch of them)?

    Thanks in advance for any help!

    With greetings from Germany,

    Andreas Rozek

  • in Other Boards
    Avatar for Andreas_Rozek

    Oh, what I found in my old notes from 1.85: Espruino on BBC micro:bit hangs quite soon when trying to run the ticker you mentioned in your video about Espruino on the micro:bit...

    Thus, it seems to have been unstable in those days as well...

  • in Other Boards
    Avatar for Andreas_Rozek

    I meanwhile found the old firmware distributions and tried 1.85 - but apart from a different API (compared to 2.05) I often encounter communication failures (lost characters when uploading) which prevent me from testing...

    [Update]
    Communication errors can be solved by disabling "Reset before Send", but then the program runs havoc almost immediately => the old version behaves even worse than the new one

    This is strange as I made my first experiments with Espruino on BBC micro:bit with 1.85 - and I can't remember these problems (my boards are still the same and weren't touched since then).

  • in Other Boards
    Avatar for Andreas_Rozek

    Increasing interval length does not really help - both boards will eventually hang up.

    Additionally: when trying to connect after a reset, I also often get the error message "Unable to retrieve board information. Connection Error?"

    Even if that is followed by "Connected to Web Bluetooth, Espruino MICROBIT (No response from board)" that connection appears to be inoperable.

  • in Other Boards
    Avatar for Andreas_Rozek

    Hello Gordon,

    I tried 1.95 (the latest one from the list of available downloads) and that behaved like 2.05.

    The misbehaviour of setTimeout sounds critical, but graphics.drawLine might "just" have a hidden memory leak from what I found by my little tests.

    Oh, and, meanwhile, my own implementation of "drawLine" crashed as well (on the micro:bit, on Calliope it's still running - but presumably because that was started much later) - I will now try to increase interval length.

    What also sounds weird is that both devices sometimes suddenly disconnect themselves from the WebBT connection.

    With greetings from Germany,

    Andreas Rozek

  • in Other Boards
    Avatar for Andreas_Rozek

    Just as a very quick note:

    Espruino v2.05 seems to run on Calliope mini as well (which was to be expected due to their similarities)

    I still have to check how far the compatibility goes, however.

    When I'll find some time...

    With greetings from Germany,

    Andreas Rozek

Actions