Show Posts
Pages: [1] 2 3
1  Using Arduino / Project Guidance / Re: Mega ADK to communicate with Nexus 7 Tablet to save fastboot partition question on: August 02, 2013, 10:50:52 am
NO I will use a PC and save the files to the PC or a sdcard as you said.

I want to access the raw system files and partitions of the nvram on the nexus 7 save the files/partition portition of the fastboot loader.  All devices in general have some type of bootloader such as modems etc.

No one has been able to figure out how to restore a bricked bootloader on the Nexus 7.  At that point the Nexus 7 screen is black nothing no graphics, but you can most liklely still access the nvram via usb using another device such a Bus Pirate or Arduino and save the file structure from the N7 back to the PC or sdcard, prior to bricking the device.

Is the MEga overkill for this or will it even work with the Mega or any of the arduuino prodocts?  In other words would a simple uno board, Bus Pirate or simple a Serial TTL/USB board do the job?

I would hate to buy the Mega ADK to find out this is impossible to do.  I know the Mega ADK was meant to use as an API layer with IDE type software.

I am talking about taking it to a root level/terminal command driven way.

I hope someone can answer this for me.  I am ready to order the product soon.
2  Using Arduino / Project Guidance / Mega ADK to communicate with Nexus 7 Tablet to save fastboot partition question on: August 02, 2013, 08:43:27 am
I wanted to buy the Mega SDK to basically do one thing for now.  Save and restore the Fastboot bootloader which is secure locked.  I don';t want to write programs on the nexus 7 to turn on LEDs on the arduino for example.  I want to use a terminal on the PC to communicate with the Nexus 7 and save its partitions.

I am assuming this is low level commands not much as far as API or ADK involved here right?

Can I use the MEga ADK to serial terminal commands to communicate with the Nexus 7 and view files/folders/partitions and save and restore?

3  Using Arduino / Microcontrollers / [PARTIALLY SOLVED] Mega2560 ADK and UNO R3 In-System Debug question on: October 14, 2012, 09:28:51 am
Mega2560 ADK and UNO R3 In-System Debug question

Are these devices supported in Arduino IDE or AVR Studio 6 to do in-system debugging of your source script?   I know they have a simulator but there is also direct in-system debugging support for a list of hardware.  AVRISP MK2 and AVR Dragon for example.

If not is there a way I can connect the Arduino Mega or UNO device to another device to support those features in AVR Studio 6 or Arduino IDE?

I see Olimex makes a AVRIPS MK2 that is supported in AVR Studio 6 and this AVRISP MK2 Clone link below:

If I wanted to use one of the Atmega Dip packaged IC's on a breadboard or Zif socket, what would be the best option for hardware to communicate with ACR Studio 6?  Would it be the Arduino or maybe a AVRISP MK2 or the clone with the link I listed above?   AVR Dragon, JTAGICE MK2 seem fairly expensive to me.  The Dragon does not even have a Zif on board and has to be soldered!!



According to the Atmel AVRISP MK2 guide it should support in circuit debugging.   What I am concerned about now is the Reset pin cannot have a resistor pull-up resister value greater than 4.7K ohm?  The Arduino allows up to 10K ohm no?

I don't think it will be worth even looking at that clone since digi-key has the device for $35 US.

Still would like to know if the Arduino products will support In circuit Debug in Arduino IDE and AVR Studio 6?


I don't think this MK2 supports JTAG Debugging?  I am back to stage one from another post I made linking some EBAY clone brands from $10 to $15 US


I joined another forum avrfreak and was told that none of that EBAY AVR JTAG adapteres will work with more modern or current MEga AVRs.

Also JTAG and In circuit debug can only work with their boards suposedly.  Like the AVR Dragon $50 or the JTAGICE3 around $100.

Do any of the Arduino Board serve as JTAG adapter Hosts to use other AVR same pin DIP on the Arduino or just breadboard with Arduino using it to JTAG using AVR Studio etc?

4  Using Arduino / General Electronics / Which Debugger would be a better option over AVR Dragon? on: October 12, 2012, 11:23:01 pm
THis one:

Or this one:

And if neither any suggestions other than AVR Dragon unless that is the only real good would which would be more economical over Atmel other More Expensive ones!!

Maybe something like this one with more support for xmega etc?
5  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 10, 2012, 03:34:00 pm
Connect the 6 pins from the pocket programmer to either the ICSP header, or to Reset-SCK-MISO-MOSI on the female header and program away.
Nothing needs to be done to the card.

Arduino - to - breadboard. Why are you messing with that when you have a nice working AVR ISP?  Stay away from that.

Well thanks for everyones help on this Post.


I see your point about not needing to use the Arduino UNO R3 as an ISP since I already have a good working one to use.

I just wanted to see if I can get the Arduino UNO to work as the ISP as well.  I tried it with the female header and with the male header and I just cannot not get it to sync no matter what I do.

So the problem was not really with the TInyUSB but rather the Arduino as an ISP.  I just confused things by starting out with the TinyUSB when I should have had the Arduino connected up and took a picture of that instead.

Have you ever got it to work with the Arduino?
6  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 10, 2012, 01:28:36 am
Ok, you have 6 wires coming out of the pocket programmer - not one of them goes to PIN 1.

Fix your wiring - I think you are mixing up the software name for the pins with hardware names.
Make the pocket programmer connect to these pins:

SCK - physical pin 19
MISO - physical pin 18
MOSI - physical pin 17
RESET - physical pin 1

Thanks that worked on the USBTinyISP even with the reset switch in the way.

On the Arduino UNO R3 remove the chips and use the header not the shield connectors to do the same thing?  One of the diagrams shows them using the shield rail without the chip in place and using 13,12,~11 and ~10.  But if the chip is removed then how can those be used?

I am trying the Arduino now but using the header.  Not sure about the shield pins

Thanks Again!!


So the issue is resolved with USBTinyISP.  It works without all the trouble I described.   I cannot get the Arduino UNO R3 to work.  I get a Not in Sync.

Do I need to put a resistor on the shield reset pin and +5 volts?


From the diagrams:

It not 100% clear put it looks like the ATmega328 is not removed from the Arduino Uno R3 when burning a bootloader onto another ATmega328 on a breadboard for example.

Is this true?  Can I use either the 6 pin header or the Pins off the shield as shown from the link above?

7  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 10, 2012, 01:03:43 am
I tired it both ways grey pin where it is now and grey pin to Pin # 1 of the ATmega328 same results
8  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 10, 2012, 12:57:03 am
9  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 11:44:36 pm
I am using the Tiny USB for now.  I did use the header.  The RST on the header of the ISP should be connected to the reset pin #1 on the ATmega328 on the breadboard correct?

I have done this and it fails every time!!

If I use the reset switch on the breadboard from pin # 1 and leave it depressed the entire time I burn a bootloader without any issues what so ever.

Ok so there is no reset pin on the right side of the ATmega328 so I connect RST from the ISP header to pin #1 right side of the ATmega328?

Doing it this way does not work for me and I cannot figure out why?  MOSI/MISO/RST/SCK/Vcc and Gnd connections are done correctly but unless I have a reset switch on Pin #1 of the Atmega328 on the breadboard and don't depress the button the entire time it will fail!!
10  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 11:30:38 pm
When I say opposite side I did not mean directly opposite the pin I meant the other side!!  I just don't have the pin # with me
11  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 11:20:46 pm
Opposite side of Pin # 1 on the ATmega328.

The reset button is on the breadboard for Pin #1

I am using the USBtinyISP and an Arduino UNo R3 without the CHip of course.

I have connected the other reset pin to RST or equivalent  name to the ICSP controllers with the same result.  I have to hold down the reset button on the breadboard to burn it successfully!!

12  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 11:08:51 pm
There is a reset Pin # 1 and another reset pin on the opposite side don't remember the pin # but I tried it that way to. UNless I am connecting it wrong?

So you don't do anything for Pin #1 and connect only the reset pin on the opposite side of the chip to the RST or equivalent on the ICSP board?

13  Using Arduino / Programming Questions / Re: ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 10:59:43 pm
I don't use the ICSP header.  I connect the pins to 13,12,11 etc!!
14  Using Arduino / Programming Questions / [SOLVED] ATmega328 on BreadBoard Bootloader Question on: October 09, 2012, 10:50:49 pm
I am beating my head against the wall here.  I figured out how to use the reset switch on the ATmega328 on a Breadboard to successfully upload any and all sketches.   The procedure is not exactly the same with Burning a new Bootloader onto the ATmega328 and I cannot figure out why or if this is normal or not?

I cannot release the Reset button until the bootloader has been burned and verified.   If release it for example while its verifying the burn I get a error.

If I release the Momentary Switch at any time the process fails.  Yet I can release the button when uploading a sketch usually right after I see the message come up on the window, I forget exactly what it is, but the point is, it works every time when I upload a sketch.

If I keep the button depressed the entire time until I see "DONE" or "COMPLETE", the bootloader successfully burns, with no errors!!

Does this sound normal??

It doesn't matter if I use an Arduino Uno R3 or the USBtinyISP as the host, I get the same results.

I know my connections are 100% correct on the breadboard.

Maybe the bootloader never really burns even when it says its successful?  Is there a way to wipe the bootloader just to make sure I really am burning a new one?  This of course is another question but would like to know if the procedure above sounds normal to you or not

15  Using Arduino / General Electronics / Momentary reset switch Cap question on: October 08, 2012, 10:40:42 am

I was told to add a cap in series to the Momentary Switch.  Exactly where does it go.  Anyone have a diagram?

If in series does that mean it runs along the reset line and the 1 side of the momentary switch or does one lead of the cap seat on the rest line while the other goes to ground or the ground side of the momentary switch?

Also where along the breadboard does it go.  Before the switch?  After the Switch?  In between the switch and reset pin?
ANyone have a clear diagram?

What exactly is the purpose of the Cap?

Here is a diagram I found.

3rd picture to the right is how I have it setup now.  I measure 100.9 nF for the cap.  That is what the kit came with.

Cap is in-between switch and pin #1 of chip
Next is switch, then Resistor behind the switch ground side and then the other side of resistor is connected to Breadboard Vcc +5.

I measure around +5 when the switch is open and when closed I measure 0 to .00005 volts.

When I burn a bootloader I have to hold down the switch the entire time and not just a portion of the time like when I program the chip.

Any reason that I have to hold the switch down the entire time it programs a bootloader to it?

Pages: [1] 2 3