@@ -250,7 +250,12 @@ static uint8_t mx25_status_config[3] = {0x00, 0x00, 0x00};
250
250
enum {
251
251
MX25R1635F_INDEX,
252
252
ZD25WQ16B_INDEX,
253
+
254
+ P25Q16H_INDEX,
255
+ GD25Q64C_INDEX,
256
+
253
257
W25Q128JV_INDEX,
258
+
254
259
EXTERNAL_FLASH_DEVICE_COUNT
255
260
};
256
261
@@ -259,6 +264,9 @@ static SPIFlash_Device_t possible_devices[] = {
259
264
// LilyGO T-Echo
260
265
[MX25R1635F_INDEX] = MX25R1635F,
261
266
[ZD25WQ16B_INDEX] = ZD25WQ16B,
267
+ // Seeed T1000-E
268
+ [P25Q16H_INDEX] = P25Q16H,
269
+ [GD25Q64C_INDEX] = GD25Q64C,
262
270
// LilyGO T-Ultima
263
271
[W25Q128JV_INDEX] = W25Q128JV_PM,
264
272
};
@@ -803,7 +811,10 @@ static void nRF52_setup()
803
811
// digitalWrite(OTG_ENABLE_PIN, HIGH);
804
812
} else {
805
813
Wire.end ();
814
+ }
815
+ #endif /* EXCLUDE_PMU */
806
816
817
+ if (nRF52_board != NRF52_LILYGO_TULTIMA) {
807
818
#if !defined(EXCLUDE_IMU)
808
819
pinMode (SOC_GPIO_PIN_T1000_ACC_EN, INPUT_PULLUP);
809
820
delay (5 );
@@ -844,10 +855,15 @@ static void nRF52_setup()
844
855
NRF_POWER->SYSTEMOFF = 1 ;
845
856
#endif /* ARDUINO_ARCH_MBED */
846
857
}
858
+
859
+ pinMode (SOC_GPIO_PIN_SFL_T1000_EN, OUTPUT);
860
+ digitalWrite (SOC_GPIO_PIN_SFL_T1000_EN, HIGH);
861
+
862
+ // pinMode(SOC_GPIO_LED_T1000_RED, OUTPUT);
863
+ // digitalWrite(SOC_GPIO_LED_T1000_RED, HIGH);
847
864
}
848
865
#endif /* EXCLUDE_IMU */
849
866
}
850
- #endif /* EXCLUDE_PMU */
851
867
852
868
#if !defined(ARDUINO_ARCH_MBED) && !defined(ARDUINO_ARCH_ZEPHYR)
853
869
switch (nRF52_board)
@@ -929,6 +945,14 @@ static void nRF52_setup()
929
945
SOC_GPIO_PIN_SFL_WP,
930
946
SOC_GPIO_PIN_SFL_HOLD);
931
947
break ;
948
+ case NRF52_SEEED_T1000E:
949
+ ft = new Adafruit_FlashTransport_QSPI (SOC_GPIO_PIN_SFL_T1000_SCK,
950
+ SOC_GPIO_PIN_SFL_T1000_SS,
951
+ SOC_GPIO_PIN_SFL_T1000_MOSI,
952
+ SOC_GPIO_PIN_SFL_T1000_MISO,
953
+ SOC_GPIO_PIN_SFL_T1000_WP,
954
+ SOC_GPIO_PIN_SFL_T1000_HOLD);
955
+ break ;
932
956
case NRF52_LILYGO_TULTIMA:
933
957
ft = new Adafruit_FlashTransport_QSPI (SOC_GPIO_PIN_SFL_TULTIMA_SCK,
934
958
SOC_GPIO_PIN_SFL_TULTIMA_SS,
@@ -938,7 +962,6 @@ static void nRF52_setup()
938
962
SOC_GPIO_PIN_SFL_TULTIMA_HOLD);
939
963
break ;
940
964
case NRF52_NORDIC_PCA10059:
941
- case NRF52_SEEED_T1000E:
942
965
default :
943
966
break ;
944
967
}
@@ -1606,6 +1629,12 @@ static void nRF52_post_init()
1606
1629
Serial.flush ();
1607
1630
1608
1631
} else if (nRF52_board == NRF52_SEEED_T1000E) {
1632
+ #if 0
1633
+ Serial.println();
1634
+ Serial.print (F("SPI FLASH JEDEC ID: "));
1635
+ Serial.print (spiflash_id, HEX); Serial.print(" ");
1636
+ #endif
1637
+
1609
1638
Serial.println ();
1610
1639
Serial.println (F (" Seeed T1000-E Power-on Self Test" ));
1611
1640
Serial.println ();
@@ -1619,6 +1648,9 @@ static void nRF52_post_init()
1619
1648
Serial.print (F (" GNSS : " ));
1620
1649
Serial.println (hw_info.gnss == GNSS_MODULE_AG33 ? F (" PASS" ) : F (" FAIL" ));
1621
1650
Serial.flush ();
1651
+ Serial.print (F (" FLASH : " ));
1652
+ Serial.println (hw_info.storage == STORAGE_FLASH ? F (" PASS" ) : F (" FAIL" ));
1653
+ Serial.flush ();
1622
1654
1623
1655
#if !defined(EXCLUDE_IMU)
1624
1656
Serial.print (F (" IMU : " ));
@@ -2040,6 +2072,7 @@ static void nRF52_fini(int reason)
2040
2072
pinMode (SOC_GPIO_PIN_T1000_SS, INPUT_PULLUP);
2041
2073
2042
2074
digitalWrite (SOC_GPIO_LED_T1000_GREEN, 1 -LED_STATE_ON);
2075
+ pinMode (SOC_GPIO_PIN_SFL_T1000_EN, INPUT);
2043
2076
pinMode (SOC_GPIO_LED_T1000_GREEN, INPUT);
2044
2077
break ;
2045
2078
0 commit comments