• Hello @Gordon

    i'm testing code with pcd8054 lcd.

    the example works well with 2.04 firmware, but not with the 2.05 firmware. (i updated to try the scale factor feature on Font).
    If i downgrade to 2.04 it works again...

    SPI1.setup({ sck:B3, mosi:B5 });
    var g = require("PCD8544").connect(SPI1, B6 /*DC*/, B7 /*CE*/, B8 /*RST*/, function() {
      g.clear();
      g.drawString("Hello",0,0);
      g.drawLine(0,10,84,10);
      g.flip();
    });
    
    ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
            |_| espruino.com
    2v05 (c) 2019 G.Williams
    >
    Uncaught InternalError: Timeout on SPI RX
    at line 1 col 30
    b.write([33,191,20,6,32,12],d);void 0!==e&&e()
                                ^
    in function called from system
    
    
  • ...DMA controlled (SPI) IO has obviously its issues, and this post confirms for me that the ns pin / CS line handling did not adjust to it...

  • Sorry about this - this specific one is an issue I've already fixed. It's not to do with CS/etc at all (that seemed to be an nRF52 issue anyway?).

    If you update to the latest from http://www.espruino.com/binaries/travis/­master/ it should be fixed. I'll do a 2v06 release soon that should sort that out - or you can just use software SPI

  • thanks @Gordon, it's working with r100 :)

    é.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

PCD8054 example does not work with 2.05 firmware - SPI TimeOut error on Pico

Posted by Avatar for Mrbbp @Mrbbp

Actions