Closed thomaseichinger closed 7 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
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.
here it is https://github.com/RIOT-OS/RIOT/pull/2309
Thanks @LudwigOrtmann
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
@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?
@thomaseichinger Thank you for your answer! Open On-Chip Debugger 0.9.0-dev-00268-ga9c90a0 yse flash.Serial no output...
@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?
@thomaseichinger yse virtual machine, ubuntu 14.04.
@thomaseichinger I tried another demonstration boards today, run a successfully
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
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...
Regarding this board/transceiver and problems with network: Please search the mailing lists and issue tracker, there is plenty of text on this topic.
it still needs this issue to be open?
ADC, PRNG and LPM are still missing.
Ok, I just updated the ADC work being done by another person.
I'll milestone too since I think we can get it fully supported for the next release
Didn't make it, so postponing.
ADC, PRNG and LPM are still missing.
Is there another PRNG than #4989 on that board?
Anyone working on the ADC driver?
@immesys wanted to
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
I've checked LPM and the rng. Seems like we finally have a fully supported board!
Feel free to reopen if you disagree.
3 years and 1 month. 😀
Congratulations to everybody contributing and perusing this. (FYI removed the WIP label)
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/samr21master branch.Porting todos:
#2473#3127 @haukepetersen#2063 @wiredsource#4162 @msoltersDone in #7009(at86rf231 driver works for now, will get at86rf2xx) @thomaseichinger @Troels51