Re: [riot-devel] Is samr21-xpro SPI working

2016-07-12 Thread Kees Bakker
It was staring me in the face but I didn't see it. It was a wrong mux for the MOSI pin. I finally found by single stepping through the Arduino code. Stupid mistake that took me almost a week :-) Here's proof. > init_master 0 0 23 SPI_0 successfully initialized as master, cs: GPIO_0x41004417, mod

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-11 Thread Kees Bakker
On 10-07-16 19:43, Kaspar Schleiser wrote: Hey, On 07/10/2016 01:13 PM, Kees Bakker wrote: It drives me nuts. Any hint is greatly appreciated. Do you have a logic analyzer? No, I don't have one. At some point I shall buy one, I guess. But that introduces new challenges. The SPI signals are no

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-11 Thread Kees Bakker
:-) I made a local change to the format of that message, using %lx because that way I can look up the address in the data sheet. The last two hex digits are good enough for me to see that 17 is 23. But yeah, the GPIO_PIN() is perhaps a better idea. I am using an Atmel ICE that connects via ope

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-11 Thread Baptiste Clenet
I didn't know this exist! [1] but I'll vote for it. First, you need to know if something goes on SPI MOSI line and if timing is ok. [1] http://www.ebay.de/itm/24MHz-8-Channel-USB-Logic-Analyzer-8-CH-Logic-Analyzer-for-Arduino-MCU-/131840997125?hash=item1eb255f705:g:FEUAAOSwQupXVjOq 2016-07-11

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-11 Thread Peter Kietzmann
Hi Kees, stupid question: How do you know SPI is not working? "GPIO_1090536471" was a formatting bug, compare: https://github.com/RIOT-OS/RIOT/pull/5619 Would you try to initialize an other pin as CS line? If I see it correctly you decided for PA23. Maybe just try it with PB2 (in case you d

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-10 Thread Kaspar Schleiser
Hey, On 07/10/2016 01:13 PM, Kees Bakker wrote: >>> It drives me nuts. Any hint is greatly appreciated. >> Do you have a logic analyzer? > No, I don't have one. > At some point I shall buy one, I guess. But that introduces new > challenges. The SPI signals are not easily accessible. I've made goo

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-10 Thread Kees Bakker
On 08-07-16 20:39, Kaspar Schleiser wrote: Hey, On 07/08/2016 08:16 PM, Kees Bakker wrote: It drives me nuts. Any hint is greatly appreciated. Do you have a logic analyzer? No, I don't have one. At some point I shall buy one, I guess. But that introduces new challenges. The SPI signals are no

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-08 Thread Kaspar Schleiser
Hey, On 07/08/2016 08:16 PM, Kees Bakker wrote: > It drives me nuts. Any hint is greatly appreciated. Do you have a logic analyzer? Kaspar ___ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-08 Thread Kees Bakker
This very same setup works perfectly with Arduino. It is a SAMD21 on a Autonomo (very much like Arduine Zero). It has a 16Mb "serial flash" chip on it. I started with the code from cpu/samd21 that was developed for the samr21-xpro board. The "only" thing I had to change is the pins for the SPI.

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-08 Thread Baptiste Clenet
Autonomo uses samd21 CPU? You use same driver as samr21? What's your problem? Are you sure your SPI Slave chip is working correctly? 2016-07-07 21:01 GMT+02:00 Kees Bakker : > Ah, _now_ it makes sense. :-) Thanks for letting me know. > > That leaves me with my own SPI problem. On my Autonomo I ca

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-07 Thread Kees Bakker
Ah, _now_ it makes sense. :-) Thanks for letting me know. That leaves me with my own SPI problem. On my Autonomo I can't get it to work. It is working with Arduino, but with RIOT (under construction) it's not :-( On 06-07-16 22:53, Baptiste Clenet wrote: Yes I know, I changed it to make it w

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-06 Thread Baptiste Clenet
Yes I know, I changed it to make it work :) (SPI1) 2016-07-06 22:48 GMT+02:00 Kees Bakker : > OK thanks. However, your remark about SPI1 puzzles me a bit, because it was > using > an incorrect PAD setting. PR #5609 fixed today. > > > On 05-07-16 23:21, Baptiste Clenet wrote: >> >> I can confirm t

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-06 Thread Kees Bakker
OK thanks. However, your remark about SPI1 puzzles me a bit, because it was using an incorrect PAD setting. PR #5609 fixed today. On 05-07-16 23:21, Baptiste Clenet wrote: I can confirm that it works properly. SPI is used to communicate with the transceiver on samr21-xpro and communication work

Re: [riot-devel] Is samr21-xpro SPI working

2016-07-05 Thread Baptiste Clenet
I can confirm that it works properly. SPI is used to communicate with the transceiver on samr21-xpro and communication works so SPI works, I used SPI1 also with no problem 2016-07-05 21:50 GMT+02:00 Kees Bakker : > Hey, > > Can someone confirm that SPI is working on the samr21-xpro board? > > I'm

[riot-devel] Is samr21-xpro SPI working

2016-07-05 Thread Kees Bakker
Hey, Can someone confirm that SPI is working on the samr21-xpro board? I'm trying to make SPI work on my Autonomo board, but I haven't succeeded yet. FYI, I'm also reorganizing the code so there are a lot of parameters that can be of influence. I can't use the current code because the pins and t