
Originally Posted by
MultipleMonomials
Try updating your mbed-os submodule to my branch
Tried it. Not sure if I got everything set up correctly (see below).
Building this time:
Code:
[251/251] Linking CXX executable HelloWorld.elf
-- built: /tmp/mbed-ce-hello-world/build/HelloWorld.bin
-- built: /tmp/mbed-ce-hello-world/build/HelloWorld.hex
| Module | .text | .data | .bss |
|---------------------------|---------------|-------------|-------------|
| CMakeFiles/HelloWorld.dir | 50(+50) | 0(+0) | 0(+0) |
| [fill] | 169(+169) | 4(+4) | 31(+31) |
| [lib]/c.a | 15223(+15223) | 2476(+2476) | 56(+56) |
| [lib]/gcc.a | 760(+760) | 0(+0) | 0(+0) |
| [lib]/mbed-usb.a | 10435(+10435) | 0(+0) | 2(+2) |
| [lib]/misc | 248(+248) | 4(+4) | 28(+28) |
| [lib]/nosys.a | 32(+32) | 0(+0) | 0(+0) |
| [misc] | 0(+0) | 0(+0) | 0(+0) |
| mbed-os/CMakeFiles | 39797(+39797) | 436(+436) | 8379(+8379) |
| Subtotals | 66714(+66714) | 2920(+2920) | 8496(+8496) |
Total Static RAM memory (data + bss): 11416(+11416) bytes
Total Flash memory (text + data): 69634(+69634) bytes
Good news is there is now signs of life on USB. But not successful enumeration. Here's how Linux kernel sees it.
Code:
Feb 8 01:32:54 preston kernel: [680516.642354] usb 4-13.1: new high-speed USB device number 14 using xhci_hcd
Feb 8 01:32:59 preston kernel: [680521.758356] usb 4-13.1: device descriptor read/64, error -110
Feb 8 01:33:15 preston kernel: [680537.370473] usb 4-13.1: device descriptor read/64, error -110
Feb 8 01:33:15 preston kernel: [680537.558482] usb 4-13.1: new high-speed USB device number 15 using xhci_hcd
Feb 8 01:33:20 preston kernel: [680542.746543] usb 4-13.1: device descriptor read/64, error -110
Feb 8 01:33:36 preston kernel: [680558.366632] usb 4-13.1: device descriptor read/64, error -110
Feb 8 01:33:36 preston kernel: [680558.474925] usb 4-13-port1: attempt power cycle
Feb 8 01:33:37 preston kernel: [680559.082643] usb 4-13.1: new high-speed USB device number 16 using xhci_hcd
Feb 8 01:33:42 preston kernel: [680564.174648] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Feb 8 01:33:47 preston kernel: [680569.546742] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Feb 8 01:33:47 preston kernel: [680569.754654] usb 4-13.1: device not accepting address 16, error -62
Feb 8 01:33:47 preston kernel: [680569.834664] usb 4-13.1: new high-speed USB device number 17 using xhci_hcd
Feb 8 01:33:52 preston kernel: [680574.922765] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Feb 8 01:33:58 preston kernel: [680580.298781] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
Feb 8 01:33:58 preston kernel: [680580.506788] usb 4-13.1: device not accepting address 17, error -62
Feb 8 01:33:58 preston kernel: [680580.507051] usb 4-13-port1: unable to enumerate USB device
Here are the commands I ran. (note to future me trying this again tomorrow....)
Code:
cd /tmp
rm -rf mbed-ce-hello-world
git clone https://github.com/mbed-ce/mbed-ce-hello-world.git
cd mbed-ce-hello-world/
git clone git@github.com:mbed-ce/mbed-os.git
cd mbed-os/
git checkout dev/fix-teensy4-issues
cd ..
mkdir build
cd build/
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Develop -DMBED_TARGET=TEENSY_40
ninja
~/teensy/arduino-1.8.19/hardware/tools/teensy_post_compile -file=HelloWorld -path=/tmp/mbed-ce-hello-world/build
# (press pushbutton on Teensy 4.0)
Not elegant, but reality is I have extremely limited time to fiddle and Github has plenty of bandwidth!