From a67c7d503a9847c336f83e362fa3b573113a82f7 Mon Sep 17 00:00:00 2001 From: Michael Coracin Date: Wed, 8 Jun 2016 15:59:50 +0200 Subject: [PATCH] v4.0.1 * HAL: SX1301AP2: Only FPGA v27 is supported, removed (v18,v19) from the list of supported FPGA images. WARNING: If you are using a Semtech SX1301AP2 ref design (GW1.5), the FPGA must be reprogrammed with one of the images provided with this release (fpga/ dir). --- libloragw/src/loragw_reg.c | 6 +++--- readme.md | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libloragw/src/loragw_reg.c b/libloragw/src/loragw_reg.c index 3f3c7e26..7fe0f67f 100644 --- a/libloragw/src/loragw_reg.c +++ b/libloragw/src/loragw_reg.c @@ -48,7 +48,7 @@ Maintainer: Sylvain Miermont #define PAGE_ADDR 0x00 #define PAGE_MASK 0x03 -const uint8_t FPGA_VERSION[] = { 18, 19, 27 }; /* several versions supported */ +const uint8_t FPGA_VERSION[] = { 27 }; /* several versions could be supported */ /* auto generated register mapping for C code : 11-Jul-2013 13:20:40 @@ -521,7 +521,7 @@ int lgw_connect(void) { } if (check_fpga_version(u) != true) { /* We failed to read expected FPGA version, so let's assume there is no FPGA */ - DEBUG_MSG("INFO: no FPGA detected\n"); + DEBUG_PRINTF("INFO: no FPGA detected or version not supported (v%u)\n", u); lgw_spi_mux_mode = LGW_SPI_MUX_MODE0; } else { DEBUG_PRINTF("INFO: detected FPGA with SPI mux header (v%u)\n", u); @@ -536,7 +536,7 @@ int lgw_connect(void) { /* check SX1301 version */ spi_stat |= lgw_spi_r(lgw_spi_target, lgw_spi_mux_mode, LGW_SPI_MUX_TARGET_SX1301, loregs[LGW_VERSION].addr, &u); if (u != loregs[LGW_VERSION].dflt) { - DEBUG_MSG("ERROR: NOT EXPECTED CHIP VERSION\n"); + DEBUG_PRINTF("ERROR: NOT EXPECTED CHIP VERSION (v%u)\n", u); return LGW_REG_ERROR; } diff --git a/readme.md b/readme.md index 68b9ddab..22d60b6d 100644 --- a/readme.md +++ b/readme.md @@ -70,6 +70,14 @@ chip through GPIO, before starting any application using the concentrator. 4. Changelog ------------- +### v4.0.1 ### + +* HAL: SX1301AP2: Only FPGA v27 is supported, removed (v18,v19) from the list + of supported FPGA images. + +WARNING: If you are using a Semtech SX1301AP2 ref design (GW1.5), the FPGA must +be reprogrammed with one of the images provided with this release (fpga/ dir). + ### v4.0.0 ### * HAL: Added "Listen-Before-Talk" support for Semtech SX1301AP2 Ref Design.