LGTMCU / LarduinoISP

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

can be used this programmer with LGT8F328P ( note the P at the end ) #1

Open j0t4 opened 5 years ago

j0t4 commented 5 years ago

I tried to program WAwgat nano v3 without success ... https://pl.aliexpress.com/item/WAVGAT-Nano-Mini-USB-z-bootloadera-kompatybilny-Nano-3-0-kontroler-CH340-sterownik-USB-16-mhz/32868170637.html It seems that it only works with LGT8F328D (note the D at the end). The hardware programmer SWDICE_mkii pro is supposed to program both MCUs.

Is there any way to use this program with the LGT8F328P MCU?

Thanks.

masterhou commented 5 years ago

I found LGT8F328P's SWDID is 0x3e, not 0x3f, and it will not block, but also not upload ok.

curliph commented 5 years ago

I am sorry but the programming timing of 328p is different from 328d, so by now, this ISP is not support 328p. I will arrange my time to update for 328p support if possible.

B.R

dimax2 commented 5 years ago

masterhou, your firmware did not contain led blink before programming? I have the correction SWDID == 0x3e programmer pretends that works, but nothing actually writes and not reads.

curliph , Please fix it :)

PS: Sorry for English, I use a translator

fmfer commented 5 years ago

@curliph @masterhou Do you have any information or links about SWD programming timing of 328p? I would like to work in this issue myself. Thanks! 要是只有中文的资料也没事,我会中文~

masterhou commented 5 years ago

@marcelof01 Pls see my fork.

fmfer commented 5 years ago

@masterhou I saw it, but I think you just changed the SWDID. Does it work?

HI-SEBA commented 4 years ago

@masterhou @marcelof01 Does it work with the LGT328P? @curliph Do you have a schedule for the 328p ISP support?

yanxiaokai commented 4 years ago

I consulted the LGT, and their technical director said that they would upgrade their ISP in the near future to realize support for 328P series.

haindvn commented 4 years ago

I consulted the LGT, and their technical director said that they would upgrade their ISP in the near future to realize support for 328P series.

Have you found a way to program 328P? I use the ISP from @masterhou and it doesn't work (I found there are 3 places in swd_drv.c contains 0x3f, I changed them to 0x3e but it doesn't work. I tried on 3 LGT328P, the problem is not stable

  1. I tried to write hex without bootloader, avrdude run into safemode, it wrote and destroyed the fuses
  2. On blank one, I tried to read the fuses, all of results are FF for all fuses, read few times then LGT can not access anymore.
  3. Try another blank one, tried to burn blink sketch with bootloader, avrdude reported that it successfully wrote the hex, however, read again and failed at verification step.

Just don't know what the problem is.

darkautism commented 4 years ago

I found a project can download bootloader into 348p https://github.com/nicechao/ISP4LGT8F328P

It's worked. But it seems only have pre-compiled binary in his repository. The author says download into LGT8F328P-SSOP20 but it does not work for me (I have no idea why). It is worked when I download into my arduino mini as my ISP. Make sure you disconnect DTR or RESET pin if you wanna use LGT8F328P-SSOP20 as ISP or u'll get a brick.