You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Thanks! If you turn on logging in the IDE (settings -> general -> terminal log icon, then click the new icon) then paste the following code:

    (function() {
      var addr = 0x60000000;
      var len = 1024*1024*4;
      var f = require("Flash");
      function log() {
        var l = 32, d = f.read(l,addr).slice();
        if (!d.every(x=>x==255)) print(
          addr.toString(16).padStart(8,2),
          d.map(x=>x.toString(16).padStart(2,0)).join(" ")
        );
        addr += l;
        len -= l;
        if (len>0) setTimeout(log, 2);
        else print("Finished!");
      }
      log();
    })();
    

    it'll dump out the full contents of flash memory (it'll take a while!) and I could then copy that data onto my device and try and figure out what went wrong. Although it's not guaranteed I'll be able to find the issue from that - finding a way to reproduce it reliably and quickly is much more likely to lead to a fix

About

Avatar for Gordon @Gordon started