Hi,
We are developing a wireless protocol based upon 802.15.4 for nRF52840 and have some trouble with the MAC layer. To begin with, a mlme reset is requested and then an active scan.
The first issue is memory allocation, using sys_mm_alloc() to allocate memory (it is initialized beforehand) results in no callbacks after requests for either reset or scan. If swapped out for malloc instead the callbacks occur.
The reset callback seems to be fine but the scan confimation data is weird. For each channel scanned a PAN is found with id 0, the only PAN that should be found is a zigbee coordinator with an ID that is not 0 on channel 11. It also seems sys_task_run must be run for the callbacks to happen, but it is not clear whether it is required to use the system scheduler or not for 802.15.4
Questions:
1. Is the system scheduler required for using the 802.15.4 primitives?
2. Is the system memory allocater required or is using malloc fine?
3. Is there any SDK_CONFIG parameters that need to be set?
4. Is the source code available somewhere?
The sdk used is nRF5 SDK
Thanks in advance