I gor NRF_ERROR_FORBIDDEN return value when I called "sd_ble_gatts_characteristic_add" to add a new charateristic.

NRF_ERROR_FORBIDDEN  Forbidden value supplied, certain UUIDs are reserved for the stack.

I was developing a new sw in demo board. I have added some new services  and charateristics inmy project, and I tested it ,it was ok. I can find these services and charateristics . 

however when i was adding a new charateristic with a UUID 0x0030 ,I gor NRF_ERROR_FORBIDDEN return value when I called "sd_ble_gatts_characteristic_add" to add a new charateristic. (code is shown on  below pictures )

my questions : which UUIDS are reserved for the stack( S130  SwDevice ). where can i get a table of reserved UUID. so taht I can know which UUIDs i can use .

Parents Reply Children
  • AlanBle said:
    and I found that if set this var(attr_tab_size) more than 0 , chip will die.

    When you write dies, what does that mean? Did you debug, and what did you find?

    If I am to guess, perhaps adjusting the atribute table sizea increases the SoftDevice RAM usage so that it overlaps wiith the application's RAM region. To fix this, you can adjust the application RAM start address, and reduce the size correspondingly. This values does not need to be exact, so that it is OK to give the SoftDevice a lot of head-room as long as you still have enough RAM for your application.

Related