Hi,
I have an arduino mega 2560 and can bus shield(sparkfun). What i want to do is, to upload a hex file to atmega 2560 chip via can bus communication protocol. First of all, is this possible? If yes how?
We have a solution to this. We will modify the atmega16u2 chip which is used on arduino mega 2560 for usb communication. The modified code will contain a can bus communication code(if it is possible). The process will occur as follow, the atmega16u2 will communicate with computer over can bus, it will check for assigned id, if the id matches, it will take the hex code from computer and upload it to atmega 2560.
Now we are in a state that, we can compile arduino-usbserial code and can create the hex file. We know how to upload it to atmega16u2.
Any help appreciated.