0

adaLoader sketch for Standalone ISP Programmer
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

adaLoader sketch for Standalone ISP Programmer

by josemg on Mon Feb 12, 2018 12:08 am

Ok so I am trying to get the standalone ISP programmer working with the adaLoader sketch. The problem is that when I hit compile I get errors. I am not sure how to fix this as I am new to arduino and am learning simple sketches. I get this error:


Arduino: 1.8.4 (Windows 8.1), Board: "Arduino/Genuino Uno"

images.cpp:3: error: variable 'image_328' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

image_t PROGMEM image_328 = {

^

exit status 1
variable 'image_328' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

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

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Mon Feb 12, 2018 12:40 am

Ok so I literally just typed "const" in front of the image_328 and it compiled and uploaded to the arduino... BUT now when I connect the ISP programmer and press the button to begin writing to the ATmega328P I get a red light and a constant sound from the buzzer.??? I'm not sure what to do from here.

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by adafruit_support_carter on Mon Feb 12, 2018 2:00 pm

Are you working with this?
https://www.adafruit.com/product/462

Post a photo of your setup showing all connections and soldering work.

adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Mon Feb 12, 2018 10:30 pm

Yes that’s the one!

[EDIT] removed lower res images, see next post

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Mon Feb 12, 2018 10:36 pm

Let me try to post those again.
Attachments
4A1E4838-6DB9-4973-83F4-93AA5DF940AE.jpeg
4A1E4838-6DB9-4973-83F4-93AA5DF940AE.jpeg (943.23 KiB) Viewed 540 times
4296807B-D705-4457-AEC8-28D2622F9902.jpeg
4296807B-D705-4457-AEC8-28D2622F9902.jpeg (787.27 KiB) Viewed 540 times
FCBEEDA1-9A26-4289-9417-5ED62547D2A4.jpeg
FCBEEDA1-9A26-4289-9417-5ED62547D2A4.jpeg (851.61 KiB) Viewed 540 times

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by adafruit_support_carter on Tue Feb 13, 2018 1:41 pm

You soldering looks OK.
BUT now when I connect the ISP programmer and press the button to begin writing to the ATmega328P I get a red light and a constant sound from the buzzer.??? I'm not sure what to do from here.

What order are you doing things in? You should have the programmer shield attached to the UNO before applying power. And then power it and run the adaLoader sketch. Load your chip and press button. Can you post the output to the serial console you get when running the adaLoader.

adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Tue Feb 13, 2018 8:11 pm

What order am I doing things in? I’m following the instructions on adafruit for the Standalone programmer: https://learn.adafruit.com/standalone-a ... programmer

All it says to do right after assembly is click the link to github, create the adaLoader folder and copy the sketch, then compile and upload to the arduino. From there it says to insert the chip, lock it down and press the button. Although it never said to attach the shield first and then apply power, that is the order I was doing it in and yet it doesn’t work. I am trying to follow the instructions to set it up as the standalone programmer.

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by adafruit_support_carter on Wed Feb 14, 2018 11:05 am

Although it never said to attach the shield first and then apply power, that is the order I was doing it in and yet it doesn’t work.

OK, just wanted to make sure you were actually putting this on an Arduino UNO (or similar).

Post the full output from the serial console you get when running the adaLoader sketch and trying to program.

adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Wed Feb 14, 2018 9:31 pm

Alright so this is what I got from the serial monitor:

AdaBootLoader Bootstrap programmer (originally OptiLoader Bill Westfield (WestfW))

Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

Reading signature:950F
Searching for image...
Found "adaboot_atmega328.hex" for atmega328

Setting fuses
Set Lock Fuse to: 3F -> E000 Set Low Fuse to: FF -> A000 Set High Fuse to: DA -> A800 Set Ext Fuse to: 5 -> A400
Verifying fuses...
Lock Fuse: 3F is 3F Low Fuse: 0xFF is 0x62Failed to verify fuses

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by adafruit_support_carter on Wed Feb 14, 2018 10:02 pm

I get a red light and a constant sound from the buzzer

Hopefully that is happening at the same time you get this error message:
Code: Select all | TOGGLE FULL SIZE
Lock Fuse: 3F is 3F Low Fuse: 0xFF is 0x62Failed to verify fuses

It's just part of the function that runs when an error occurs:
https://github.com/adafruit/Standalone- ... r.pde#L144

So, it's seeing the chip and trying to program it. But then it fails at that one fuse verify. Does it always fail at that same spot with the same message each time you try to program?

adafruit_support_carter
 
Posts: 11091
Joined: Tue Nov 29, 2016 2:45 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Wed Feb 14, 2018 10:10 pm

I ran it a few times and did see it fail at that same point every time. Just to be sure I ran it a couple more times and yes it does fail at that same fuse every time.

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Wed Feb 14, 2018 10:24 pm

I tried a fresh ATmega328P as well and it fails at the same fuse.

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by adafruit2 on Thu Feb 15, 2018 6:49 pm

shoot that's an oldie, we just made a few fixes, do you mind deleting your copy of adaLoader folder and re-grabbing from here?
https://github.com/adafruit/Standalone- ... programmer

adafruit2
Site Admin
 
Posts: 18327
Joined: Fri Mar 11, 2005 7:36 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Thu Feb 15, 2018 7:27 pm

Ah sweet. I don’t mind at all. I did notice the date when I first downloaded hah. I’ll give the new code a shot in a bit and get back to you. Thanks!

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Re: adaLoader sketch for Standalone ISP Programmer

by josemg on Thu Feb 15, 2018 8:21 pm

I deleted the old code and uploaded the new code and got the same error after running it:


AdaBootLoader Bootstrap programmer (originally OptiLoader Bill Westfield (WestfW))

Type 'G' or hit BUTTON for next chip
Starting Program Mode [OK]

Reading signature:950F
Searching for image...
Found "optiboot_atmega328.hex" for atmega328P

Setting fuses
Set Lock Fuse to: 3F -> E000 Set Low Fuse to: FF -> A000 Set High Fuse to: DE -> A800 Set Ext Fuse to: 5 -> A400
Verifying fuses...
Lock Fuse: 3F is 3F Low Fuse: 0xFF is 0x62Failed to verify fuses

josemg
 
Posts: 17
Joined: Sun Feb 11, 2018 11:40 pm

Please be positive and constructive with your questions and comments.