File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
boards/trellis_m4_express Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
#define CIRCUITPY_MCU_FAMILY samd51
5
5
6
- // This is for Rev A
6
+ // This is for a purple prototype which is Rev C
7
7
#define MICROPY_HW_APA102_MOSI (&pin_PA01)
8
8
#define MICROPY_HW_APA102_SCK (&pin_PA00)
9
9
28
28
#include "external_flash/devices.h"
29
29
30
30
#define EXTERNAL_FLASH_DEVICE_COUNT 1
31
- #define EXTERNAL_FLASH_DEVICES GD25Q64C
31
+ #define EXTERNAL_FLASH_DEVICES W25Q128JV_SQ
32
32
33
33
#include "external_flash/external_flash.h"
34
34
Original file line number Diff line number Diff line change @@ -266,5 +266,23 @@ typedef struct {
266
266
}
267
267
268
268
269
+ // Settings for the Winbond W25Q128JV-SQ 8MiB SPI flash. Note that JV-IM has a different .memory_type (0x70)
270
+ // Datasheet: https://www.winbond.com/resource-files/w25q128jv%20revf%2003272018%20plus.pdf
271
+ #define W25Q128JV_SQ {\
272
+ .total_size = (1 << 23), /* 16 MiB */ \
273
+ .start_up_time_us = 5000, \
274
+ .manufacturer_id = 0xef, \
275
+ .memory_type = 0x40, \
276
+ .capacity = 0x18, \
277
+ .max_clock_speed_mhz = 133, \
278
+ .has_sector_protection = false, \
279
+ .supports_fast_read = true, \
280
+ .supports_qspi = true, \
281
+ .has_quad_enable = true, \
282
+ .supports_qspi_writes = true, \
283
+ .write_status_register_split = false, \
284
+ }
285
+
286
+
269
287
270
288
#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_DEVICES_H
You can’t perform that action at this time.
0 commit comments