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

Adding NUS service in thingy52 SDK

Hi,

I am developing a beacon scanner on NORDIC Thingy 52 using Nordic thingy52 SDK, Now I want to add NUS(Nordic UART service) in my code to send data to the client(ESP32).

I used the nRF5_SDK_13.1.0_7ca7556\examples\ble_peripheral\ble_app_uart_c example to import the NUS service in my thingy SDK.

But when I try to run, My application crashes when executing this code

err_code = sd_ble_uuid_vs_add(&nus_base_uuid, &p_ble_nus_c->uuid_type);
VERIFY_SUCCESS(err_code);

 

And after this, the error 4 is returned from sd_ble_uuid_vs_add() function.

I think the possible error is:
1 - I need to set the RAM_START and RAM_SIZE values. But how can I find a correct value from RAM_SIZE?

Thanks & Regards

Raj 

Parents
  • Hi Raj

    If you've exceeded the RAM_START/RAM_SIZE you should get a message from the IDE saying what you should set RAM_START/RAM_SIZE as. If you're not able to see a recommended change, you can try increasing the RAM a bit and see if that helps.

    As to how you do it, please check out the Adjustment of RAM and Flash memory. Please note that you need to edit both parameters when changing one, as RAM Size needs to be decreased by the same amount that RAM Start is increased, so that the total RAM available stays the same.

    Best regards,

    Simon

Reply
  • Hi Raj

    If you've exceeded the RAM_START/RAM_SIZE you should get a message from the IDE saying what you should set RAM_START/RAM_SIZE as. If you're not able to see a recommended change, you can try increasing the RAM a bit and see if that helps.

    As to how you do it, please check out the Adjustment of RAM and Flash memory. Please note that you need to edit both parameters when changing one, as RAM Size needs to be decreased by the same amount that RAM Start is increased, so that the total RAM available stays the same.

    Best regards,

    Simon

Children
No Data
Related