How to minimize the code size of peer manager?(SDK12, S130)

henryli gravatar image

asked 2016-10-19 05:58:41 +0100

Hi Nordic, I started from an empty project with peripherial control first, the code size is about 12KB. Then after adding peer manager and related code(fstorage, fds and etc.), the code size become 27KB.In order not to reach the code size 32KB limitation of KEIL. Please kindly tell me how to simplify the extra 15KB size usage of peer manager. Thanks.

edit retag flag offensive close delete report spam


I'm not sure if it can be reduced, but I will look into it. Could you explain a bit more about your requirements? What do you require from the Peer Manager?

Petter Myhre ( 2016-10-19 12:14:27 +0100 )editconvert to answer

Hi Petter, The peer manager cost me about 15KB code size, we just need our device to be a ble_peripheral, advertising and provide services for host connection. Thanks.

Henry ( 2016-10-19 12:21:39 +0100 )editconvert to answer

It can be that without Peer Manager, but if you need bonding you can use Peer Manager. If you only need pairing, this is pretty easy to implement without the Peer Manager.

Petter Myhre ( 2016-10-19 12:29:40 +0100 )editconvert to answer