You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-40Lines changed: 44 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,25 @@
1
-
=== Multi purpose debugger - target controller
1
+
#Multi purpose debugger - target controller
2
2
3
-
Supports
4
-
CMSIS-DAP
5
-
Multiple serial terminals
6
-
GPIO read/write/port register control.
3
+
Supports:
7
4
5
+
- CMSIS-DAP
6
+
- Multiple serial terminals
7
+
- GPIO read/write/port register control.
8
8
9
-
right now the backend uses raw hid reports for debug communication, terminal.py will open an interactive terminal to the device.
9
+
Right now the backend uses raw hid reports for debug communication, terminal.py will open an interactive terminal to the device.
10
10
11
-
= How to flash to the teensy board:
11
+
### How to flash to the teensy board:
12
+
```sh
12
13
pio run -e teensy41 --target upload
13
14
pio run -e teensy31 --target upload
14
15
pio run -e teensy36 --target upload
16
+
```
15
17
18
+
### Modifications required to teensy 3.1 codebase:
16
19
17
-
= Modifications required to teensy 3.1 codebase:
20
+
For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string around line 1136 in `~/.platformio/packages/framework-arduinoteensy/cores/teensy3/usb_desc.c`
18
21
19
-
* For this to work you need to modify the teensy source code to set the RAWHID iInterface field to 2 to use the product string
20
-
around line 1136 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy3/usb_desc.c
21
-
--------------------------------------
22
+
```c
22
23
#ifdef RAWHID_INTERFACE
23
24
// interface descriptor, USB spec 9.6.5, page 267-269, Table 9-12
24
25
9, // bLength
@@ -30,11 +31,11 @@ around line 1136 in ~/.platformio/packages/framework-arduinoteensy/cores/teensy3
30
31
0x00, // bInterfaceSubClass
31
32
0x00, // bInterfaceProtocol
32
33
2, // iInterface <-------------------Modify this!
34
+
```
33
35
34
-
35
-
usb_desc.h
36
-
--------------------------------------
37
-
Add the following to the usb definitions section after USB_EVERYTHING
36
+
`usb_desc.h`
37
+
```c
38
+
// Add the following to the usb definitions section after USB_EVERYTHING
38
39
#elif defined(USB_RAWHID_TRIPLESERIAL)
39
40
#define VENDOR_ID 0x16C0
40
41
#define PRODUCT_ID 0x048C
@@ -99,33 +100,34 @@ Add the following to the usb definitions section after USB_EVERYTHING
99
100
100
101
#define ENDPOINT11_CONFIG ENDPOINT_TRANSMIT_ONLY
101
102
#define ENDPOINT12_CONFIG ENDPOINT_RECEIVE_ONLY
103
+
```
102
104
103
105
104
-
105
-
yeld.cpp
106
-
--------------------------------------
107
-
need to add USB_RAWHID_TRIPLESERIAL wherever USB_TRIPLE_SERIAL is.
106
+
`yeld.cpp`
107
+
```c
108
+
// Need to add USB_RAWHID_TRIPLESERIAL wherever USB_TRIPLE_SERIAL is.
0 commit comments