Go Down

Topic: AVR pocket programmer with ATmega32A PU 1705 using arduino IDE (Read 198 times) previous topic - next topic

roshini_nair

Hello

I have an ATmega32A PU 1705 on an IO board along with an avr pocket programmer and i want to program it using the arduino IDE. I installed the drivers necessary for the avr pocket programmer as mentioned in this link
 
https://learn.sparkfun.com/tutorials/pocket-avr-programmer-hookup-guide/installing-drivers

and after that  I followed all the steps in this link

https://www.instructables.com/id/Using-Atmega32-with-Arduino-IDE/

 to include ATmega 32 on the list of boards in arduino. after completing this step I selected the board as atmega 32-external 16mHZ and the  programmer as USBtinyISP but when I tried compiling and uploading any program through this im getting error. Can someone pls help me with this. Is there something I am doing wrong. Should i be doing this in some different way. Pls help me with this. any help would be highly appreciated. Thanks in advance.

pert

Please do this:
  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Start the upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

roshini_nair

Code: [Select]
Arduino: 1.8.9 (Windows 10), Board: "ATmega32-External 16mhz"

Error reading file (C:\Program Files (x86)\Arduino\hardware\arduino\avr\boards.txt:0): Invalid line format, should be 'key=value'

Error compiling for board ATmega32-External 16mhz.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

pert

This error is caused by saving boards.txt with UTF-8 BOM encoding. Please change the file to UTF-8 encoding. There should be an option in your text editor for this. If not, get a better text editor.

I like to use Notepad++. It has an Encoding > Convert to UTF-8 option:
https://notepad-plus-plus.org/

roshini_nair

hii
thank you so much for the response I used notepad++ and the compilation was successful but when im trying to upload the sketch it is showing "missing upload.tool configuration parameter"

Code: [Select]
Arduino: 1.8.9 (Windows 10), Board: "ATmega32-External 16mhz"

Warning: Board arduino:avr:mega32-8 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-8
Warning: Board arduino:avr:mega32-1 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-1
Warning: Board arduino:avr:mega32-16 doesn't define a 'build.board' preference. Auto-set to: AVR_MEGA32-16
Sketch uses 8658 bytes (27%) of program storage space. Maximum is 32000 bytes.
Global variables use 943 bytes of dynamic memory.
Error while uploading: missing 'upload.tool' configuration parameter

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


could you please help me out.

pert

You need to define an upload.tool property in your boards.txt. Better yet, forget using the outdated information from that Instructable and use MightyCore instead:
https://github.com/MCUdude/MightyCore

roshini_nair

hii
thank you so much. As you told I used mightycore and upload was successful when I selected upload using programmer. thank you very much.... :)

pert

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

Go Up