Comments (8)
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.
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.
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.
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.
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.
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.
Maybe there is an error in your code. Do you use the SPI1.end() function?
from atmega328pb-testing.
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)
- Port Manipulation Problem HOT 1
- Cannot compile HOT 4
- High power consumption in deep sleep HOT 2
- SPCR, SPDR, and SPSR are not declared in the scope HOT 1
- compile error #include <twi_def.h> HOT 1
- Upload bootloader fail HOT 3
- ADC6 always reading 1023 HOT 1
- PlatformIO support HOT 2
- Explanation of Wire1 library HOT 1
- Precompiler issue with Wire.h HOT 2
- Bootloader and Sketch Upload with ISP works, Serial doesn't HOT 3
- Dead chips HOT 3
- Optiboot PB loader on Nano Clone no worky HOT 4
- Atmega328PB and RFM95W HOT 3
- USART1 instead of USART0 HOT 1
- Device signature error while uploading bootloader HOT 3
- m328pb flash programming using UART. HOT 1
- Problems with simultaneous master/slave HOT 3
- __AVR_HAVE_PRR0_PRTWI0 not correctly defined HOT 1
- SPI1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atmega328pb-testing.