modify firmware code line for HOT END TEMP
I had broken my adc port for the END TEMP due to a broken thermistor or something like that , I am not sure. I replaced the thermistor and the DEF error disappeared. My heat bed temp works fine but my END TEMP is on 245 degrees at room temperature.
So I double , triple checked everything and there were no shorts thermistors were brand new and had good values. I came to the conclusion that the ADC port might been burned out or something.
So, good news I have made an attempt in repairing the adc port or replacing the adc port myself.
I have looked at the melzi 2.0 schematics and found that pin 30 on the mcu is for END TEMP and I switched it with pin 37 SS-SD something for my SD CARD READER I think it is a slave select pin if I'm not mistaken for the SPI port on the atmel mcu.
Now I have broken or cut off the original END TEMP pin on the mcu and luckily there was a via standing in the way little bit further from the mcu about 5 -10mm so I clean it up. Pin number 37 that is supposed to act like a SS for the SD is also adc and I just desolder it and pull it up a bit on the mcu.
I did my best solder a jumper wire between pin 37 and the via on route from pin 30. Now with little or no luck I should be able to fix my END TEMP .
I started up my printer and got immediately a DEF error on both END TEMP and BED TEMP which is normal because , if I previously disconnected one of those thermistors from the board I would get the same error so is only natural since the END TEMP pin number 30 is not connected to the rest of the board anymore. I then also got to see what the SD CARD says and as I expected I push the '' MOUNT SD CARD '' button but with no change at all. So this function do not work anymore meaning that I will have to print through the USB.
The last remaining thing for me now is to modify the firmware and here is where I need help. I need to change somehow in the firmware the END TEMP pin from 30 to 37. I don't know how it is assigned in the firmware and which number it should or would have. Pin number 30 and 37 are the real MCU pins.
Anyway... anybody an idea how I should get started ? Please keep it as simple as possible without the need of programming devices, since I have a usb port and the firmware is working on it I'm looking for a way to modify the firmware with a software or some kind.