Certainly odd, I just added a ReadNBO (lines 11-14), rebuild SED and broadcast from Coordinator and it works.
case ZPS_EVENT_APS_DATA_INDICATION:
{
DBG_vPrintf(TRACE_APP, "APP: APP_taskEndPoint: ZPS_EVENT_AF_DATA_INDICATION\n");
DBG_vPrintf(TRACE_APP, " Data Indication:\r\n");
DBG_vPrintf(TRACE_APP, " Profile :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ProfileId);
DBG_vPrintf(TRACE_APP, " Cluster :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ClusterId);
DBG_vPrintf(TRACE_APP, " EndPoint:%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u8DstEndpoint);
uint8 u8TempPayload;
uint16 u16bytesread;
u16bytesread = PDUM_u16APduInstanceReadNBO(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst,0,"b",&u8TempPayload);
DBG_vPrintf(TRACE_APP, "Read: %d, Data: %c", u16bytesread, u8TempPayload);
PDUM_eAPduFreeAPduInstance(sStackEvent.uEvent.sApsDataIndEvent.hAPduInst);
}
Do you have any APDU changes to ZBProAppTemplate.zpscfg ?

Edit: I'll try the reverse like your case, SED -> Coordinator.
Just hardcoded a quick broadcast code to the SED. It works.
PUBLIC void vWakeCallBack(void)
{
DBG_vPrintf(TRACE_APP, "APP: Polling for data\n");
ZPS_eAplZdoPoll();
uint8 u8TransactionSequenceNumber;
ZPS_tsNwkNib * thisNib;
thisNib = ZPS_psNwkNibGetHandle(ZPS_pvAplZdoGetNwkHandle());
PDUM_thAPduInstance hAPduInst;
hAPduInst = PDUM_hAPduAllocateAPduInstance(apduMyData);
uint16 u16Offset = 0;
uint16 i;
u16Offset = 0;
uint8 buffer[] = "idontknow";
for (i = 0; i < 5; i++) {
u16Offset += PDUM_u16APduInstanceWriteNBO(hAPduInst, u16Offset,"b", *(buffer + i));
DBG_vPrintf(TRUE, "%c", *(buffer + i));
}
PDUM_eAPduInstanceSetPayloadSize(hAPduInst, u16Offset);
DBG_vPrintf(TRUE, "Size : %d\nSending : \n", PDUM_u16APduInstanceGetPayloadSize(hAPduInst));
if (hAPduInst == PDUM_INVALID_HANDLE)
{
DBG_vPrintf(TRUE, "PDUM_INVALID_HANDLE\n");
} else {
ZPS_teStatus eStatus;
ZPS_teAplAfSecurityMode eSecurityMode = (ZPS_E_APL_AF_SECURE_NWK);
eStatus = ZPS_eAplAfBroadcastDataReq( hAPduInst,
0x1337,
0x01,
0x01,
ZPS_E_BROADCAST_ZC_ZR,
eSecurityMode,
0,
&u8TransactionSequenceNumber
);
}
}
Result from Coordinator,
APP: APP_taskEndPoint: ZPS_EVENT_AF_DATA_INDICATION
Data Indication:
Profile :1234
Cluster :1337
From :4e99
EndPoint:1
Payload Length:5
Payload : idont