Commit e8f3249
committed
Add capability to force stay in DFU and erase app with button
This adds a check to see if a button is pressed. If the board button is pressed, stay if dfu mode.
Behavior is currently:
* If button is pressed at power up, enter DFU mode regardless of whether app is valid.
* If button is held longer than a timeout (Default 5 seconds), the app is erased.
* If button is released within the timeout period, the app is booted, if it's valid.1 parent 08c47b9 commit e8f3249
File tree
5 files changed
+233
-48
lines changed- ports/mimxrt10xx
- boards/imxrt1010_evk
- src
5 files changed
+233
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
86 | 107 | | |
87 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
88 | 117 | | |
89 | 118 | | |
90 | 119 | | |
| |||
241 | 270 | | |
242 | 271 | | |
243 | 272 | | |
244 | | - | |
245 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
246 | 277 | | |
247 | 278 | | |
248 | 279 | | |
| |||
253 | 284 | | |
254 | 285 | | |
255 | 286 | | |
256 | | - | |
| 287 | + | |
257 | 288 | | |
258 | 289 | | |
259 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
101 | 131 | | |
102 | 132 | | |
103 | 133 | | |
| |||
251 | 281 | | |
252 | 282 | | |
253 | 283 | | |
| 284 | + | |
| 285 | + | |
254 | 286 | | |
255 | 287 | | |
| 288 | + | |
256 | 289 | | |
257 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
258 | 306 | | |
259 | 307 | | |
260 | 308 | | |
| |||
0 commit comments