Hi. I'm trying to add GAP Scanning to Project Zero. For this, I've updated TOOLS/build_config.opt of the stack library project from
-DHOST_CONFIG=PERIPHERAL_CFG
to
-DHOST_CONFIG=PERIPHERAL_CFG+OBSERVER_CFG
And changed Application/ProjectZero.c in the main project from
GAP_DeviceInit(GAP_PROFILE_PERIPHERAL, selfEntity, ADDRMODE_PUBLIC, NULL);
to
GAP_DeviceInit( /* GAP_PROFILE_PERIPHERAL | GAP_PROFILE_OBSERVER, selfEntity, ADDRMODE_PUBLIC, NULL);
However, GAP_DeviceInit returns status = 0x02 now. What does error 0x02 mean? Where are the error codes defined?
How can I add GAP Scanning?
(I've tried the multi-role example, but the code gets stuck in NOROM_SetupTrimDevice() at chipinfo.c:204 - which might be related to using an early device, I'll re-try with new Launchpad soon. I'm also irritated that Project Zero has about 200 kB code, while multi-role only has 100 kB).
Thanks
Matthias