I had an ethernet board connected but it had not connected before the debugger failed. It is not connected now how do I force a firmware reload to the G89 TH
Got it working by loading a new program after many attempts. Tomorrow I am going to try to get the Ethernet board to work on SPI1. The board I am using is the ENC28J60-H from Mouser electronics I hope it is compatible. I was not able to find anything in the G30 data sheet about a “Loader Pin”.
you might see I posted a documentation request to help clarify all this.
“Loader” = LDR pins, in particular LDR0 and LDR1. (this should be in the docs )
Can you confirm though, that you are using G80? In one post you said G89 (which I assume is just a typo) and Gus mentioned G30 - I’m assuming G80 was the one you want.
I think I found the reference, on the G80 LDR0 is the PE3 pin. I assume to force the board to wait for the bootloader PE3 would be connected to GRD at start up? I will be using SPI1 to connect the ENC28J60-H. I’am not sure which pin to use for CS. I was using PB7? The wiring I plan to use is.
As far as selectng a CS pin, that’s an arbitrary selection, totally up to you Given the issue you had, you may be able to avoid that somewhat by adding a wait before you initialise the ethernet module so the debugger can connect if there’s a comms issue with the ethernet module. You can do that with a wait of an appropriate length of time, or wait until an IO pin state changes (a button press fo example), prior to your code kicking in.
I have solved the mystery! All of my Ethernet issues and others were caused by a malfunctioning stacking header. I set the pins to high with and some pins registering 0 volts from the stacking headers. I then took a voltage measurement from the bottom of the board where to pins were connected the the voltage measured about 3.2 volts. I don’t know if the stacking header was defective or if I melted it when soldering it to the board. I assume I melted it. Therefore I have a new soldering iron that I can control the temperature. :wall: