dbuezas / lgt8fx

Board Package for Logic Green LGT8F328P LGT8F328D and LGT8F88D
367 stars 88 forks source link

LGT8F328P MiniEVB not programming #67

Closed leozzito closed 1 year ago

leozzito commented 4 years ago

Hello, my name is Leo. I'm having problem to program an LGT8F328P MiniEVB using a CP2102 USB UART adapter.

Details: Arduino 1.8.13 environment and your support software 1.0.6 Board LGT8F328P MiniEVB Clock source internal Clock 16Mhz Variant 328P-SSOP20 (even is not a SSOP chip). I tried different settings, still the same) Arduino as ISP: Default (64). Port COM 6 Programmer AVR ISP

After compiling sketch, it stuck in uploading (no rx or tx led blinking) and after a couple of minutes it says Done. But nothing has changed, no error messages.

What's wrong?

Hope in your help. I got 30 of this boards and to program them.

Thanks in advance

Leo

SuperUserNameMan commented 4 years ago

As you're referring to "COM6" I guess you're under Windows. I personally had some drivers issue when I was under Windows 8.1. Under Linux, everything is okay so far.

Regarding the variant, I recommend you keep using the correct one, because the default settings and the bootloaders are not the same between SSOP20 and LQFP32/48.

Quick check-list :

leozzito commented 4 years ago

Many Thanks for your prompt reply. I'm running Windows 7, I do not use Linux.

> Regarding the variant, I recommend you keep using the correct one, because the default settings and the bootloaders are not the same between SSOP20 and LQFP32/48. I installed the board from your json link. Board present on IDE are: 328P-LQFP48 miniEVB 328P-LQPF32 (e.g. MiniEVB nanostyle and WAVGAT) 328P-LQPF32 wemos-TTGO-XI 328D rare 328P_SS0P20 (e.g. green pseudo pro mini)

From the seller page I need LGT8F32P-LQFP32 MiniEVB LQPF32

are you sure the CP2102 drivers are correctly installed ? (does it work with other Arduino boards ?) Yes. I use the CP2102 with Arduino Pro mini (168p or 328p) and it works without problem.

> does the Blue LED of the MiniEVB blinks when powered up ? Yes, it blinks. At the same time on the CP2102 rx and tx leds are blinking.

> are you sure CP2102.RX is connected to MiniEVB.TX, and CP2102.TX is connected to MiniEVB.RX ? Yes they are.

are you sure you have selected the correct COM port ? com port

> does it display some useful error message if you enable "File / Settings / Display detailed results during [_] uploading" ? it stuck on this blocco

> does it display some useful error message if you enable "File / Settings / Display detailed results during [_] compilation" ? it stuck on this blocco2

> does it display some useful error message if you enable "File / Settings / Compiler Warning / All" ? it stuck on this blocco3

As variant in these pictures, I used 328P-LQFP48 MiniEVB

SuperUserNameMan commented 4 years ago

This is strange. I do use a CP210x adapter too.

LaZsolt commented 4 years ago

Sometimes the 3.3V powered serial adapter cannot drive 5V powered MCU RESET pin. In this case use Reset button, mentioned above.

A negative pulse on DTR will cause a voltage drop on RST, which is supposed to reset the target. When the target power is 5V and 3V3 TTL signals are used, toggling DTR will cause RST to drop from 5V to about 1.7V (5 - 3.3). With the ATmega328P and most other AVR MCUs, 2V is low enough to reset the chip. The LGT8F328P, however requires a lower voltage to reset.

http://nerdralph.blogspot.com/2020/10/lgt8f328p-edmini-board.html

xuancong84 commented 2 years ago

I have tested extensively on LGT8F328P MiniEVB. I am running Debian-based Linux x86-64. In general, the chip works. However,

LaZsolt commented 1 year ago

There were no problem reported on this topic since 2020. In my opinion it can be closed.