Thank you spell.
I have set all mac parameters (address, conflict detection, start time, association permit,
beacon & superframe order, rx when idle)
My sync works like that:
/* Now send the MLME-Sync Request. We choose to let the MAC track
the beacons on the logical channel obtained by the passive scan.*/
pMsgOut->msgType = gMlmeSyncReq_c;
pMsgOut->msgData.syncReq.trackBeacon = TRUE;
pMsgOut->msgData.syncReq.logicalChannel = mCoordInfo.logicalChannel;
(void)MSG_Send(NWK_MLME, pMsgOut);
So I think that the sync is OK.
It is done after the passive scan.
I tried many values of StartTime in the range: [0; 2^20], but the result doesn't change.
What is wrong? I can't understand.
PS:

Leonardo