Skip to content
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

Arduino IDE 1.6.7 Won't Recognize Scratch Monkey Hardware Definition? #3

Open
paulrpotts opened this issue Nov 17, 2016 · 9 comments
Open

Comments

@paulrpotts
Copy link

I am running the Arduino/Genuino 1.6.7 IDE on Windows 7. I have an Uno R3 and can build and program the Scratch Monkey sketch to this board.

However, I can't get any of the Scratch Monkey listings to show up in the Tools menu.

I see "WARNING: Error loading hardware folder C:\Users\ppotts\Documents\Arduino\hardware\scratchmonkey
No valid hardware definitions found in folder scratchmonkey."

The programmers.txt file is copied directly from the ScratchMonkey distribution folder.

Any ideas?

I have the hardware all wired up to try using HVPP to program an ATtiny 641 including a 12V supply following the switching schematic, but can't test it.

Thanks!

@microtherion
Copy link
Owner

The Arduino 1.6 IDE has a rather different file layout compared to earlier versions, and to my shame, I still haven't made the switch, so I don't know what changes exactly are necessary.

@paulrpotts
Copy link
Author

paulrpotts commented Nov 17, 2016

Oh! OK. So I won't expect it to work at all for now. I'll see if I can figure out some other way to do it and still use the +12V circuit I built. Thanks for your reply.

@pgs21
Copy link

pgs21 commented Feb 2, 2017

Got it working in arduino 1.8.1

Documents/

Arduino/

hardware/

scratchmonkey/

avr/

boards.txt
programmers.txt

boards.txt is a empty file

@paulrpotts
Copy link
Author

Glad to hear it! I wound up buying an Atmel Dragon for some chips that needed the high voltage programming treatment and that worked (what a mess of wires, though!)

@DCEM
Copy link

DCEM commented Mar 3, 2017

Hi,

I got it working thourgh the board manager ... I would prepare a pull request if you (microtherion) want to continiue supporting ScratchMonkey for Arduino IDE 1.6 plus...
(I need to know because otherwise i would let the links in the json file point to my repository ...)

Also while trying to figure out how to realise the board manager stuff I noticed that if you compile ScratMonkey on Arduino 1.8.1 it does not work. The version compiled with arduino 1.0.6 works just fine ...
[EDIT]
That means:
ScratMonkey compiled Arduino 1.8.1 does NOT work on 1.8.1 and 1.0.6
ScratMonkey compiled Arduino 1.0.6 does work on 1.8.1 and 1.0.6
[/EDIT]

Trying to sort this out at the moment...

I think it should be possible to add a patched avr-dude version, so that it is basically a one click solution to get the hardware running with the scratchmonkey protocol ...

Best regards!

@microtherion
Copy link
Owner

Would love to get a PR for your changes. I recently acquired a Due compatible board so I could start testing on a non-AVR platform.

What protocol did not work?

@DCEM
Copy link

DCEM commented Mar 3, 2017

Hi,

Great, wasn't sure that you were still active on this project. I will prepare the PR shortly

I tried it with ScratchMonkey (STK500 Mode) -> ISP
I rememberd that the problem might be related to the changes in compiler optimisation from Arduino 1.0.6 to 1.6.x+

I'm gussing that this screws up your timings....

See:
http://www.instructables.com/id/Arduino-IDE-16x-compiler-optimisations-faster-code/

@microtherion
Copy link
Owner

That makes sense, to some extent, although hardware ISP is pretty much the least handwritten protocol in the suite. Maybe some setup times which were automatically assured with a slow compiler and thus never explicitly implemented?

@ingegno
Copy link

ingegno commented Mar 30, 2018

Anything I can try to have this working? Would love to stop using 1.0.5 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants