Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
j0t4 opened this issue Feb 2, 2019 · 10 comments
Open

Comments

@j0t4
Copy link

j0t4 commented Feb 2, 2019

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
Copy link

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

@curliph
Copy link

curliph commented Jun 19, 2019

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
Copy link

dimax2 commented Jun 27, 2019

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
Copy link

fmfer commented Sep 2, 2019

@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
Copy link

@marcelof01 Pls see my fork.

@fmfer
Copy link

fmfer commented Sep 19, 2019

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

@HI-SEBA
Copy link

HI-SEBA commented Oct 4, 2019

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

@yanxiaokai
Copy link

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
Copy link

haindvn commented Apr 3, 2020

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
Copy link

darkautism commented Apr 16, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants