RAK2247 spi communication failure

Hi all,

I built libloragw test packages according my board arch doing cross-compile.

When i start test_loragw_reg and test_loragw_spi files , i faced output below at the same time i tried basicstation or packet forwarder module to connecting network , cannot connect cause of spi failure.

[email protected]:~# ./test_loragw_reg 
Beginning of test for loragw_reg.c
Note: SPI port opened and configured ok
Note: SPI read success
lgw_connect:533: INFO: no FPGA detected or version not supported (v0)
Note: SPI read success
lgw_connect:556: ERROR: NOT EXPECTED CHIP VERSION (v0)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
IMPLICIT_PAYLOAD_LENGHT = 2011910816 (should be 197)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
FRAME_SYNCH_PEAK2_POS = 2011910816 (should be 11)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
PREAMBLE_SYMB1_NB = 2011910816 (should be 49253)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ADJUST_MODEM_START_OFFSET_SF12_RDX4 = 2011910816 (should be 3173)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
IF_FREQ_1 = 2011910816 (should be -1947)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
Note: SPI port closed
Note: success disconnecting the concentrator
End of test for loragw_reg.c
[email protected]:~# ./test_loragw_spi 
Beginning of test for loragw_spi.c
Note: SPI port opened and configured ok
WARNING: SPI address > 127
Note: SPI write success
Note: SPI read success
lgw_spi_wb:311: BURST WRITE: to trans 16 # chunk 16 # transferred 16 
Note: SPI burst write success
lgw_spi_rb:373: BURST READ: to trans 16 # chunk 16 # transferred 16 
Note: SPI burst read success
lgw_spi_wb:311: BURST WRITE: to trans 2500 # chunk 1024 # transferred 1024 
lgw_spi_wb:311: BURST WRITE: to trans 1476 # chunk 1024 # transferred 2048 
lgw_spi_wb:311: BURST WRITE: to trans 452 # chunk 452 # transferred 2500 
Note: SPI burst write success
lgw_spi_rb:373: BURST READ: to trans 2500 # chunk 1024 # transferred 1024 
lgw_spi_rb:373: BURST READ: to trans 1476 # chunk 1024 # transferred 2048 
lgw_spi_rb:373: BURST READ: to trans 452 # chunk 452 # transferred 2500 
Note: SPI burst read success
Note: SPI read success
data received (simple read): 0
Note: SPI port closed
End of test for loragw_spi.c

How can i fix this ?