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

Lower Link Layer code use upper link layer function have " undefined reference to" #28773

Closed
mfinmuch opened this issue Sep 29, 2020 · 3 comments
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@mfinmuch
Copy link

I tried to do Bluetooth test on nrf52840
Under zephyr/subsys/bluetooth/controller/ll_sw, I have modified some programs and added modules "neat.c" and "neat.h" by myself
I use "lll_conn.c" in zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll to reference the function(the function name is upd_conn_stat ) in "neat.c"
I have include "neat.h" in "lll_conn.c"
And after west build -p auto -b nrf52840_pca10056
the terminal show
zephyr/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c:376: undefined reference to upd_conn_stat'`

I think the reason is I use upper link layer(ull) function ("neat.h") in lower link Layer(lll)
How can i fix this problem?

@mfinmuch mfinmuch added the bug The issue is a bug, or the PR is fixing a bug label Sep 29, 2020
@MaureenHelm MaureenHelm added the priority: low Low impact/importance bug label Sep 29, 2020
@cvinayak
Copy link
Contributor

@mfinmuch Have you added your files to CMakeLists.txt file?

@mfinmuch
Copy link
Author

@mfinmuch Have you added your files to CMakeLists.txt file?
Thanks!!!! I am a bit unfamiliar with cmakefile.txt
I add
zephyr_library_sources( ll_sw/neat.c ) zephyr_library_sources_ifdef( CONFIG_BT_LLL_VENDOR_NORDIC ll_sw/nordic/lll/lll_master.c )
in 'if(CONFIG_BT_CENTRAL)'
and it finally build completed!!!!!!
There are lots of CMakeLists.txt in every folder but I added is under /zephyr/subsys/bluetooth/controller

@pabigot
Copy link
Collaborator

pabigot commented Sep 30, 2020

From what I can tell this has been resolved. Please re-open if that's not true.

@pabigot pabigot closed this as completed Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants