Hi,
Anyone knows how can I put my Freaduino Mega 2560 in DFU Mode?
Thanks,
Martín
Hi,
Anyone knows how can I put my Freaduino Mega 2560 in DFU Mode?
Thanks,
Martín
Assuming it doesn't use an FTDI TTL converter you can use this guide
Thanks for your answer:
My doubt is about this section:
"Reset the 8u2
To do this, briefly bridge the reset pin with the ground. The pins are located near the USB connector, as shown in this picture. Connect them briefly with a piece of wire.
To verify you have reset the 8u2 chip: In the Arduino programming environment, check the list of serial ports. The serial port for your board should no longer show up."
My board is a Freaduino Mega 2560... I can't found a way to switch this into DFU Mode (and achieve this situation: "The serial port for your board should no longer show up.").
Thanks,
Martín
Yes the ICSP for the USB-Serial atmega chip.
Post a photo so I can let you know the right pin.
This is my board:
Thanks in advance,
Martín
That board does not have the 8u2 chip.
An FTDI USB to TTL chip is used instead, so you cant place it in DFU mode.
Cool design with a switching regulator, BTW.
Any particular reason you wanted the DFU mode?
I've this problem:
I bought this board last week.
My first example was a simple circuit with a led and a button. It works fine.
Then I try to plug a TFT 2.2 Shield (http://mla-s2-p.mlstatic.com/arduino-shield-display-tft-22-con-zocalo-microsd-incluido-7032-MLA5152222220_102013-O.jpg)
I upload two or three sketches but none worked.
After that, my first example stopped working. I don't know a way to check my board health.
I've uploaded the "blink" sketch and it works (with the pin 13, that is onboard), but if I change the pin to another digital pin, I've not found any success.
Looking for some help, I've read about flash reset and DFU mode...
Any suggest?
Thanks,
Martín
The DFU mode only updates the firmware on the serial converter on official boards (Your setup is actually better).
I am not sure if the main CPU supports DFU mode as well, but assuming that you can load the blink without delay it seems as you don't really need it.
Can you post the code you're having trouble with?
My code:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(24, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(24, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(24, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
My circuit:
GND ---> Cable ----> Led
Pin24 ---> Cable ---> Resistors ---> Cable ---> Led
Thanks ,
Martín
Try this:
void setup() {
// initialize PORTA, B, C, F, L, and K as outputs
DDRB = 0xFF;
DDRC = 0xFF;
DDRF = 0xFF;
DDRK = 0xFF;
DDRL = 0xFF;
DDRA = 0xFF;
}
void loop(){
PORTB = PORTB ^ 0xFF; // Toggle PORTB
PORTC = PORTC ^0xFF; //Toggle PORTC
PORTK = PORTK ^0xFF; //Toggle PORTK
PORTF = PORTF ^0xFF; //Toggle PORTF
PORTL = PORTL ^0xFF; //Toggle PORTL
PORTA = PORTA ^0xFF; //Toggle PORTA
delay(1000);
}
That toggles Pin 13 along with 47 others.
I've run this sketch:
And anything matters
I have two connected leds (on pin24 and pin50).
What is the expected result?
Martín
letincho5:
I've run this sketch:What is the expected result?
Martín
Nearly every pin (not all) should flash with this sketch. So test each individually.
Does your external LED flash attached to pin 13 or just the onboard LED?
It's the onboard pin13.
I suspect that there is power from pins or there is some Problem with GND pin. This all started when plug the TFT Shield.
I could have damaged?
Sorry, I meant there is NO power from pins.
letincho5:
It's the onboard pin13.I suspect that there is [no] power from pins or there is some Problem with GND pin. This all started when plug the TFT Shield.
I could have damaged?
Maybe. But hardly. Is you LED wired with the correct polarity?
You can use the USB connector metal part as GND
What colour are the LED's?
Thank you very much!
I had not noticed the theme of the polarity of the LEDs
Regards,
Martín
Don't worry, happens to the best of us at least once