Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - yombo

Pages: [1]
1
Programming Questions / Re: Programming directly with ISP
« on: December 22, 2011, 04:52:39 PM »
It worked perfectly!

About the H-bridge, it has 2 PWM inputs and 2 'direction' inputs (it is made with 4 TC4422/21 MOSFET drivers, a 74LS04 and a 74LS08), so I put all the four signals to 0 with these lines in the main method:

Code: [Select]
  *(PORT_TO_DDR(PORTB)) |= 0x1E;

  PORTB &= 0xE1;

(the signals are tied to PORTB1..4, pins 2..5)

Thanks
2
Programming Questions / Re: Programming directly with ISP
« on: December 20, 2011, 04:22:04 PM »

The make tool compiled the bootloader ok, but how can I tell it to build the atmega 1284 bootloader?

Thanks
3
Programming Questions / Re: Programming directly with ISP
« on: December 12, 2011, 08:10:09 PM »
I've executed 'make' in hardware/Wiring/bootloaders/build

It has generated some files, and a .hex named WiringBoot_arduino-328p-16MHz.hex

Okay, but I'm using a bare atmega 1284 on a breadboard :)

So i need to generate the WiringBoot_ATmega1284_16MHz.hex, how can I tell it to do that?

(I suppose that the file then needs to be copied to hardware/Atmel/bootloaders/, is that right?)

Thanks.
4
Programming Questions / Re: Programming directly with ISP
« on: December 10, 2011, 08:43:35 PM »
I only have the .hex of the bootloader, where can I find the sources? And, can I compile them with Wiring?

Thanks
5
Programming Questions / Programming directly with ISP
« on: December 10, 2011, 03:02:49 PM »
Hi there!

I'm the guy that made the wiki article about bootloading a 1284.

Is it possible to upload a sketch to a micro directly with ISP? I mean to upload a sketch to a board using another board (Duemilanove) and the Wiring ISP sketch. For now I've been only able to upload bootloaders..

If not, what other ways are there to do it?

When my robot is started, it moves its wheels while the bootloader is running (about 2 seconds) before my sketch gets the control of the wheels. That's why I want to program with ISP and get rid of the bootloader.

Thanks
6
I finally did the tutorial. It took a bit more time than expected, and I've been a bit busy.

Here it is:
http://wiki.wiring.co/wiki/Creating_your_own_Wiring_board_with_a_DIP_atmega1284p_using_Duemilanove

Regards
7
It works!!  :) :) Just got the 1284 blinking a led :D

I'm going to do the tutorial, but I don't know how to add a page in the tutorials section of the wiki's main page (it is not editable)

I've already done the images of the breadboard (with fritzing), it would be a matter of minutes to do the tutorial.

Thanks for the tip!
8
Hi

I have bad luck burning the bootloader on the 1284's, it gives this error:

Code: [Select]
***failed; 
avrdude: verification error, first mismatch at byte 0x0000
         0x05 != 0xfd
avrdude: verification error; content mismatch

I've been able to burn the bootloader on some new 328P's, so I don't know why it does not work on the 1284.

I connect the following pins on the arduino to the 1284:
Code: [Select]
Duemilanove    1284
-----------    ----
10 (SS)        9 (RESET)
11 (MOSI)      6 (MOSI)
12 (MISO)      7 (MISO)
13 (SCK)       8 (SCK)

And 5V to pins 10 and 30, and ground to pins 11 and 31 (on the 1284)
Also I connect the 16 MHz crystal and the 22 pF capacitors.

Then I upload the Wiring ISP sketch on the Duemilanove, then select the board Atmel->Atmega1284P(A) @ 16 MHz, and finally try to burn the bootloader.

I don't know what is wrong since the 328P's get burned and programmed ok. I've checked the connections many times.

Any help appreciated
9
Ok, I will do the tutorial. I shall have the micros in ten days...

Regards
10
Hello!

I've been using Arduino IDE and a Duemilanove to program ATMEGA328P uC's for a while now.

Recently I discovered the 1284P, wich is the biggest Atmel micro in DIP format, i think. Good to have many pins for a two-wheeler robot I'm planning. And no SMD parts so I can solder them... Also the Wiring IDE seems more advanced :)

So my question is, wether I can burn the bootloader and upload sketches to an 1284P using the Duemilanove. If so, I would buy some 1284's, wich are cheap at RS:
http://es.rs-online.com/web/p/microcontroladores/7193932/

I've just uploaded the blink led sketch with Wiring IDE and the Duemilanove to a 328P and it works nice. To upload the sketch I remove the 328P from the Duemilanove and connect Vcc, Gnd, RX and TX to the breadboard.

So would be these the steps for a 1284...?
-Burn bootloader:
1- Select Tools -> Board -> Arduino -> Arduino Duemilanove
2- Select serial port
3- Upload the Wiring ISP sketch to the Duemilanove (with 328P put on)
4- Wire the MISO, MOSI, SCK and SS signals (and Vcc, Gnd) from the Duemilanove to the breadboard with the 1284, crystal -16 MHz- and caps.
5- Select Tools -> Board -> Atmel -> ATmega 1284P(A) @ 16 MHz (crystal)
6- Select Tools -> Burn Bootloader -> w/Wiring ISP

-Upload sketch:just like I've done with a 328P, only selecting the 1284P.

I still have to look up wich pins on the Duemilanove are the MISO, MOSI, SCK and SS...

Would it be so simple? The Wiring IDE is cool!


Thanks in advance

(sorry for my english)
Pages: [1]