Skip to content
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

Zephyr: Initial Zephyr integration setup #1267

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

mrdeep1
Copy link
Collaborator

@mrdeep1 mrdeep1 commented Oct 21, 2023

zephyr/ Initial files added

Tested with

west build -p always -b native_posix samples/net/eth_native_posix -- -DCONF_FILE=prj.conf -DEXTRA_ZEPHYR_MODULES=//<libcoap path>/libcoap -DEXTRA_CONF_FILE=/<libcoap path>/libcoap/zephyr/libcoap.conf -DCONFIG_LIBCOAP=y

with samples/net/eth_native_posix/src/main.c updated to run a simple libcoap CoAP client.

@jeffwelder-ellenbytech
Copy link

@mrdeep1 This is awesome work!

My colleague tried to use this PR, but this heavily depends on native_posix and associated functions. Therefore you cannot use it for real hardware quite yet.

Might be worth checking out the work the team at Golioth did:
https://github.com/golioth/golioth-firmware-sdk/tree/main/port/zephyr

@mrdeep1
Copy link
Collaborator Author

mrdeep1 commented Oct 26, 2023

@jeffwelder-ellenbytech Thanks for the feedback.

I will look at what the Goliath port does to see how reliance on Posix can be reduced / removed.

zephyr/ Initial files added
@mrdeep1
Copy link
Collaborator Author

mrdeep1 commented Feb 12, 2024

Reduction on reliance on Posix support will be another PR, but this PR gets all the Zephyr build requirements in place.

@mrdeep1 mrdeep1 merged commit 5efe163 into obgm:develop Feb 12, 2024
26 checks passed
@mrdeep1 mrdeep1 deleted the zephyr_1 branch February 12, 2024 13:48
@chrsag
Copy link

chrsag commented Sep 9, 2024

Hello @mrdeep1 , could you please provide your zephyr prj.conf? I am having issues building libcoap with zephyr, I guess due to missing configuration.

@mrdeep1
Copy link
Collaborator Author

mrdeep1 commented Sep 9, 2024

I was using zephyr 3.5.0 as native_posix samples/net/eth_native_posix has been removed in later versions.

prj.conf.txt

With this change to main.c

main.c.diff.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants