-
-
Notifications
You must be signed in to change notification settings - Fork 725
issue with uploading sketch via programmer (sam-ice) #164
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
Comments
Retested with Arduino IDE 1.6.12... Same result. So it's not the IDE itself, but rather the Core Samd 1.6.6 Went back to 1.6.5 and 1.6.4 with Arduino IDE ... But this gave me some errors on execution. A friend of mine is using the same setup with Arduino IDE 1.6.10 and Core Samd 1.6.4, also on Windows.. with success. No idea what wents wrong. |
Hi @tuxedo0801 , |
If this is a bug: Question is why a friend of mine is able to upload sketch via atmel ice... only difference: he's using a differen arduino zero board. The board I use: Elecrow Crowduino M0 SD But used samd is exactly the same... |
M0 pro has 0x4000 as bootloader offset, while our implementation is smaller (thus it gives you more space for sketches) but it encounters the openocd bug. |
Sorry for late response ...Now using Linux, attached openocd is windows version :-( But I tried the current "nightlybuild" of samd-core (with linux). Normal "uploading sketch" uses openocd to upload the sketch:
Works. Blink sketch runs fine.
Does not work: Blink sketch isn't running. The difference seems to be the missing "verify reset 0x2000; shutdown " when using the menuitem "upload via programmer" ... |
There are a couple of problems here:
The "upload using programmer" uses 0 as offset, as you noticed. If you don't change the linker script too, the sketch won't start since it will be flashed in the wrong location. To allow a clean, bootloader-less, programming, you should change |
Latest version uses 0.9.0-arduino6, but issue it still present:
Flashign bootloader and then flashing sketch via programmer will halt/not boot th SAMD. Flashing BL after flashing the sketch, board starts up successfully. |
ping |
ping again |
Upstream OpenOCD seems to work. Perhaps now would be a good time to update Arduino's OpenOCD. |
ping again... Issue still present with 1.6.20 :-( |
+100 This is precisely why I resorted to containing the entire Arduino environment with sophisticated shell scripts. |
SAMD Beta package contains an updated version of openocd (0.10.0-arduino7). To test if it solves the issue, please download the core for MKRVidor, then navigate to |
Fix tinyusb lost written chars
Hi,
I have an Elecrow Crowduino M0 SD and have some issues with uploading a sketch.
Environment:
I've flashed the bootloader with arduino IDE + programmer "ATMEL SAM-ICE". Works great:
Uploading a sketch via USB works also:
But uploading the same sketch via programmer (again atmel sam-ice):
Seems to work because no error is shown. But Arduino is not executing blink sketch and is not accepting any new sketch via USB (even with double-tap-reset). I have to flash the bootloader again (with sam-ice) to get the arduino back into a working state (to accept sketch upload via USB)
What's wrong? Any hints?
br,
Alex
The text was updated successfully, but these errors were encountered: