Avatar for Andrea

Andrea

Member since May 2019 • Last active Aug 2020
  • 3 conversations
  • 12 comments

Most recent activity

  • in Other Boards
    Avatar for Andrea

    OK, thanks anyway ... if I solve, I'll write you how I did!

    :-)

  • in Other Boards
    Avatar for Andrea

    Hi Gordon!

    Programming via Bluetooth is OK, but via USB it is only powered, it is not recognized and the "MICROBIT" drive is not mounted ... I don't know how to update to 2.06

    I've tried both on Mac and Windows (with related drivers) and with different USB cables.

    THANK YOU SO MUCH

  • in Other Boards
    Avatar for Andrea

    Hello. In this situation, exist a way to update / restore to factory defaults via drag n drop, Espruino Web IDE, WebUSB, BLE DFU App, Serial Port Terminal?

    There is a key combination or "jumper-bridge" between pins to activate the bootloader?

    :-(

    THANK YOU

  • in Other Boards
    Avatar for Andrea

    Hi fanoush, I haven't changed anything, I switched from MicroPython to espruino_2v04_microbit.hex via drag n drop: https://www.espruino.com/binaries/esprui­no_2v04_microbit.hex

    :-(

    THANK YOU

  • in Other Boards
    Avatar for Andrea

    Hi everyone, I would like to upgrade my Micro:bit from version 2.04 to 2.06, but I noticed that both with different USB cables on both Mac and Windows (with related drivers) flash memory never loads ... and RESET button doesn't work either!

    The example code loaded via BLE works fine, but for saving to flash permanently I am forced to reset(true); save();

    Saving via IDE to "Flash" gives me error: Uncaught Error: Module Storage not found ... require("Storage").write(".bootcde","var­ on = false;\nsetIn

    Do you know how to make flash memory reappear on desktop?

    Here are some more info, THANK YOU for your collaboration!

      "VERSION": "2v04",
      "GIT_COMMIT": "3956264e",
      "BOARD": "MICROBIT",
      "FLASH": 262144,
      "RAM": 16384,
      "CONSOLE": "Bluetooth",
      "MODULES": ""
    
      "free": 269,
      "usage": 31,
      "total": 300,
      "history": 25,
      "gc": 0,
      "gctime": 3.20434570312,
      "stackEndAddress": 536884568,
      "flash_start": 0,
      "flash_binary_end": 258132,
      "flash_code_start": 260096,
      "flash_length": 262144
    
    • 7 comments
    • 892 views
  • in Interfacing
    Avatar for Andrea

    OK, now it works!
    Gordon, allObjects thank you very much!

    For whoever needed, here is the code useful for testing ...

    // Espruino WiFi
    // Web IDE > reset(true);
    
    Serial1.setup(9600, {rx: B7, tx: B6});
    LED2.write(0);
    var WIFI_NAME = "NAME";
    var WIFI_OPTIONS = {password: "PASSWORD"};
    var wifi;
    
    function getString() {
      LED2.write(0);
      require("http").get("http://www.pur3.co.­uk/hello.txt", function(res) {
        var doc = "";
        res.on('data', function(d) { 
          doc += d;
        }); // data
        res.on('close', function(d) {
          doc = doc.substring(0, 5);
          Serial1.println(doc);
          LED2.write(1);
          setTimeout(function (){LED2.write(0);}, 15000);
        }); // close
      }); // get
    };
    
    function onInit() {
      USB.setConsole(1);
      clearInterval();
      wifi = require("Wifi");
      wifi.connect(WIFI_NAME, WIFI_OPTIONS, function(err) {
          if (err) throw err;
          setInterval(getString, 30000);
          getString();
      });
    };
    
    // Web IDE > save();
    // Web IDE > disconnect
    // Connected to battery
    
    // MDBT42Q
    // Web IDE > reset(true);
    
    global.LED2 = D2;
    global.LED2.write(0);
    var count = 0;
    
    function updateBT(wifi) {
      count = count + 1;
      var data = E.toString(wifi + count);
      global.LED2.write(1);
      setTimeout(function (){global.LED2.write(0);}, 6000);
      NRF.setAdvertising({}, {
        name: "TEST",
        manufacturer: 0x590,
        manufacturerData: data,
        showName: true
      });
    };
    
    function onInit() {
      var cmd = "";
      Bluetooth.setConsole(1);
      Serial1.setup(9600, {rx: D8, tx: D6});
      Serial1.on('data', function (wifi) {
        cmd += wifi;
        var idx = cmd.indexOf("\r");
        while (idx >= 0) {
          var line = cmd.substr(0, idx);
          line = line.substring(0, 5);
          line = line.toLowerCase();
          cmd = cmd.substr(idx + 1);
          clearInterval();
          setInterval(updateBT, 15000, line);
          updateBT(line);
          idx = cmd.indexOf("\r");
        };
      });
    };
    
    // Web IDE > save();
    // Web IDE > disconnect
    // Connected to battery
    
  • in Interfacing
    Avatar for Andrea

    Thanks allObjects, i can't wait to try it!

    :-)

  • in Interfacing
    Avatar for Andrea

    Hi Gordon!
    As soon as I have a moment, I try it and I tell you ...

    Thank you so much!

Actions