Show Posts
Pages: 1 2 [3] 4 5 ... 10
31  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: June 30, 2010, 06:06:37 pm
I have a theory(well I know this is at least part of the problem) on why the modified adabootloader does not work.  It stems from the fact that we are now dealing with a device thats entire flash space cannot be addressed by a 16bit value and additional modifications will be required to allow for the extended flash to be worked read/written too.  I have attempted to make the changes by but do not know if my changes are successful as I have not had time to test them.  Look at where the m1280 has special stuff done to its addressing vs the other devices which do not.  This would in theory explain why I'm receiving back all 1s on read back as if the system is erasing the rest of the flash it would wrap around back and erase the program (I don't know if it does that or not but hey).

I hope this can point you in the right direction.
32  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: June 19, 2010, 03:58:27 pm
I do plan on trying again but I haven't had time to mess with it as of late.  Id probably be more apt to try if I had a sanguino board to use this on and not the flaky breadboard I have been using (keep getting loose connections ect its a very very cheap breadboard smiley-wink ).
33  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: June 01, 2010, 05:51:10 pm
Yes I was messing with the LDSection but I never got anything that functioned. So i decided not to report my failures.

I will have to look at the UsbAspLoader though I had forgetten you can change the programmer in the board.txt...
34  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: June 01, 2010, 05:15:33 pm
Well I can program the chip just fine with the ICSP connection. Its just the bootloader thats giving me issues. If I could easily use the arduino environment with a programmer I would be happy.  Still I would like to get the bootloader working, I have gotten no further...
35  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: June 01, 2010, 02:40:16 pm
@ChrisS

Nope did not make that change. Ill have to give it a try.
I'm going to see if the datasheet has anything to say on this...
36  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 30, 2010, 04:17:55 pm
Ok here is were I am.  I have it so that arduin 18 is able to burn the boot loader correctly, and the status LED does indeed blink while it is in the boot loader however the bootloader does not work.  The code downloads and during the verification process all 0xFF is returned. with the modified adaboot loader that chrisS linked too.
37  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 30, 2010, 08:53:17 am
After much frustration I have tracked all my issues down to a breadboard with many faulty junctions....

I did end up getting the bootloader to blink the LED again a bad junction. This is to say the least frustrating.  I have not been able to upload code as I am having trouble finding good connections...
38  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 29, 2010, 09:00:53 pm
I finally got the ICSP connection working reliably, and the arduino18 environment to burn the bootloader.  I successfully uploaded the ADAboot loader with the modifications and the compiler optimizations ChrisS linked to.  I however do not know if it is working, as the LED does not blink.  Also I have not tried to actually upload any code to the device either. Ill get to work on this more tomorrow but thats all for now.
39  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 29, 2010, 05:17:20 pm
Yeah it was my circuit I rewired it and i can now download code to it through the ICSP connection.  I managed to set the fuses and get the sanguino boot-loader onto it.  However the boot-loader does not work.  I know its running as it is flashing the led while its in the boot-loader.

I also update copy of avrdude that arduino 18 uses, to do that just backup the avrdude executable and config file and overwrite them for windows they are in:
arduino-0018\hardware\tools\avr\etc\avrdude.conf
arduino-0018\hardware\tools\avr\bin\avrdud.exe
40  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 29, 2010, 03:26:53 pm
Sure:
When I try to burn the boot loader from the arduino environment with my freeduino running the arduinoISP sketch the output is:
Code:
D:\Myles\Desktop\arduino-0018\hardware/tools/avr/bin/avrdude -CD:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega1284p -cstk500v1 -P\\.\COM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDC:m -Ulfuse:w:0xFF:m


avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf"

avrdude: AVR Part "atmega1284p" not found.

Valid parts are:
  m6450 = ATMEGA6450      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:11732]
  m3250 = ATMEGA3250      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:11543]
  m645 = ATMEGA645       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:11354]
  m325 = ATMEGA325       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:11165]
  usb1287 = AT90USB1287     [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10977]
  usb1286 = AT90USB1286     [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10788]
  usb647 = AT90USB647      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10599]
  usb646 = AT90USB646      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10409]
  t84  = ATtiny84        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10226]
  t44  = ATtiny44        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:10044]
  t24  = ATtiny24        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:9862]
  m2561 = ATMEGA2561      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:9669]
  m2560 = ATMEGA2560      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:9476]
  m1281 = ATMEGA1281      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:9288]
  m1280 = ATMEGA1280      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:9099]
  m640 = ATMEGA640       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8911]
  t85  = ATtiny85        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8730]
  t45  = ATtiny45        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8551]
  t25  = ATtiny25        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8371]
  pwm3b = AT90PWM3B       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8190]
  pwm2b = AT90PWM2B       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:8007]
  pwm3 = AT90PWM3        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:7824]
  pwm2 = AT90PWM2        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:7640]
  t2313 = ATtiny2313      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:7453]
  m328p = ATMEGA328P      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:7265]
  m168 = ATMEGA168       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:7077]
  m88  = ATMEGA88        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:6891]
  m48  = ATMEGA48        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:6704]
  t861 = ATTINY861       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:6516]
  t461 = ATTINY461       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:6327]
  t261 = ATTINY261       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:6138]
  t26  = ATTINY26        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5981]
  m8535 = ATMEGA8535      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5823]
  m8515 = ATMEGA8515      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5665]
  m8   = ATMEGA8         [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5505]
  m161 = ATMEGA161       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5365]
  m32  = ATMEGA32        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:5190]
  m6490 = ATMEGA6490      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4997]
  m649 = ATMEGA649       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4812]
  m3290 = ATMEGA3290      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4629]
  m329 = ATMEGA329       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4444]
  m169 = ATMEGA169       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4264]
  m163 = ATMEGA163       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:4121]
  m162 = ATMEGA162       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:3925]
  m644p = ATMEGA644P      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:3734]
  m644 = ATMEGA644       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:3543]
  m324p = ATMEGA324P      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:3351]
  m164p = ATMEGA164P      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:3159]
  m16  = ATMEGA16        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2981]
  c128 = AT90CAN128      [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2790]
  m128 = ATMEGA128       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2612]
  m64  = ATMEGA64        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2431]
  m103 = ATMEGA103       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2291]
  8535 = AT90S8535       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2170]
  8515 = AT90S8515       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:2056]
  4434 = AT90S4434       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1973]
  4433 = AT90S4433       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1849]
  2343 = AT90S2343       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1725]
  2333 = AT90S2333       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1640]
  2313 = AT90S2313       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1527]
  4414 = AT90S4414       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1414]
  1200 = AT90S1200       [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1299]
  t15  = ATtiny15        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:1166]
  t13  = ATtiny13        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:993]
  t12  = ATtiny12        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:860]
  t11  = ATtiny11        [D:\Myles\Desktop\arduino-0018\hardware/tools/avr/etc/avrdude.conf:796]

latest avrdude output in next post
Edit - tracked down the latest avrdudes errors to being a wireing fault gonna try and fix that before I say anymore.
41  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 29, 2010, 06:45:16 am
Ive tried something similar(modified the board.txt for sanguino) and the version of avrdude in arduino18 does not have the 1284p listed.  So when you try and upload the bootloader(again i just modified the sanguino one) it complains about the chip being invalid.  The newest avrdude that comes with AVRstudio has no such issue.  However I either have a wiring error in my board or the arduino as ISP will not suffice for programming a 1284p.

The problem I have is for instance when i try to read the fuses it gets half way through then throws an error as it seems the arduinoISP sketch has frozen.
42  Forum 2005-2010 (read only) / Development / Re: Bootloader compatibility  ATmega 1280 and 1284P on: May 10, 2010, 05:19:10 pm
The ATMega1284p is actually closer to the ATMega644p than the the 1280.

I to am very interested in getting the boot loader onto the 1284, got a few of the DIP versions.
43  Forum 2005-2010 (read only) / Interfacing / Re: Arduino with TV on: January 23, 2011, 07:52:59 pm
What problems to you have with the beta? the video pin did change was that it?

color is not going to happen without added hardware. gray scale is possible but doing anything with the color burst is beyond the capabilities of a micro controller running at these speeds.

VGA would be the way to go for color but the its lines are half as long as NTSC/PAL and 128pixels wide would be the best that can be done @ 16mhz.  In addition making a 2bit or 4bit color space is going to need much more ram.

strictly speaking color in PAL signals would be possible (as demon-straighted by phasor) but not for NTSC, the tricks used to generate color in phasor require the alternating phase of the color burst.

44  Forum 2005-2010 (read only) / Interfacing / Re: HELP project with 300+ photoresistors! on: November 29, 2010, 03:31:00 pm
This might be of some service as far as video processing goes:
http://courses.cit.cornell.edu/ee476/FinalProjects/s2010/aip23_kaf42/aip23_kaf42/index.html

It uses human tracking to play a game of tetris that it imposes over the video from a composite video camera all on an atmega644 running at 20mhz.

The video is no longer up but I saw it prior to it being pulled down and it was very impressive.
45  Forum 2005-2010 (read only) / Interfacing / Re: Arduino Duemilanove and Sabertooth 25A dual motor on: August 15, 2010, 09:30:16 pm
I actually worked with this motor controller but with an msp430 based system.  I used the packeted serial mode which can be accomplished like so:

switches:
1 off
2 off
3 on
4 on
5 on
6 on
(this sets the address of the motor controller to 128)

void setup() {
  Serial.begin(9600);
  Serial.print('x'); //auto bauding character must be sent before anything else
}

now to issue commands to control the motor something like this can be used:
send_packet(char address, char command, char data) {
  Serial.print(address);
  Serial.print(command);
  Serial.print(data);
  Serial.print( (address + command + data) & 127 );
}

the commands are listed in this pdf under the packeted serial section: http://www.dimensionengineering.com/datasheets/Sabertooth2x25.pdf

One extra thing when I was using this controller there was a very particular way to power it up. This consisted of first powering the msp430(arduino in this case) then powering the motor controller.  The program then had to either wait for a button press or have a set delay before sending the bauding character.  I don't know if this applies on the arduino but during power up the pin state would randomly fluctuate causing a bauding error to occur.
Pages: 1 2 [3] 4 5 ... 10