Size of data bytes

Hello,

i'm programing a nrf52832 and a nrf52805 and I'm using the peripheral uart example, I would like to change the size of the bytes of my rx and tx that I can send (150 or less) because for now this is 20 characters maximum.

I already tried to change the size of NRF_SDH_BLE_GATT_MAX_MTU_SIZE. He has a valor of 247 but my program is not working after that.

Thank you so much for your help. 

Parents
  • Hello, i would like to know if i'm changing the right infos. I would to send possibly (and see it correctly on my app of course 150 characters) 

    #if (NRF_SDH_BLE_GATT_MAX_MTU_SIZE != 153? 23? )  

    #define RAM_START 0x20002968 ? 0x20000000 ?

    I would like if i have to change those two infos 

    concerning the ram and flash (because like you said i read the post that you give me) 

    When I'm changing the ram by the number that there are suggesting to put differents values. Do you have the procedure with correct values? thank you so much if you help me. Have a good day

Reply
  • Hello, i would like to know if i'm changing the right infos. I would to send possibly (and see it correctly on my app of course 150 characters) 

    #if (NRF_SDH_BLE_GATT_MAX_MTU_SIZE != 153? 23? )  

    #define RAM_START 0x20002968 ? 0x20000000 ?

    I would like if i have to change those two infos 

    concerning the ram and flash (because like you said i read the post that you give me) 

    When I'm changing the ram by the number that there are suggesting to put differents values. Do you have the procedure with correct values? thank you so much if you help me. Have a good day

Children
  • Hi 

    You mean you want to be able to change this back and forth without having to change the project settings?

    I think the best way to do this is to add another build configuration in Segger Embedded Studio, then you can set the RAM settings correctly for each build configuration, and switch easily between the two in the SES interface. 

    You just have to click "Edit Configurations" in the build target drop down (see screenshot), and add one or more two build targets. Then you can have separate build targets for short and long MTU, and switch between them as needed. 

    I can't tell exactly how much RAM you will need in these cases, since that depends on many different configuration settings, which SoftDevice you use and so forth. 

    What I can say is that RAM_START will never be 0x20000000, since the SoftDevice will always require some RAM regardless of configuration. 

    Best regards
    Torbjørn

  • Hello,

    thank you for help concerning the RAM but actually i would like to just increase the 20 characters that i can send for now with 200 characters,

    i was looking for in dev zone but couldn't find nothing really clear by the procedure for doing that.

    When i'm on my app i just want to see more characters ( rx and tx same request) and this is not the case for now. 

    Do you have an explanation? 

    Thank you again and in advance for your help.

    Best regards.

Related