When I was using LORAWAN 1.0.3, the firmware deployment for fuota was completed. However, I found that the downloaded fragmented firmware was not received successfully. The reason was a verification error during the multicast group distribution. I noticed that the MC_KEY_0 and address I received were correct. Could you please tell me what the possible reason might be? I checked the values of the derived MC_APP_S_KEY and MC_NWK_S_KEY, but they didn't match those of the server.
retval = VerifyCmacB0( macMsg->Buffer, ( macMsg->BufSize - LORAMAC_MIC_FIELD_SIZE ), micComputationKeyID, isAck, DOWNLINK, address, fCntDown, macMsg->MIC );
if( retval != LORAMAC_CRYPTO_SUCCESS )
{
printf("[DBG][%d]\r\n",__LINE__);
return retval;
}
#ifndef USE_LRWAN_1_1_X_CRYPTO
#define USE_LRWAN_1_1_X_CRYPTO 0
#endif