Open IoTPanic opened 5 years ago
hmm, we dont use ASK so that file doesn't need to compile/work
wanna try updating the #ifdef line to have something like && ! defined(__SAMD51__)
(not in front of comptuer so just check the compile line for the right token and then see if it compiles for ya?
Hey LadyAda! Its a privilege to talk to you!
I made a pull request that solves the issue temporarily. Adding the line you suggested did not work, however, my fix allows for all ATSAMD51 boards to compile any other driver but continues to not support RH_ASK. I think I have found a solution to support ASK, I will work at it this weekend and I've figured out all the timer values as well as found how to set up a TC so I will try to add support (For fun). It seems the compiler was including RH_ASK.h for some reason, I am very confused on it, and went through all the header files I included and none say anything about that file. I originally thought it was a PlatformIO mistake.
Should I keep the issue open until I find a fix or no? I don't know if not being able to use a Cortex-M4 and a ASK transceiver would be considered an "issue".
thank you :)
I think I have found a solution to support ASK, I will work at it this weekend and I've figured out all the timer values as well as found how to set up a TC so I will try to add support (For fun). ... Should I keep the issue open until I find a fix or no? I don't know if not being able to use a Cortex-M4 and a ASK transceiver would be considered an "issue".
@IoTPanic, I am having this very issue of trying to use a cheap ASK transceiver with an ItsyBitsy M4. Did you ever successfully create the correct timer settings for the SAMD51? It sure would save me a lot of trouble as I'm new to the M4.
It seems issue #15 is also about this same thing (and it remains open).
Any help would be greatly appreciated. Thanks!
I did, here is the PR- #29
EDIT: Oh wait nevermind, sorry, been a while since this was last open, I can take a look at making a fix give me a sec.
@WunderBeard could you please try this out for me so I can make a pull request if it works? Have not really been able to test but it compiles and should work - https://github.com/IoTPanic/RadioHead/tree/patch-m4_RH_ASK-iotpanic
@IoTPanic, thank you for your quick response! It may take me a day or three to get the physical setup running (in my precious spare time). I'm swapping out an Arduino Nano in favor of the ItsyBitsy M4 Express, so I have some wiring and pinout checking to do. The compile error was my first stumbling block. Maybe I can get a simple Hello World running just to check the radios. Your code from #58 does compile for me too, so I have high hopes. Sorry I can't offer a faster turn-around.
Well sorry for that compile error @WunderBeard, looking back I actually created that, this RH_ASK file broke the entire library if using the SAMD51, and I made a fix last year to let everything else compile, saying I would come back and fix this and never did (Though, you would have just had another compiler error). I could have at least added some preprocessor conditions to give you a readable error. Hope I didn't turn you off from the M4 itsy bitsy, I love that platform and highly recommend it.
If you are able to run a hello world, that would be very helpful to verify everything works for the next guy.
@ladyada issue fixed and fix is confirmed working in #58, can be closed, going to wait for you to review or PR to be accepted.
Anyone able to check, test, merge?
Did this get merged, but the issue is open, or did it not get merged?
@veggie2u it is not merged, according to github since my last push on my fork there hasn't been any activity, I would suggest you use that until someone gives the repo a little love.
https://github.com/IoTPanic/RadioHead/tree/patch-m4_RH_ASK-iotpanic
Dang! Thanks @IoTPanic It works just fine. @jwcooper @ladyada I have tested their branch on an ItsyBitsy M0, and a M4, and a Feather M0, and M4. All work using the default RadioHead69_AddrDemo_RX and RadioHead69_addrDemo_Tx (with only changes being pins)
Hello,
I was just compiling the RadioHead library for the Adafruit feather M4 and I am unable to compile as the library only supports the ATSAMD21's timers and not the ATSAMD51s. The problem is in RH_ASK.cpp on the fallowing lines-
Does anyone have the correct file that could be used with the M4? In case you need the compilation error-
Thank you, Sam