-
Notifications
You must be signed in to change notification settings - Fork 90
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
Won't flash using IDE 2.2.1 #312
Comments
Update: I wonder if I got some bad boards. I have 5 boards, 3 program ok, 2 won't. |
You could try to use one of the working ones for attempting to burn the bootloader on one of the defective boards. |
Can you show me how to connect the SPI pins? It is not clear from the board which ones connect to MOSI and MISO, CLK etc, seems to have a pin missing. Cheers (can only see SWC and SWD) |
You need LGTISP to burn the bootloader via SWD and SWC. |
Thanks, will give it a try. |
I loaded up a good LGT board with the LGTISP.ino sketch ok. However, when I go to program the bootloader to another LGT board connected with SWC,SWD etc it gives error.
I am somewhat confused as the instructions say to use AVR ISP as programmer, even though there is an " LGTSWD markii as ISP" option ?? |
There is a LarduinoISP sketch amongst the examples. Did you compile and load that one? The LGTSWD Mark II is this one. Probably not what you have. |
Right, you did not link that initially, now I understand. BUt the question remains, If I use LGT as ESP are the pin connections the same? |
I don't have those examples .... maybe I have the wrong LGT library? I got the library from here: |
I have added the core I am using above, is it incorrect? |
That's the one I use. |
So why no examples? |
I honestly have no clue.
|
LGTISP.ino may be a newer or older version. I have not used it myself as I usually grab my dedicated SWDICE programmer. The sketch I just uploaded here I have used a while back. But I just found my box with LGT's so let me try if it still works. |
Thanks will wait. Meantime I tried connecting the programming pins at the end of the board to the target board pins, but that did not work either. So Still unsure of pin connections. |
Just tested and works fine First burn the LarduinoISP.ino to your working Nano Then hook it up like
Keep AVRISP as programmer and press "burn Bootloader" I burned it to a "promini style" LGT board, as my second Nano has no pinheaders yet. But you will select the board you have to get the bootloader that goes with your board. |
I keep teling you, I am not using an Arduino Nano as ISP, I am using LGT Nano, do I still use pins 10,12,13 on the ISP side ? |
I also used LGT Nano |
Well I get this using those pinouts:
|
I have to go out, will pick this up later. Thanks for the help. |
I have exactly that! |
I'm back now if you have any more suggestions. I am using LarduinoISP.ino, but LGTISP.ino does not work either. |
Have you seen the tutorial in this repo? |
The only way how I can get your error is when I do not upload LarduinoISP to the LGT-Nano. When I upload LarduinoISP to it and do not connect a target I get this error instead
When I connect a target everything works 100%, even without the capacitor or disabled reset pin. The only other difference I see is that I work on Arduino IDE V1.8.19 as I cannot upgrade to IDE V2 (it has no portable IDE anymore) |
Ok, trying again. I uploaded LarduinoISP to a working LGT sucessfully. Then without connecting target, I try to burn bootloader, I get this error:
Looks same as yours, except I am on MacOS not Windoze ... |
And what happens if you now connect one of your known working and one of your known not working targets? |
I get the error above. Maybe it's just a dud board?
Edit, that's the non-working board, I will try a good board next. |
Nope, new working board does the same thing. |
I start to suspect faulty breadboard wires or some HW problem. |
In my opinion the the communication speed is the source of the issue.
but the programmers.txt set the speed to 19200 baud. Line 13 in 307d152
|
With the old IDE (v1.8.19) the ISP works fine as is. It has happened to me that it failed to work, but the reason ended up being that the boards were fried. |
Hi, I am trying to program LGTBF328P - MiniEVB nano board. I get the following error:
Any idea's ?
The text was updated successfully, but these errors were encountered: