hello Nordic
i am working with nre52840 and nrf52832, with ncs v2.8.0
i am using ble SMP service for transferring data with a central device and for DFU.
currently i am using this config CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE in my prj.conf so i can have larger buffer to increase throughput.
but using it like so take static memory.
in my app i have a stage when BLE is working and then another stage where BLE is off and its threads, buffers are free for other uses of the app (i manage it with my own heap pool).
i am looking for a way to dynamically allocate this buffer so i can both use larger size (i am limited statically) and to reduce static ram take.
i looked at this config CONFIG_MCUMGR_TRANSPORT_BT_DYNAMIC_SVC_REGISTRATION
wonder if i have to use it or if setting CONFIG_MCUMGR_TRANSPORT_NETBUF_SIZE = 0 is enough
or maybe i should use this macro some how - NET_BUF_POOL_DEFINE ?
is there an API i can use to give mcumgr the pointer for the buffer and initialize and close the mcumgr each time i start the BLE and close it
i am off course open to other way to achieve that if there are
hope to read you soon
best regards
Ziv