RIOT-OS / RIOT

RIOT - The friendly OS for IoT
https://riot-os.org
GNU Lesser General Public License v2.1
4.97k stars 1.99k forks source link

board:cpu: RIOT port for the atsamr21xpro board #1646

Closed thomaseichinger closed 7 years ago

thomaseichinger commented 10 years ago

List to coordinate porting efforts for the samr21xpro board and it's samd21 cpu. Please leave a comment what you are working on to mark it in the list and open pull requests against https://github.com/thomaseichinger/RIOT/tree/samr21 master branch.

Porting todos:

saurabh984 commented 9 years ago

Thanks @LudwigOrtmann :laughing: You can create a PR if you like! This adds SAM R21 LPM features - All 4 modes the CPU supports

LudwigKnuepfer commented 9 years ago

I couldn't try if it actually works because I didn't have time to get openocd running for this board yet .. I'll create a PR.

LudwigKnuepfer commented 9 years ago

here it is https://github.com/RIOT-OS/RIOT/pull/2309

saurabh984 commented 9 years ago

Thanks @LudwigOrtmann

songjw0820 commented 9 years ago

Info : SAMD MCU: SAMR21G18A (256KB Flash, 32KB RAM) wrote 32768 bytes from file /home/user/RIOT-master/examples/hello-world/bin/samr21-xpro/hello-world.hex in 40.885929s (0.783 KiB/s) Error: CMSIS-DAP: Read Error (0x07) Error: CMSIS-DAP: Write Error (0x07) Warn : target was in unknown state when halt was requested Error: CMSIS-DAP: Write Error (0x07) Error: CMSIS-DAP: Write Error (0x07) Error: error executing cortex_m crc algorithm Error: CMSIS-DAP: Write Error (0x07) Error: CMSIS-DAP: Write Error (0x07) Error: Failed to read memory and, additionally, failed to find out where in procedure 'verify_image' make: *\ [flash] Error 1

thomaseichinger commented 9 years ago

@songjw0820 could you please provide us your openocd version? Does this happen with every attempt to flash? Reading your log it seems to be the actual writing did succeed, do you see any output when connecting over serial line?

songjw0820 commented 9 years ago

@thomaseichinger Thank you for your answer! Open On-Chip Debugger 0.9.0-dev-00268-ga9c90a0 yse flash.Serial no output...

thomaseichinger commented 9 years ago

@songjw0820 I was able to flash the board successfully with this exact version of openocd. Could you tell us a little more about you environment? (OS, version, are you using a virtual machine?) Do you have a second board to try flashing?

songjw0820 commented 9 years ago

@thomaseichinger yse virtual machine, ubuntu 14.04.

songjw0820 commented 9 years ago

@thomaseichinger I tried another demonstration boards today, run a successfully

biboc commented 9 years ago

I'm not working on RNG for the moment, if anyone wants to go on, here is a start: https://github.com/bapclenet/RIOT/blob/samr21/RNG/cpu/samd21/periph/random.c It uses the AT86RF233 random bits. As of now, it uses AT86RF231 driver since at86rf2xx is not yet implemented.

@thomaseichinger, could you add the issue related to at86rf2xx driver? Remove my name on RNG and ADC as I stopped working on please. Thanks

dantheman2865 commented 9 years ago

Hey guys, I've been messing around with the SAMR21-XPRO boards and I haven't been able to get the "sixlowpan" app to work. Any ideas? Also, I can submit a PR or somebody else can fix it, but lines 91-96 in at86rf321.c suffer from a copy-pasta error. Thanks for all of your hard work, I'm looking forward to diving in! EDIT: I didn't realize there was a 3rd argument to txtsnd...

LudwigKnuepfer commented 9 years ago

Regarding this board/transceiver and problems with network: Please search the mailing lists and issue tracker, there is plenty of text on this topic.

kYc0o commented 8 years ago

it still needs this issue to be open?

OlegHahm commented 8 years ago

ADC, PRNG and LPM are still missing.

kYc0o commented 8 years ago

Ok, I just updated the ADC work being done by another person.

kYc0o commented 8 years ago

I'll milestone too since I think we can get it fully supported for the next release

kYc0o commented 8 years ago

Didn't make it, so postponing.

miri64 commented 8 years ago

ADC, PRNG and LPM are still missing.

Is there another PRNG than #4989 on that board?

OlegHahm commented 7 years ago

Anyone working on the ADC driver?

PeterKietzmann commented 7 years ago

@immesys wanted to

immesys commented 7 years ago

I did some work on it, I discovered that many use cases we had required tweaking things like gain, differential sampling and whatnot, so now I have this conflict between making a simple, abstraction-compatible ADC driver and one that implements all the platform specific features. I will do my best on it, and then I may need some shepherding. Timeline is probably 3 weeks though

kaspar030 commented 7 years ago

I've checked LPM and the rng. Seems like we finally have a fully supported board!

Feel free to reopen if you disagree.

thomaseichinger commented 7 years ago

3 years and 1 month. 😀

Congratulations to everybody contributing and perusing this. (FYI removed the WIP label)