EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   OpenGauge / MPGuino FE computer (https://ecomodder.com/forum/opengauge-mpguino-fe-computer.html)
-   -   Parallel Programmer (https://ecomodder.com/forum/showthread.php/parallel-programmer-7311.html)

myplasticegg 03-02-2009 06:45 PM

Parallel Programmer
 
I have made my programmer using this method ( Arduino - ParallelProgrammer ) but I am not sure where to hook it up on my spiffie kit MPGuino. I see 4 sets of 2 jumpers (8 total) near the buttons... where else could it go?

thanks, Shane

dcb 03-02-2009 10:13 PM

You probably need an isp connector for that programmer (2x6). The spiffie should be programmable with a standard usb cable though, like hooked to most printers/scanners these days.

myplasticegg 03-02-2009 10:18 PM

yeah, I had the resetting issue and it won't boot up now. I've tried to upload a new sketch, can't find it. Need to re-boot it.

dcb 03-02-2009 11:55 PM

2 Attachment(s)
You can rig up connections to the appropriate isp pins on the cpu with whatever you have handy. Here is a schematic that has the isp mapping:

http://www.arduino.cc/en/uploads/Mai...-schematic.pdf


I made an "in circuit" adapter for my ftdi cable out of an extra DIP socket (plus hotglue and careful bending of the tips, reset cap, etc, etc). I just press it on while programming. Maybe rig something like this up if you plan on doing it more than once.

http://ecomodder.com/forum/attachmen...1&d=1236055998

http://ecomodder.com/forum/attachmen...1&d=1236055983

myplasticegg 03-09-2009 07:40 PM

Sorry for the stupid question, but what pins are what on the ATML chip. I know what numbers to tap into, but the chip itself isn't numbered.

Thanks, Shane

dcb 03-09-2009 08:19 PM

http://arduino.cc/en/uploads/Hacking...mega8-Pins.png

for isp, MOSI, MISO, SCK, Reset, +5(VCC), GND

myplasticegg 03-11-2009 07:21 PM

I have everything hooked and i open the code in arduino 0011 Alpha (is this the right program?) It gives me an error;

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I have tried to run it with USB powering it and without.

dcb 03-11-2009 08:17 PM

yah, the parallel guy is flakey in my experience. I wound up loading a bootloader and verifying that it worked by watching for the blinking.

rmccomiskie 03-12-2009 11:02 AM

Quote:

Originally Posted by myplasticegg (Post 92202)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I have tried to run it with USB powering it and without.

Those errors mean that the ATmega bootloader is not responding to avrdude.

myplasticegg 03-16-2009 01:04 PM

Quote:

Originally Posted by rmccomiskie (Post 92331)
Those errors mean that the ATmega bootloader is not responding to avrdude.

Is the chip dead or should I try get a better connection to the chip with the bootloader? I need to get this thing going again ASAP as it is graded.

dcb 03-18-2009 07:36 PM

FYI, here is a site with lots of programming info.
It is probably where I got the "press on programmer" idea from.
ELM - AVR programmer

http://elm-chan.org/works/avrx/isp_clp.jpeg

Note: I just use a usbtinyisp these days.

dcb 03-19-2009 09:14 PM

FYI, I dug out my parallel port isp programmer just now to see how it does under ubuntu. It hasn't failed once after dozens of attempts. It never worked this good on windows. I'm using 5v power from the usb port to power the target board also.

I just put these commands in a shell script and ran it with sudo (might need tweaking of course), and arduino should have made a hex file already:

Code:

export avrdir=/home/dave/progs/arduino-0011/hardware/tools
$avrdir/avrdude -C$avrdir/avrdude.conf -v -v -v -v -pm168 -cdapa -F -e -Ulock:w:0x3F:m -Uefuse:w:0x07:m -Uhfuse:w:0xdd:m -Ulfuse:w:0xef:m
$avrdir/avrdude -C$avrdir/avrdude.conf -v -v -v -v -pm168 -cdapa -F -Uflash:w:mpguino.hex:i -Ulock:w:0x2b:m


myplasticegg 03-25-2009 02:07 PM

Thanks a bunch DC!. The diagrams were very helpful in getting this thing going again. I had a hard time keeping the wires pressed to the chip when trying to re-burn the chip, the extra socket is a must!

It now runs 100% and I hope to ad the data for the 98 ranger to the wiki page in the next week or so!

dcb 03-25-2009 04:00 PM

Awesome news !!! :)

oldbeaver 05-21-2009 02:58 AM

ISP programming question
 
Very interesting info, lot of it.

However, difficult to follow for me. I am a retired forester, just hobbist experimenter with electronics.

Suppose I have a chip (MPGuino chip) already programmed. I need to change units (from english to metric) and some sensor processing calculations.

The only language I know is Arduino 011 (kind of C++) . If I use the USB tiny ISP , can I edit the programm of the MPGuino chip and change some lines with the Arduino compiler from the notebook?

If not possible, what is the easiest way to proceed? Supose I want to use the USBtinyISP device... Can I bought it from you? Can you program my chip?
What solution do you advice me?

Thank you in advance for your help.

OldBeaver

Quote:

Originally Posted by dcb (Post 93201)
FYI, here is a site with lots of programming info.
It is probably where I got the "press on programmer" idea from.
ELM - AVR programmer

http://elm-chan.org/works/avrx/isp_clp.jpeg

Note: I just use a usbtinyisp these days.


dcb 06-08-2010 03:51 PM

just another option for isp programming, I've used this from arduino and it works well with avrstudio as well as other programmers, and the kit is $11 shipped!! I got it with the AVRISP-mkII firmware.

Make Your Own MP3 Player


All times are GMT -4. The time now is 09:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com