LGTMCU / LarduinoISP

make arduino board to be LGT8FX8D/P programmer
62 stars 18 forks source link

Can burn .hex with Arduino Nano #5

Open Chandler-Kluser opened 3 years ago

Chandler-Kluser commented 3 years ago

I have sucessfully flashed a small blink (without bootloader) program using a LGT8f328p to flash another LGT8f328p using the specs and the wiring the instructions said to do.

Screenshot-20211012-135557.png

But I could not flash using an Arduino Nano for that, repeating the same wiring and specs I used with the LGT8f328p flasher.

I am a bit worried because I have only one LGT8f328p with me, the another one I used I picked with a friend of mine who had gently lent me but I have sent It him back.

The sketch in the repo is supposed to work in an Arduino Nano, right? Or I can only be used with a LGT8f328p acting as a flasher?

I have also selected the Arduino IDE to flash my Arduino Nano as a LGT8f328p, with the RX_SERIAL_BUFFER_SIZE set to 250, but It didn't succeed either.

The avrdude command I am using is:

avrdude -u -c stk500v1 -p m328p -P /dev/ttyUSB0 -b 19200 -B 1.5 -U flash:w:"/path_to_hex_file"

*using the LGT8f328p flasher I only replace the /dev/ttyUSB0 for /dev/ttyACM0

and It's not working only with the Arduino Nano.

LGTMCU commented 3 years ago

Hi ,

I have not try with Arduino Nano, but it should be no any difference. Accroding to the image attached, if it's the case of arduino nano, "Board" should be "arduino nano" like. "Arduino as ISP" is right. then, try to update target bootlaoder by start "Burn Bootloader"

P.S, don't forget to connect a 4.7Kohm pullup for SWD (pullup to VCC)

Thanks and best regards,

@.***

From: Chandler Klüser Date: 2021-10-13 01:03 To: LGTMCU/LarduinoISP CC: Subscribed Subject: [LGTMCU/LarduinoISP] Can burn .hex with Arduino Nano (#5) I have sucessfully flashed a small blink (without bootloader) program using a LGT8f328p to flash another LGT8f328p using the specs and the wiring the instructions said to do. But I could not flash using an Arduino Nano for that, repeating the same wiring and specs I used with the LGT8f328p flasher. I am a bit worried because I have only one LGT8f328p with me, the another one I used I picked with a friend of mine who had gently lent me but I have sent It him back. The sketch in the repo is supposed to work in an Arduino Nano, right? Or I can only be used with a LGT8f328p acting as a flasher? I have also selected the Arduino IDE to flash my Arduino Nano as a LGT8f328p, with the RX_SERIAL_BUFFER_SIZE set to 250, but It didn't succeed either. The avrdude command I am using is: avrdude -u -c stk500v1 -p m328p -P /dev/ttyUSB0 -b 19200 -B 1.5 -U flash:w:"/path_to_hex_file" *using the LGT8f328p flasher I only replace the /dev/ttyUSB0 for /dev/ttyACM0 and It's not working only with the Arduino Nano. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Chandler-Kluser commented 3 years ago

Before the shot was taken, I had already tried with the "Arduino Nano" board selected in the IDE.

About the resistor: I have tried with the LGT8f328p flasher and It worked with and without the resistor. I will try with the Arduino Nano, too.

Screenshot-20211016-140922.png w/o resistor

Screenshot-20211016-140944.png w/ resistor

If I solve the problem I will close this issue! Thanks in Advance

Kind Regards,

Chandler