gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
306 stars 56 forks source link

Deviot cant find 'port' of Trinket 5v (atTiny85) on Ubuntu #243

Open peteyWheatstraw opened 6 years ago

peteyWheatstraw commented 6 years ago

Hey all,

Im trying to run deviot, in sublime text, on an ubuntu machine, in order to program an adafruit trinket 5v ( atTiny85).

I've selected, trinket 5v from the board menu, and have selected usbTinyISP as the programmer, I press the button on the trinket, so it can 'accept code', and when i go to upload the sketch, deviot doesn't list the trinket in available ports.

With this particular device, running on linux, i know there can be issues. i've followed the guide posted by the manufacturer, and have gotten the trinket to upload code using the arduino ide program, so i know that the device does work.

again, in a nutshell, sublime text 3 - deviot - attempting to upload sketches into an adafruit tirnket 5v ( attiny85) device is not listed in available ports.

Any help is greatly appreciated,

-Pete

gepd commented 6 years ago

Please follow this steps:

  1. Connect your device.
  2. Go to Deviot > Devices

It will show you a list with the available devices, if your device isn't in that list go to View > Show console and paste the output here.

peteyWheatstraw commented 6 years ago

hey gepd, thanks for the reply.

so I loaded up deviot, and went to Deviot -> Devices, and my device isn't listed. I tried when the device was running on usb, and then i tried it when the device was in 'accept code' mode. no entry for the device was shown in either case.

*EDIT - when i plug in an arduino uno, the device does show up on the devices list (as ttyACM0 )

So as per your request, I went to View -> Show console, and have pasted the resultant text at the end of this comment. There is nothing shown in the console that 'stands out' but perhaps a more informed person can tell where the error lies.

I appreciate your time in helping me.

-Pete



DPI scale (detected): 1
startup, version: 3176 linux x64 channel: stable
executable: /opt/sublime_text/sublime_text
working dir: /
packages path: /home/petey/.config/sublime-text-3/Packages
state path: /home/petey/.config/sublime-text-3/Local
zip path: /opt/sublime_text/Packages
zip path: /home/petey/.config/sublime-text-3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.162344
startup time: 0.261903
first paint time: 0.264323
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Deviot (Arduino IDE).Deviot
reloading plugin User.sublime_text_remove_popup
plugins loaded
reloading settings Packages/User/deviot.sublime-settings
Package Control: Skipping automatic upgrade, last run at 2018-06-22 17:39:45, next run at 2018-06-22 18:39:45 or after
reloading settings Packages/User/deviot.sublime-settings
gepd commented 6 years ago

What is your current O.S?

peteyWheatstraw commented 6 years ago

Hey Gepd,

So my setup is probably pretty unique.

Im running a Asus C302 - Chrome O.S. - Version 67.0.3396.99 (Official Build) (64-bit) - Then Im running, through Crouton -> Ubuntu 16.04 L.T.S.

Its definitely an unique environment, so bothering to fully trouble shoot this problem is probably not worth it. But I appreciate your response and your work Gepd.

-Pete

gepd commented 6 years ago

Hey Pete, yes it's a very unique setup. At this moment I'm rewriting the setup script, but as soon as I finish it I'd like to help you with this, it may only need an update to the serial driver. I'll back with instructions to debug the problem

peteyWheatstraw commented 6 years ago

Hey Gepd. No worries. It's really not a huge deal, just an odd thing.

after more digging, these trinkets are from the initial release (2014) so perhaps the bootloader that comes with them might be out of date, or something.

In the meantime, i've ordered some attiny85 's, so when they come in, i'll test those to see if the problem is attiny85 related, or just this particular product.

Again, thanks for you work and response,

-Pete

ps - just tried an nano on deviot - and it worked flawlessly.