Unable to connect to SX1261 radio

Hello, I am using the MAX32625LoRaKit and trying to implement a sensor to send data over the lorawan network. I am able to connect using the original code flashed in the dev board by the manufacturer but when I try to reflash the basicmac code, I am unable to connect to the miroEdge LoraWAN gateway using the SX1261 radio. I have updated the device and network euis in the code.

I have uploaded the serial data received