Open j0t4 opened 5 years ago
I found LGT8F328P's SWDID is 0x3e, not 0x3f, and it will not block, but also not upload ok.
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
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
@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! 要是只有中文的资料也没事,我会中文~
@marcelof01 Pls see my fork.
@masterhou I saw it, but I think you just changed the SWDID. Does it work?
@masterhou @marcelof01 Does it work with the LGT328P? @curliph Do you have a schedule for the 328p ISP support?
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.
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
Just don't know what the problem is.
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.
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.