My terminal device has successfully tested OTAA access to the network, but I have encountered difficulties in testing ABP. Always not successful, I should pay attention to those places may lead to the cause of failure.
SecureElementSetKey(F_NWK_S_INT_KEY,g_lwan_dev_keys_p->abp.nwkskey);
SecureElementSetKey(S_NWK_S_INT_KEY,g_lwan_dev_keys_p->abp.nwkskey);
SecureElementSetKey(NWK_S_ENC_KEY,g_lwan_dev_keys_p->abp.nwkskey);
I set F_NWK_S_INT_KEY S_NWK_S_INT_KEY NWK_S_ENC_KEY to the same.