Commit fd1acb5
committed
Remove BTTSKRMINIE3V2_USBMOD, use BTTSKRMINIE3V2 instead
For the past two years I've had only occasional issues with a
BTTSKRMINIE3V2_USBMOD build my the SKR MINI, but after upgrading to a faster Pi
(64-bit OS) for Klipper, some major problems with this mod became evident.
Hard-wiring the USB D+ pullup to 3V3 causes the host to enumerate it as soon as
a soft reset is issued, whereby the firmware (and this bootloader) have not had
time to properly initialize and get USB ready. This stalls USB hubs, times out
the Ethernet controller on Raspberry Pis, and causes all kinds of other issues,
thus, I'm discouraging its use and removing the target.
Regarding the debugging difficulties motivating BTTSKRMINIE3V2_USBMOD, they can
be solved with a proper debugging setup. I'm able to successfully debug the MCU
even with the USB pullup MOSFET and the STATUS LED attached to SWDCLK and SWDIO
respectively using a FT232H. As such, the BTTSKRMINIE3V2 target should be used
instead, and I've also re-added control of the STATUS LED to indicate
bootloader presence.1 parent 94762bd commit fd1acb5
5 files changed
Lines changed: 14 additions & 140 deletions
File tree
- src
- stm32f103
- skrminie3v2_usbmod
- skrminie3v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| |||
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 95 | | |
104 | 96 | | |
105 | 97 | | |
| |||
165 | 157 | | |
166 | 158 | | |
167 | 159 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
85 | | - | |
86 | | - | |
| 93 | + | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 142 | | |
156 | 143 | | |
157 | 144 | | |
| |||
0 commit comments