uploading_a_sketch_via_atmelstudio_7_to_an_arduino_uno
If you want to send us your comments, please do so. Thanks
More on comments
Uploading a sketch via AtmelStudio 7 to an Arduino UNO
Preparations
- Start Windows 10
- Download and install Arduino IDE version 1.8.10 or newer version. It will be installed in C:/Program Files(x86)/Arduino
- Open Arduino IDE
- Load File | Example | Basic | Blink
- Modify this sketch
- Add const int led = 13; before void setup() {
- Replace LED_BUILTIN with led in the void loop() { part
- Save as… to your sketchs folder. For us C:/Documents/Arduino with the name Blink.STK500.ino
Uploading
- Start the Atmel Studio 7 program
- Connect your arduino on an USB port
- Do File | New | Project
- Click on Create new project from Arduino sketch
- Under the field Name enter Blink.STK500
- Under the field Location browse to C:/Documents/Arduino/Blink.STK500
- Under the field Solution select Create new solution
- Under the field Solution name enter Blink.STK500
- Select Create a directory for solution
- Click on OK
- A new window will pop up called Create C++ project from Arduino sketch. If an other window pops up click on OK or something else that closes it and hopfully the Create C++ project from Arduino sketch will pop up
- In the Sketch File field select the C:/Documents/Arduino/Blink.STK500 sketch
- In the Arduino IDE Path enter, or browse to C:/Program Files(x86)/Arduino
- In the Board rolldown menu select Arduino/Genuino Uno
- In the Device rolldown menu select ATmega328p
- Click on the Ok button
- In the Atmel Studio 7 window the code of your blink program is shown. It can be edited.
- Now build the project with Build | Build solution
- It will end in
Done building project "Blink.STK500.cppproj". Build succeeded. ========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped ==========
- Upload the binary to the Arduino Uno.
- In AtmelStudion 7 do Tools | External Tools… and fill the fields
- Title: Upload to the Arduino UNO
- Commands: C:\Program Files (x86)\Arduino\arduino.exe or browse to it
- Arguments: Do, in the Arduino IDE, File | Preferences | Select Show verbose output during: upload and click on OK
- In the Arduino IDE check and set in Tools:
- Board: Arduino/Genuino UNO
- Port: COM4 (or what COM port is avaiable)
- Programmer: usbasp;
- Do: Sketch | Upload
- Look in the output for a line like avrdude: Version 6.3-20171130
- The line above is the avrdude command. In our case it is C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\hardware\tools\avr/bin/avrdude -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\User\AppData\Local\Temp\arduino_build_9143/Blink.STK500.ino.hex:i
- We need: -CC:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\User\AppData\Local\Temp\arduino_build_9143/Blink.STK500.ino.hex:i. Paste this in the Arguments field
- Initial Directory: $(ItemDir)
- Select Use Output window. This is grayed out in our case
- Click on the Ok button
- In AtmelStudio 7 do Tools | Tools | Send to Arduino UNO
- Now the LED on the Arduion UNO must blink in with the set delays of default 1000 milliseconds
- This did not work for us. The Arduino IDE splash screen popped up and disappreared. That was it. No upload took place. To be investigated
Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy
RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.
uploading_a_sketch_via_atmelstudio_7_to_an_arduino_uno.txt · Last modified: 21-12-2019 02:07 by wim