-
-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add support for some SAMD21 boards: #520
Comments
+1 Have you managed to get the Adafruit Feather m0 Wifi board working?
|
Haven't tried the Adafruit yet (mine is the coveted BLE version) but I expect similar results as yours EDIT: I tried this morning and even with blinky I am unable to get a successful upload to the M0. At best, red light goes into "breathing" mode (presumably upload/bootloader ready mode) EDIT2: After some hacking about I discovered something interesting. When "platformio run -t upload" is run, the following command line is generated:
resulting in:
but, if one copies and pastes that exact same bossac command line into terminal, upload works A-OK. This round of testing done on Mac OS X 10.11 |
@ivankravets, this ticket should not be labelled vendor:atmel 😉 as the issue seems to be in OSX, maybe around user rights to read/write on a system peripheral (cu.usbmodem1411 in this case). The boards listed here are compatible with Arduino Zero, thus the label vendor:arduino or arch:sam should be added instead |
I believe I've discovered what aggravates this problem. I observe similar behaviors on my debian machine. I theorize that some component of the build chain attempts to invoke bossac with something like "/dev/cu.usbmodem1411" and fails because it must be formatted only as "cu.usbmodem1411". |
@malachib what do you see for |
For the record, pio run -t upload frequently works on my debian machine (haven't been using it on the mac lately). Once in a while it fails and seems to leave it in a state which I must run manual bossac to recover. Debian results of While the device is out of programming mode, we see:
While in programming mode (put there on purpose, not accidentally reached), we see:
|
PlatformIO uses |
I'm thinking the opposite is happening. BOSSAC expects no /dev/ prefix and maybe one is present sometimes? Just a theory only |
@valeros is it true? |
Another tidbit - on debian today. I'm discovering sparkfun board seems to need up to a 20s ish delay after entering program mode before it will accept programming. Also, today pio isn't able to program it at all - the "state" described above (7d ago) seems to be program mode - which pio always succeeds at getting the device into. |
Also having problems uploading to Adafruit Feather. Any ideas of a fix? This is only reason I'm still using the regular Arduino IDE. |
@tabchas , @malachib , looks like the issue with uploading has been fixed today. Could you try http://docs.platformio.org/en/latest/installation.html#development-version ? |
Willdo - thanks Ivan! |
@malachib Does it work for you? I still get an error during upload. |
I am trying on my Mac right now and it's behaving very well. However:
Side note: almost blew up my SAMD today. It still works, so the hunt for where that smoke was coming from continues =) |
@tabchas what is your OS? I've pushed new updates to development version (2.9.3.dev0). Could you try new build? See instructions http://docs.platformio.org/en/latest/installation.html#development-version |
Do you use PlatformIO IDE? Check CLI version via |
OK: Mac: platformio 2.9.2 Unfortunately Debian still not playing nice. Mac passes basic tests (cool!). Following is for Debian only: Scenario AIf I do a) promptly put device into program mode
at which point
so I must proceed to c) run manual bossac for successful upload (no sudo needed) Scenario BIf I do
Sometimes not, in which case I have to run my manual bossac many many times to coax it back into working again EDIT: it seems actually I must reset the device first (when I does, it stays in program mode) |
Upload works! I selected "Arduino Zero (USB Native Port)" and am using the Adafruit Feather Bluefruit M0 board. Thanks guys! |
@tabchas what is your OS? |
@ivankravets I am on OSX 10.11.5 |
@tabchas thanks a lot for the report. Yes, the latest PlatformIO 2.9.4 should work very well on the Mac and Windows. We have the one issue with Linux - |
Added support for several SAMD21 based boards:
Please install PlatformIO dev version and update |
@malachib does it work for you? |
Using pio version 2.10.4.dev2 and the newest udev rules as of today. Debian results are very positive. Initial attempt at
which can be overcome either by:
FYI no. 1 I have additional udev 99-mal.rules file on my Debian machine cuz it seemed the pio one was missing the vid/pid which my sparkfun wanted. Can't say conclusively how helpful they are or if I did it right, but they were in place for my Jun 3rd results and today's results:
FYI no. 2 I also tried this on an Ubuntu 16.04 box using the versions described on the first line. Doesn't have my "special" 99-mal.rules. The results are similar to my Jun 3rd post except that |
@malachib do you use this |
I am indeed using EDIT: Looks like VID:PID for this board is as follows : run mode = 1B4F:8D21 I'll try adding the other to my udev rules and share results |
@malachib do you have any news? |
Hi @malachib! Does upload process work well in Arduino IDE? |
@malachib I propose to open a new issue with detailed description about your problem. I'm going to make release with the other boards that described here. |
Sorry been out of town! I'll try out Arduino IDE and get back to you |
* develop: (27 commits) Update boards list Add Arduino M0 as a separate board Update history Update microchippic32 platform and boards Fix PyLint warning Keep user changes for ".gitignore" file when re-generate/update project data Documented uploading of EEPROM data Push 2.11.1.dev1 Automatically install dependent upload tools // Issue #472 Split source files to HEADERS and SOURCES when generate project for Qt Creator IDE // Resolve #713 Improve project generator for CLion IDE Fix missing trailing ``\`` for the source files list when generate project for Qt Creator IDE // Resolve #711 * Fix missed ``--boot`` flag for the firmware uploader for ATSAM3X8E Cortex-M3 MCU based boards (Arduino Due, etc) // Resolve #710 Initial support for Arduino M0/Tian boards // Issue #472 Update project template for Qt Creator // Issue #711 Fix missed --boot flag for sam3x uploader // Issue # 710 Auto-remove project cache when PlatformIO is upgraded Version bump to 2.11.0 (issues #472, #520, #614, #620, #685, #698, #699) Update history Update espressif platform according to the new framework version
I've been using the zeroUSB profile to (very effectively!) program my SAMD with platformio but technically it's the wrong PID and might eventually cause issues. Have not tried my adafruit yet
The text was updated successfully, but these errors were encountered: