Skip to content

Commit a67c7d5

Browse files
committed
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).
1 parent 749abc8 commit a67c7d5

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

libloragw/src/loragw_reg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Maintainer: Sylvain Miermont
4848
#define PAGE_ADDR 0x00
4949
#define PAGE_MASK 0x03
5050

51-
const uint8_t FPGA_VERSION[] = { 18, 19, 27 }; /* several versions supported */
51+
const uint8_t FPGA_VERSION[] = { 27 }; /* several versions could be supported */
5252

5353
/*
5454
auto generated register mapping for C code : 11-Jul-2013 13:20:40
@@ -521,7 +521,7 @@ int lgw_connect(void) {
521521
}
522522
if (check_fpga_version(u) != true) {
523523
/* We failed to read expected FPGA version, so let's assume there is no FPGA */
524-
DEBUG_MSG("INFO: no FPGA detected\n");
524+
DEBUG_PRINTF("INFO: no FPGA detected or version not supported (v%u)\n", u);
525525
lgw_spi_mux_mode = LGW_SPI_MUX_MODE0;
526526
} else {
527527
DEBUG_PRINTF("INFO: detected FPGA with SPI mux header (v%u)\n", u);
@@ -536,7 +536,7 @@ int lgw_connect(void) {
536536
/* check SX1301 version */
537537
spi_stat |= lgw_spi_r(lgw_spi_target, lgw_spi_mux_mode, LGW_SPI_MUX_TARGET_SX1301, loregs[LGW_VERSION].addr, &u);
538538
if (u != loregs[LGW_VERSION].dflt) {
539-
DEBUG_MSG("ERROR: NOT EXPECTED CHIP VERSION\n");
539+
DEBUG_PRINTF("ERROR: NOT EXPECTED CHIP VERSION (v%u)\n", u);
540540
return LGW_REG_ERROR;
541541
}
542542

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ chip through GPIO, before starting any application using the concentrator.
7070
4. Changelog
7171
-------------
7272

73+
### v4.0.1 ###
74+
75+
* HAL: SX1301AP2: Only FPGA v27 is supported, removed (v18,v19) from the list
76+
of supported FPGA images.
77+
78+
WARNING: If you are using a Semtech SX1301AP2 ref design (GW1.5), the FPGA must
79+
be reprogrammed with one of the images provided with this release (fpga/ dir).
80+
7381
### v4.0.0 ###
7482

7583
* HAL: Added "Listen-Before-Talk" support for Semtech SX1301AP2 Ref Design.

0 commit comments

Comments
 (0)