You are reading a single comment by @JackBennett and its replies. Click here to read the full conversation.
  • No I'm still stuck with ERROR: Unable to mount SD card : NOT_READY

    Here's my wiring
    Here the code;

    var fs = require('fs');
    
    // Wire up up MOSI, MISO, SCK and CS pins
    function onInit(){
      SPI1.setup({mosi:B5, miso:B4, sck:B3});
      E.connectSDCard(SPI1, A8 /*CS*/);
    }
    
    var text = "Hello World!\r\n";
    
    function saveToFile(){
      console.log('Append');
      fs.appendFileSync('testing.txt', "\tTest line\r\n");
    }
    
    //setInterval(saveToFile, 2000);
    

    Here's how it executes;

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v77 Copyright 2015 G.Williams
    >echo(0);
    =undefined
    >save()
    =undefined
    Erasing Flash......
    Programming 48640 Bytes...................................................
    Checking...
    Done!
    Running onInit()...
    >fs.readdir()
    ERROR: Unable to mount SD card : NOT_READY
    =undefined
    

    I know the GPS is unplugged there by the way. I had it logging the GPS. I had it writing a like to a file. Now together I can't write to the SD and this first SD test isn't running.

    I reflashed the pico too. same thing.

About

Avatar for JackBennett @JackBennett started