-
-
Notifications
You must be signed in to change notification settings - Fork 749
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
52840/sdk15 boards - no output over BLE without having -DCENTRAL_LINK_COUNT=1 in board file #2420
Comments
Oh, it works for SDK12 because |
Oh, I see you moved it from SDK12 part in e51db23 I guess the test was there because of microbit1/nrf51 and not peer manager so it can be removed for SDK15? Created PR with this change. |
Thanks for tracking this down! I guess my only concern is does this leave I assume it's probably set somewhere or it likely wouldn't build (maybe it's a default in sdk_config.h), but...
I think it probably makes sense doing that to be more explicit, as I think the peer manager is needed for central mode... |
Yes it looks undefined, this
added here
I think it is needed for bonding and secure conenctions so if this is not used, Peer Manager it is not needed, however it looks like currently it works for BANGLEJS2 insludin bonding without this Anyway I'd say CENTRAL_COUNT value is unrelated to peer manager being on/off even if currently missing PEER_MANAGER_ENABLED for SDK!=12 may be a bug. |
Oh, no, sorry, forget it that is wrong #endif, so looks like PEER_MANAGER_ENABLED is defined |
Ok, thanks for checking that out! Is PEER_MANAGER_ENABLED still defined in your SDK15 build without As you say peer manager may not be needed - however it's possible things may behave a bit strangely without it. I've never tested central with it not enabled |
Yes. When just commenting out It probably gets defined later from this place https://github.com/espruino/Espruino/blob/master/targetlibs/nrf5x_15/nrf52_config/sdk_config.h#L120 |
Thanks! Ok, that's good then. I just added a line in to set PEER_MANAGER in app_config - I know it's not needed but I think it might be helpful to have it all in one place |
This does not work for some reason
https://github.com/espruino/Espruino/blob/62acf92dd9cd718bfb4c1c013f67b0c80fc1a489/targets/nrf5x/app_config.h#L181C3-L181C3
with this patch
I get
Espruino/targets/nrf5x/app_config.h:185:2: error: #error Central is 0
when building for BANGLEJS2Not sure why PEER_MANAGER_ENABLED is undefined there, it is also tested in NRF5X_SDK_12 section above and that maybe works?
Noticed because I have older board files without the -DCENTRAL_LINK_COUNT lines and with fresh build I see no console output when connecting and also
process.env.APP_RAM_BASE.toString(16)
was lower than expected. Adding explicit'DEFINES += -DCENTRAL_LINK_COUNT=1 -DNRF_SDH_BLE_CENTRAL_LINK_COUNT=1',
helped.The text was updated successfully, but these errors were encountered: