Skip to content

Commit

Permalink
[nRF52] a fix against boot issue on Cozy and Card Editions
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Sep 5, 2024
1 parent 6d6880c commit 7f8c001
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions software/firmware/source/SoftRF/src/driver/EEPROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ void EEPROM_defaults()
hw_info.model == SOFTRF_MODEL_ES ?
NMEA_OFF :
hw_info.model == SOFTRF_MODEL_ACADEMY ||
hw_info.model == SOFTRF_MODEL_CARD ||
hw_info.model == SOFTRF_MODEL_LEGO ?
NMEA_USB : NMEA_UART;
#endif
Expand Down
34 changes: 34 additions & 0 deletions software/firmware/source/SoftRF/src/platform/nRF52.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,9 +887,15 @@ static void nRF52_setup()
break;
case NRF52_SEEED_T1000E:
Serial1.setPins(SOC_GPIO_PIN_CONS_T1000_RX, SOC_GPIO_PIN_CONS_T1000_TX);
#if defined(EXCLUDE_WIFI)
Serial1.begin(SERIAL_OUT_BR, SERIAL_OUT_BITS);
#endif /* EXCLUDE_WIFI */
break;
case NRF52_HELTEC_T114:
Serial1.setPins(SOC_GPIO_PIN_CONS_T114_RX, SOC_GPIO_PIN_CONS_T114_TX);
#if defined(EXCLUDE_WIFI)
Serial1.begin(SERIAL_OUT_BR, SERIAL_OUT_BITS);
#endif /* EXCLUDE_WIFI */
break;
case NRF52_LILYGO_TECHO_REV_0:
case NRF52_LILYGO_TECHO_REV_1:
Expand Down Expand Up @@ -1068,6 +1074,7 @@ static void nRF52_setup()
lmic_pins.dio[0] = SOC_GPIO_PIN_T1000_DIO9;
#endif /* USE_RADIOLIB */

hw_info.revision = 3; /* Unknown */
break;

case NRF52_HELTEC_T114:
Expand All @@ -1086,6 +1093,7 @@ static void nRF52_setup()
lmic_pins.dio[0] = SOC_GPIO_PIN_T114_DIO1;
#endif /* USE_RADIOLIB */

hw_info.revision = 3; /* Unknown */
break;

case NRF52_NORDIC_PCA10059:
Expand Down Expand Up @@ -1322,6 +1330,32 @@ static void nRF52_post_init()
}
#endif /* USE_EXT_I2S_DAC */
}
} else if (nRF52_board == NRF52_SEEED_T1000E) {
Serial.println();
Serial.println(F("Seeed T1000-E Power-on Self Test"));
Serial.println();
Serial.flush();

Serial.println(F("Built-in components:"));

Serial.print(F("RADIO : "));
Serial.println(hw_info.rf == RF_IC_LR1110 ? F("PASS") : F("FAIL"));
Serial.flush();
Serial.print(F("GNSS : "));
Serial.println(hw_info.gnss == GNSS_MODULE_AG33 ? F("PASS") : F("FAIL"));
Serial.flush();

#if !defined(EXCLUDE_IMU)
Serial.print(F("IMU : "));
Serial.println(hw_info.imu == ACC_QMA6100P ? F("PASS") : F("FAIL"));
Serial.flush();
#endif /* EXCLUDE_IMU */

Serial.println();
Serial.println(F("Power-on Self Test is complete."));
Serial.println();
Serial.flush();

} else if (nRF52_board == NRF52_NORDIC_PCA10059) {
Serial.println();
Serial.println(F("Board: Nordic PCA10059 USB Dongle"));
Expand Down

0 comments on commit 7f8c001

Please sign in to comment.