Skip to content

Commit

Permalink
v4.0.1
Browse files Browse the repository at this point in the history
* 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).
  • Loading branch information
mcoracin committed Jun 8, 2016
1 parent 749abc8 commit a67c7d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libloragw/src/loragw_reg.c
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down
8 changes: 8 additions & 0 deletions readme.md
Expand Up @@ -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.
Expand Down

0 comments on commit a67c7d5

Please sign in to comment.