Commit 166a71c
committed
Do not set flash wait states to 1 by default
Back when I implemented this, I was under the assumption that 1 wait
state was a safe default value that should work for all configurations,
although not always be optimal. This turned out to be wrong.
I've seen a weird case, where the USB peripheral could get into a state
where it would no longer send data. This only happened with the number
of wait states set to 1. I don't know how other voltage range and core
frequency configurations might affect this.
I think the best option to now is to leave this configuration up to the
user, which is why I've added a method to the Flash API to configure it.1 parent e086879 commit 166a71c
1 file changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 81 | | |
84 | 82 | | |
85 | 83 | | |
| |||
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
0 commit comments