Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bbf70c7

Browse filesBrowse files
committed
Add fixed patch for adesto qspi memories
1 parent 949c70c commit bbf70c7
Copy full SHA for bbf70c7

File tree

Expand file treeCollapse file tree

1 file changed

+32
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+32
-0
lines changed
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 17846ae87bbb88df38ef2230566ca18076e7f09f Mon Sep 17 00:00:00 2001
2+
From: Martino Facchin <m.facchin@arduino.cc>
3+
Date: Mon, 2 Jan 2023 09:40:40 +0100
4+
Subject: [PATCH] QSPI: apply Adesto quirk only for AT25SF128A
5+
6+
Fixes https://github.com/arduino/ArduinoCore-mbed/issues/600
7+
---
8+
.../COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp | 8 +++++---
9+
1 file changed, 5 insertions(+), 3 deletions(-)
10+
11+
diff --git a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
12+
index 05968ba7b1..cd21a7354d 100644
13+
--- a/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
14+
+++ b/storage/blockdevice/COMPONENT_QSPIF/source/QSPIFBlockDevice.cpp
15+
@@ -1172,9 +1172,11 @@ int QSPIFBlockDevice::_handle_vendor_quirks()
16+
break;
17+
case 0x1f:
18+
// Adesto device
19+
- tr_debug("Applying quirks for Adesto AT25SF128A");
20+
- _write_status_reg_2_inst = 0x31;
21+
- _AT25SF128A_quirk = true;
22+
+ if (vendor_device_ids[1] == 0x89) {
23+
+ tr_debug("Applying quirks for Adesto AT25SF128A");
24+
+ _write_status_reg_2_inst = 0x31;
25+
+ _AT25SF128A_quirk = true;
26+
+ }
27+
break;
28+
}
29+
30+
--
31+
2.39.0
32+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.