arduino_uip icon indicating copy to clipboard operation
arduino_uip copied to clipboard

SAMD21 (Arduino Zero) Support

Open ljbeng opened this issue 8 years ago • 2 comments

Will this library be compatible with the SAMD21 any time soon?

ljbeng avatar May 23 '16 20:05 ljbeng

Ethercard uses direct Register access on the AVR, which won't work on ARM.

a simple ( or simplistic ) way of looking at it is to make sure reads, writes and chipselects are changed to use the SPI library instead of direct register usage ( which is specific to AVR only in this case ).

The SPI interface will have to be rewritten/replaced by the Arduino SPI library's interace things likeSPDR = *data++; can be replaced by SPI.transfer(*data++); for example.

  • i don't have one of these at the moment, but am looking at it for a future project so might have to go down that rabbithole...

Daniel-dk avatar Oct 19 '16 13:10 Daniel-dk

I did get UIPEthernet working on SAMD21E16, but I started with https://github.com/UIPEthernet/UIPEthernet. Found all defines for ARCH_SAM and added checks for ARCH_SAMD next to them. So far testing for few days and looks OK-ish. There are glitches but they may be unrelated.

dimitar-kunchev avatar Nov 09 '17 07:11 dimitar-kunchev