GithubHelp home page GithubHelp logo

Comments (8)

awatterott avatar awatterott commented on July 24, 2024

I have updated the SPI libs with v1.0.9 and I know see that there is a problem when using SPI+SPI1 together. Can you try v1.10?
On the other error: Have you added/updated all files from the hardware.zip archive? It looks like there is something missing.

from atmega328pb-testing.

Yoshi20 avatar Yoshi20 commented on July 24, 2024

I now tested V1.1.0 but no improvements!
Only V1.0.8 works to control the EPD with SPI1.

Concerning the second bug:
I now updated the Hardware files and after adding the m328pb in the avrdude.conf-file (what you by the way do not mention in the installing guide) I'm now able to use the ATmega328PB boards in Arduino_1.8.2.

In the avrdude.conf-file I added on line number 8506:

part parent "m328"
    id      = "m328pb";
    desc    = "ATmega328PB";
    signature    = 0x1e 0x95 0x16;

    ocdrev              = 1;
;

At least in my case, the avrdude.conf-file in the tools-directory within your package seems to not be found by Arduino. (I'm using macOS Sierra)

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

I made some tests and SPI and SPI1 is working for me.
Does your display work with SPI?

The correct avrdude.conf with m328PB definition is included with the boards package and used for the "Atmel ATmega328PB..." boards (via boards.txt).
Have you done all 3 installation steps?

from atmega328pb-testing.

Yoshi20 avatar Yoshi20 commented on July 24, 2024

Yes and Yes.

I now found the time to test the two different versions (1.1.0 and 1.0.8) and discovered which line is the problem:
In V1.1.0 -> SPI1.cpp -> LineNr: 74
SPCR1 &= ~_BV(SPE);
If replaced with:
SPCR0 &= ~_BV(SPE); // like in V1.0.8
it works again :)

I'm looking forward to V1.1.1 or an updated V1.1.0

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

The line in v1.0.8 is not correct, because it deactivates the wrong SPI interface.
Have you tested your display with both SPI interfaces (SPI/SPI0 and SPI1)?

from atmega328pb-testing.

Yoshi20 avatar Yoshi20 commented on July 24, 2024

No, it is on a PCB and I can only use SPI1.
I'm using the following pinout:
PC1 -> SCK1
PC0 -> MISO1
PE3 -> MOSI1
PE2 -> CS1 (SS1)

If it was wrong in V1.0.8, then I wonder why it only works with this one.

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

Maybe there is an error in your code. Do you use the SPI1.end() function?

from atmega328pb-testing.

Yoshi20 avatar Yoshi20 commented on July 24, 2024

You seem to be right in the end :)

I now reviewed the EPD-library I'm using and discovered, that it calls SPI1.end() way too early (after a draw and not only in the EPD.end()-function).
I fixed this and it now seems to work fine with V1.1.0.

Thanks for your help.

from atmega328pb-testing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.