-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide support for the ST S2LP 802.15.4 Radio #16086
Conversation
EDIT (@erwango): I've cleaned zephyrbot comments here as they don't apply anymore (lib has been moved to hal_st module) and zephyrbot would have left them as is (due to change of behavior). I did this to avoid confusion during the review, but I can re-instantiate them if requested. |
f423df7
to
a0d5dea
Compare
aa6af36
to
37d8e91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this work.
For a start, I will let others commenting on the code part, and I will focus on the license statement.
We need to ensure the license of the files you extracted from the package is compatible with use in Zephyr.
I will nack this change until it is proven we're safe on that side, but it will (should) not prevent others to review the other parts of the change meanwhile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc is OK so far (with one correction). Is a usage example coming later?
- RoHS compliant | ||
|
||
|
||
More information about X-NUCLEO-S2868A1 can be found here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This renders better without the bullet point:
More information about X-NUCLEO-S2868A1 can be found in the
`X-NUCLEO-S2868A1 data sheet`_.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is resolved
With the provided overlay files we can execute the net > echo server/client samples. It doesn't need to showcase anything different than any other 802.15.4 device. Of course, if you believe that a custom sample is required I can either provide a new net-based example (similar to echo), or a custom low-level sample with |
|
||
&spi1 { | ||
status = "ok"; | ||
cs-gpios = <&gpioa 1 (GPIO_DIR_OUT|GPIO_INT_ACTIVE_LOW)>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&spi1 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be arduino_spi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so it will be arduino_spi: &spi1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shield overlays should refer to generic nodes label, such as arduino_spi.
These alternate labels (overridding nodes in dts grammar) are defined in boards, cf nucleo_f429zi.dts.
This allows shield to be compatible with various boards that would have a different definition of arduino_spi.
@@ -0,0 +1,14 @@ | |||
CONFIG_GPIO=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once again, please follow up on https://github.com/zephyrproject-rtos/zephyr/pull/14057/commits
shield overlays would now sit under boards/shields, so they are not tight to a sample
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for docs
@nikooiko, you'll find in https://www.st.com/en/embedded-software/x-cube-subg1.html a 3.1.1 version of the package that includes BSD-3 zephyr compatible License. Please use this package. Thanks |
@erwango thanks for the ping! |
@nikooiko , any plan for this work? |
Sorry for the inactivity. I've been too busy with other things and I haven't found the time to work with this driver. Hopefully, a colleague of mine will start working on this radio so he might have the time to continue the driver. |
@nikooiko, thanks for the feedback. We're in the process of cleaning up the PR base. I'm tagging the PR as "stale", it might also be closed later on. But don't worry, it can still be re-opened, and I'll be happy to continue the review. |
@nikooiko CI is still failed ... but hal update step is passed! Some CI checks to fix and you should be done (with this part ;-)) |
b2366ed
to
011ce0e
Compare
011ce0e
to
4444a26
Compare
@nikooiko Seems you're out of luck with IC, this timeit is not related with your change. You can have a try to rebase and force push to see if this is getting better. |
4444a26
to
e6d3e79
Compare
Guys here is some feedback about the driver's state/progress: As I mentioned above I investigated replacing basic packet format with 802.15.4, but in the end, I found no reason to do so. I tried to use the echo_client/echo_server samples but the nodes were unable to communicate so I'll need to investigate it further. At the same time I started working with a custom sample that uses 802.15.4 raw communication (s2868a1 sample) to stress test and showcase the radio operation. In parallel my next target is to implement the s2lp_set_channel and s2lp_get_channel_count functions. As I'm still working on this driver, any feedback would be much appreciated to produce a better result. |
st: update to latest ST package revision '44d5d70'. Includes ST S2LP Library. Signed-off-by: Nikos Oikonomou <[email protected]>
59495f4
to
646389f
Compare
Added driver for the s2lp radio modules Signed-off-by: Nikos Oikonomou <[email protected]>
Added a new shield for the x_nucleo_s2868a1 expansion module Signed-off-by: Nikos Oikonomou <[email protected]>
Guys, unfortunately, I was again forced to pause the development of this request. Until I have the time to continue with it or someone else steps up I'm closing this pull request. |
Hello everyone, in this PR the target is to provide support for the ST S2LP 802.15.4 Radio.
It's a work in progress but it's at a working state and can be the base for the enhancements/upgrades discussion.
Included in this merge request:
Current TODO list:
Possible changes:
Signed-off-by: Nikos Oikonomou [email protected]