PlatformIO on Linux Mint in VMware on a Windows system -> upload not working

Status
Not open for further replies.

BeinerF

Member
Hi,
I am currently in the process of setting up a VMware image for my students.
The VM includes Linux Mint + PlatformIO(home 0.8.1 Core 3.5.2rc4, arduino framework) + vscode(1.21.0) and
I am running it currently on a Windows7 Enterprise machine for testing.

- After setting up the system (including the setting of udev rules) I went on to test the basic blink program
- I connected a teensy 3.2 (VM tells me I have a new Van Ooijen...-USB device)
- udevadm monitor tells me:

Code:
KERNEL[5775.611469] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1 (usb)
KERNEL[5775.643699] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.0 (usb)
KERNEL[5775.645574] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.0/tty/ttyACM0 (tty)
KERNEL[5775.645599] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.1 (usb)
UDEV  [5775.658146] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1 (usb)
UDEV  [5775.660847] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.1 (usb)
UDEV  [5775.662519] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.0 (usb)
UDEV  [5775.662562] add      /devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-2/2-2.1/2-2.1:1.0/tty/ttyACM0 (tty)

--> seems to be fine

- everything compiles fine in PlatformIO
- triggering upload started the teensy loader as expected
- however uploading is not happening

see PlatformIO output:
Code:
[INDENT]CURRENT: upload_protocol = teensy-gui
Uploading .pioenvs/teensy31/firmware.hex
Opening Teensy Loader...
Rebooting...
Teensy did not respond to a USB-based request to enter program mode.
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
*** [upload] Error 1[/INDENT]

and teensy loader verbose mode output:

Code:
[INDENT]15:58:17.865: Teensy Loader 1.41, begin program
15:58:17.874: File "firmware.hex". 7520 bytes, 12% used
15:58:17.875: Listening for remote control on port 3149
15:58:17.875: initialized, showing main window
15:58:17.927: remote connection opened
15:58:17.928: remote cmd: "comment: Teensyduino 1.41 - LINUX64 (teensy_post_compile)"
15:58:17.928: remote cmd: "status"
15:58:17.929: status data sent
15:58:17.971: remote cmd: "auto:on"
15:58:17.982: remote connection closed
15:58:17.989: remote connection opened
15:58:17.990: remote cmd: "show:arduino_attempt_reboot"
15:58:17.990: got request to show arduino rebooting message
15:58:17.992: remote cmd: "comment: Teensyduino 1.41 - LINUX64 (teensy_reboot)"
15:58:17.994: remote cmd: "status"
15:58:17.995: status data sent
15:58:18.084: remote cmd: "status"
15:58:18.085: status data sent
15:58:18.186: remote cmd: "status"
15:58:18.186: status data sent
15:58:18.288: remote cmd: "status"
15:58:18.289: status data sent
15:58:18.390: remote cmd: "status"
15:58:18.390: status data sent
15:58:18.491: remote cmd: "status"
15:58:18.493: status data sent
15:58:18.594: remote cmd: "status"
15:58:18.594: status data sent
15:58:18.695: remote cmd: "status"
15:58:18.695: status data sent
15:58:18.911: remote cmd: "status"
15:58:18.912: status data sent
15:58:19.207: remote cmd: "status"
15:58:19.207: status data sent
15:58:19.308: remote cmd: "status"
15:58:19.308: status data sent
15:58:19.410: remote cmd: "status"
15:58:19.411: status data sent
15:58:19.512: remote cmd: "status"
15:58:19.512: status data sent
15:58:19.613: remote cmd: "status"
15:58:19.613: status data sent
15:58:19.714: remote cmd: "status"
15:58:19.714: status data sent
15:58:19.815: remote cmd: "status"
15:58:19.816: status data sent
15:58:19.916: remote cmd: "status"
15:58:19.917: status data sent
15:58:20.018: remote cmd: "status"
15:58:20.019: status data sent
15:58:20.120: remote cmd: "status"
15:58:20.120: status data sent
15:58:20.222: remote cmd: "status"
15:58:20.223: status data sent
15:58:20.324: remote cmd: "status"
15:58:20.325: status data sent
15:58:20.426: remote cmd: "status"
15:58:20.427: status data sent
15:58:20.528: remote cmd: "status"
15:58:20.529: status data sent
15:58:20.629: remote cmd: "status"
15:58:20.630: status data sent
15:58:20.730: remote cmd: "status"
15:58:20.731: status data sent
15:58:20.832: remote cmd: "status"
15:58:20.833: status data sent
15:58:20.934: remote cmd: "status"
15:58:20.935: status data sent
15:58:21.036: remote cmd: "status"
15:58:21.036: status data sent
15:58:21.137: remote cmd: "status"
15:58:21.137: status data sent
15:58:21.238: remote cmd: "status"
15:58:21.238: status data sent
15:58:21.339: remote cmd: "status"
15:58:21.340: status data sent
15:58:21.441: remote cmd: "status"
15:58:21.442: status data sent
15:58:21.543: remote cmd: "status"
15:58:21.544: status data sent
15:58:21.644: remote cmd: "status"
15:58:21.645: status data sent
15:58:21.746: remote cmd: "status"
15:58:21.746: status data sent
15:58:21.847: remote cmd: "status"
15:58:21.848: status data sent
15:58:21.948: remote cmd: "status"
15:58:21.949: status data sent
15:58:22.050: remote cmd: "status"
15:58:22.051: status data sent
15:58:22.152: remote cmd: "status"
15:58:22.153: status data sent
15:58:22.254: remote cmd: "status"
15:58:22.255: status data sent
15:58:22.356: remote cmd: "status"
15:58:22.357: status data sent
15:58:22.458: remote cmd: "status"
15:58:22.459: status data sent
15:58:22.560: remote cmd: "status"
15:58:22.561: status data sent
15:58:22.661: remote cmd: "status"
15:58:22.662: status data sent
15:58:22.763: remote cmd: "status"
15:58:22.763: status data sent
15:58:22.865: remote cmd: "status"
15:58:22.866: status data sent
15:58:22.967: remote cmd: "status"
15:58:22.968: status data sent
15:58:23.068: remote cmd: "status"
15:58:23.069: status data sent
15:58:23.170: remote cmd: "status"
15:58:23.171: status data sent
15:58:23.272: remote cmd: "status"
15:58:23.272: status data sent
15:58:23.373: remote cmd: "status"
15:58:23.374: status data sent
15:58:23.485: remote connection closed[/INDENT]

mhh... any idea anyone

p.s. I gave the forum search a go... but no success (I might have overlooked something)

thx
 
I got it sorted. :)

The FAQ section on PlatformIO states for setting the udev rules:

Code:
sudo curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/scripts/99-platformio-udev.rules > /etc/udev/rules.d/99-platformio-udev.rule

seems to be a trailing "s" missing .... 2 days.. arghh
 
Status
Not open for further replies.
Back
Top