How to Program using Atmel-Ice #1039
Unanswered
dattasaurabh82
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why?
I want to learn using AVR-GDB and debug at a hardware level (Step through code in runtime in ATTINY).
Long way to go but the first step is to able to connect properly to the target and being able to program it ...
Scenario:
ATTINY1607
from here and I used theAtmel-Ice's
wiring information from here.🤔 Question 1:
If we need to power the target (ATTINY1607) separately? And then do we need the reference voltage pin form Atmel-Ice linked to the VCC pin of the target? As if I remember, out of the box, the Ice can't provide power and the target needs to be powered separately. In such a case, which pins do we connect the Ice's Ref voltage pin to (and of course the GND rails will then be tied together. )?
Intended programming Flow:
Arduino IDE
: Straight forward.arduico-cli
: I compile using arduino-cli with some build flags to enable debugging mode in the compiled binary and also set some fuses with this command:Follow here for more to understand what they mean.
🤔 Question 2: I recently learnt those extra build flags to enable debugging in compiled binaries but not sure if those will allow runtime hardware debugging later through GDB or to begin with, if that's the correct way of setting them?
arduino-cli
can't upload program usingAtmel-Ice
.If so we got
pymcuprog
orAVRDUDE
. In both the cases, I believe but I'm not sure how, that the fuses info need to be in the options for the command, to set them properly to the target.Let's I want to use AVRDUDE to upload using Atmel-Ice.
-c atmelice_updi
specifies the Atmel-ICE as the programmer.-p t1617
specifies the ATtiny1617 as the target microcontroller.-U
is used for memory operation. It sets the fuses and uploads the hex file.🤔 Question3: Not sure if the fuses settings and the general upload command is correct, as is intended from the above compile code ?
Beta Was this translation helpful? Give feedback.
All reactions