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

How to trace function calls in controller code #1638

Open
RayCxggg opened this issue Oct 12, 2023 · 0 comments
Open

How to trace function calls in controller code #1638

RayCxggg opened this issue Oct 12, 2023 · 0 comments

Comments

@RayCxggg
Copy link

Hi, I am trying to trace function calls in the stack controller part. I planned to printf some log when a certain function is called and find out the relationship of different functions.

But I notice that there is no logging output under Mynewt/repos/apache-mynewt-nimble/nimble/controller/src directory. When I added MODLOG_DFLT in functions like ble_ll_rx_end, the peripheral failed in connection establishment due to unknown reason (but it worked in ble_ll_rx_pkt_in). I wonder whether there is a way to print logging information from the controller part, or how I can trace the function calls at runtime.

Highly appreciate!

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

No branches or pull requests

1 participant