Hi, i have a problem with the stock arduino mega 2560 bootloader stk500v2, that im looking for help here from someone with this sort of experience. Ive opened up the source files and have a some understanding of what needs doing, but feel it will be quicker this way.
Problem:
With an actively transmitting serial device connected to serial 0 before and during bootup, the arduino will not start its sketch, i suspect getting stuck in the bootloader, expecting a new sketch, but never getting it, instead just getting unrelated (to the bootloader) serial data.
Notes:
A 328p based board uses a different bootloader, and has had a modification made to it to fix this problem, this would have been done for this chip earlier on as it only has 1 serial port, thus the focus on that port, but the mega has 4 and was possibly overlooked as an issue or not thought of by its bootloader's developer.
Im not completely sure at what point in the 2560 boot load process it is getting stuck, but im pretty sure the equivalent addition of what the "MAX_ERROR_COUNT" code does for a 328 is used to get around it:
[login to view URL]
Job:
I likely need the equivalent code and function related to "MAX_ERROR_COUNT" but for mega 2560 (stk500v2), unless it turns out to be something else.
Can help... I am an Expert... Lets Start!
Please start a Discussion with me and we can get started from there...
Please check the past projects I have handled and check my reviews for what employers have to say about my work... Can start right now...