Run multiperipheral of NUS in nRF52810

Dear Nordic support team

I tried to change the sample of ble_app_uart (nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040e) to support connecting 4 mobile phones, but the IDE showed the below error after I changed the RAM start and RAM size.

Do the nRF52810 not support  to run NUS multiperipheral for connecting 4 mobile phones? which chip would most fit this application?

The attachment is my code.

Thank you very much.

8836.pca10040e.7z

  • Hi

    Have you followed the Developing for nRF52810 guide to make the project match the nrf52810 HW? It might also be that the application is simply too large to fit on an nRF52810. What is RAM and Flash START/SIZE set to now? We also have a guide on how to adjust RAM and Flash memory correctly in the nRF5 SDK here.

    Best regards,

    Simon

  • Hi

    Have you followed the Developing for nRF52810 guide to make the project match the nrf52810 HW?

    Yes,but I want  to use nRF52832 of 10040 DK to emulate the functionality of nRF52810 .So I tried to change the sample of ble_app_uart (nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_uart\pca10040e) to support connecting 4 ble central.

    It might also be that the application is simply too large to fit on an nRF52810. What is RAM and Flash START/SIZE set to now?

    As below changed in ble_app_uart\pca10040e.

    And I changed the value of NRF_SDH_BLE_TOTAL_LINK_COUNT to 4 and NRF_SDH_BLE_PERIPHERAL_LINK_COUNT to 4. After I compiled this project, The SES ask me to change the RAM location and size like below.

    I changed the  RAM location and size like below.

    After I compiled this project, but the SES had errors like below.

      

    We also have a guide on how to adjust RAM and Flash memory correctly in the nRF5 SDK here.

    Beacuse of we haven't layout the nRF52810 board yet, So I tested this for confirming whether the nRF52810 is fitted to run ble NUS peripheral of 4 peripheral links. And I want to develop the application on the DK first.

    Before I test these, I have read the s112 requirement like below picture.

    Now I just want to know which nRF52 chip is more suitable for running ble nus peripheral of 4 peripheral links. Is nRF52810 suitable for that?

    Could you recommend a suitable nRF52 chip for us? 

    Many thanks. 

     

  • Hi

    Okay, it seems like you have misunderstood how to set the RAM_SIZE. The RAM_SIZE should be the total RAM RAM_START to get what RAM_SIZE should be set to in the section placement macros. So RAM size should be set to 0x0F90 if my math isn't totally off.

    Best regards,

    Simon

  • Hi

    This project's requirement RAM SIZE is 0xAF90 ,0xAF90 is equal to 43K.

    So, There isn't enough RAM SIZE for nRF52810 to run ble nus peripheral of 4 peripheral links?

  • Hi

    The 0xAF90 was set by you in this screenshot as far as I can tell, so you seem have set the RAM_SIZE to more than the nRF52810 has room for, which  won't leave room for the SoftDevice. This is what the error you're seeing is indicating. 

    What happens if you try to set RAM_SIZE to 0x0F90 instead? I don't think an application with four peripheral links should exceed the nRF52810's RAM.

    Best regards,

    Simon

Related