[riot-notifications] [RIOT-OS/RIOT] cpu/sam0_common: SPI: add support for QSPI in SPI mode (#15361)

benpicco notifications at github.com
Tue Nov 24 20:48:10 CET 2020


Uh no it must be me who is doing something wrong: Switching to 32 bit address mode only works *sometimes*

With this patch, the test works:

```patch
--- a/boards/same54-xpro/board.c
+++ b/boards/same54-xpro/board.c
@@ -38,7 +38,7 @@ static const mtd_spi_nor_params_t _same54_nor_params = {
     .cs   = SAM0_QSPI_PIN_CS,
     .wp   = SAM0_QSPI_PIN_DATA_2,
     .hold = SAM0_QSPI_PIN_DATA_3,
-    .addr_width = 4,
+    .addr_width = 3,
 };
 
 static mtd_spi_nor_t same54_nor_dev = {
@@ -46,6 +46,7 @@ static mtd_spi_nor_t same54_nor_dev = {
         .driver = &mtd_spi_nor_driver,
         .page_size = 256,
         .pages_per_sector = 16,
+        .sector_count = 4096, /* only 16 MiB can be addressed in 24 bit mode */
     },
     .params = &_same54_nor_params,
 };
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15361#issuecomment-733195561
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201124/ebfa6991/attachment.htm>


More information about the notifications mailing list