-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
[BUG] Archim 2 Uploading to board but not working correctly #18816
Comments
In platformio.ini is
It doesn't seem to need to the upload_extra_script.py anymore. In fact it seems to break windows uploading.
Can you confirm that this works for you also ? |
Waiting on conformation before releasing PR |
I deleted the extra line as recommended and it actually connected this time but wont upload. Here's the new error. Configuring upload protocol... SAM-BA operation failed |
To be clear I can upload a Marlin Bugfix from March that I've been using via Arduino IDE just fine, even as of today, so I know the board is working in programming mode. As of July 7 Bugfix I cannot use Arduino IDE for compiling or upload, something changed. And I've tried using the atmel-ice protocol as well as the SAM-BA that seems to be the default as selected in the platform.ini and both fail. The SAM-BA seems to get the furthest as it actually seems to make the connection to the board, it's just not pushing the file now, as per my last post. P.S.- I seriously appreciate your help figuring this out. |
Those are some goofy symptoms. Have you compared the configuration and pins files from the two versions? |
This issue is stale because it has been open 30 days with no activity. Remove stale label / comment or this will be closed in 5 days. |
The issue with the pins is also called out in #19215, these are the same root problems. Archim2 requires a special Arduino DUE environment, as it uses pins 92+ (these pins are beyond the normal Arduino DUE pins). See line https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/Makefile#L698 for example showing the inclusion of I'm not sure on the correct way to solve this as I'm not too familiar with either PlatformIO build system, or Marlin (new to both!). |
A workaround for this is in #19215 if it's still an issue for you. |
This issue has had no activity in the last 30 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 7 days. |
Several related fixes were introduced recently, and there haven’t been any replies regarding this still being an issue since before those were made. I am going to close this, as I suspect it is fixed from comments made by @jeffeb3 and @colinoflynn. Please let me know if this action was incorrect. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug Description
Upon completion of compiling Marlin in VSCode it will not upload to the board via USB.
Error message produced
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/due.html
PLATFORM: Atmel SAM 4.5.1 > Arduino Due (Programming Port)
HARDWARE: AT91SAM3X8E 84MHz, 96KB RAM, 512KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink, stlink)
PACKAGES:
Converting Marlin.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 0.7.1
| |-- 1.0
|-- 1.5.0
| |-- 1.0
|-- 1.0
|-- 1.0
Building in release mode
Checking size .pio\build\DUE_archim\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 9.4% (used 9284 bytes from 98304 bytes)
Flash: [===== ] 45.8% (used 239972 bytes from 524288 bytes)
Configuring upload protocol...
AVAILABLE: atmel-ice, blackmagic, jlink, sam-ba, stlink
CURRENT: upload_protocol = sam-ba
Looking for upload port...
Auto-detected: COM3
Forcing reset using 1200bps open/close on port COM3
Uploading .pio\build\DUE_archim\firmware.bin
### bossac: missing file
Try 'bossac -h' or 'bossac --help' for more information
*** [upload] Error 1
Steps to Reproduce
**Expected behavior:**Completion of Upload of firmware to the board
Actual behavior: Fails
The text was updated successfully, but these errors were encountered: