This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

L2CAP Protocol

I am looking to use the L2CAP in the basic form.  I see that there is the Experimental OTS example in SDK 17.0.2

this only uses the S132 Softdevice.  I am looking to target the nRF52810 and the S113 Softdevice.

The S113 mentions that it supports L2CAP connection Oriented Channels.

Can i target the OTS example to the nRF52810 with S113 and have it work.

Is there any other reason the documentation only suggests the S132 and S140 and not the S113?

https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_ots.html

Parents Reply Children
  • Hi,

    It looks like the project is correctly set up for emulating the nRF52810 using an nRF52832 DK.

    There is still a preprocessor define NRF52_PAN_74, which is not needed for the NRF52810. It should not be needed on emulated projects, as the required workarounds should be included indirectly through the DEVELOP_IN_NRF52832 define that you also (correctly) have added to the project. However, I do not think that should affect anything.

    In order to run the project on an nRF52810 you must follow the steps in Transferring the project to nRF52810 hardware. However, from what I understand, you currently want to run it on an nRF52832 DK, and for that the project looks correct, yes.

    Regards,
    Terje

  • Thanks for looking it over.  I am still not able to compile the example.  I get alot of linker issues. 

      

    any thoughts?

  • Hi,

    I am sorry for the delay.

    Was that from a clean build, or may some object files remain from previous builds where the target was different?

    There might be some issue with the memory settings.

    41172 bytes is a lot.

    May there be remaining files in the project that are for nRF52832, that should have been removed for nRF52810?

    Did you check both with and without the NRF52_PAN_74 define?

    Regards,
    Terje

  • Yes this was a clean build and i get the same result with and without NRF52_PAN_74.  The memory settings seem strange since the PCA10040 S132 build uses only 32KB RAM, and this appears to say i am over by 41K (this is because i disabled Logging.  If i enable logging i am 62K over).  I am not sure what elements i am missing to shrink this

  • Hi,

    Yes, indeed. Something is definitely off regarding the flash usage. There are some source files that results in particularly large object files, in particular under the following folders in the project explorer:

    • Board Definition: Almost 5 times the size, but not much in overall flash usage as it is small.
    • None: 12 times the size, increased from 1.3K to 16.2K.
    • Most other folders has an increase between 2 and 3 times.

    I have not found out why this is so. I suggest doing the porting again from scratch, but to do small changes at the time and watch the build sizes reported by SES, in order to figure out where it all gets blown up in terms of flash usage.

    Regards,
    Terje

Related