My project is at http://github.com/tz1/bluev where I'm working on an interface to a radar detector. It works on the Mega series, but I just ran into a strange problem.
If I use the makefile (Malefile.ArduMega) to compile bluevmega.c, and manually use avrdude, it works fine. If I paste it into the IDE, it compiles and partially works, but the input capture timing is off - I am using ICP4 (and OC interrupts) to create a software UART but I am missing many edges when I use the IDE. I suspect there are other interrupts running which interfere or perhaps optimization is very, very low, or some subtle compiler setting is playing signed v.s. unsigned games, or even one of my subroutines is being superseded.
i could probably figure it out if I saw the actual build commands and generated files. I know you are adding and altering things, but there is no way I can find to recover the actual steps, e.g. recreate a script file to do the process or just see all the parameters for avr-gcc and the alteredprogram.c file to look for anything which may have changed. Are these available anywhere? I'm surprised that this is either not documented at all or hard to find, both just what is going on if I wanted to do the commands manually and the lack of any build logs or scripts, only errors on the console. I can't even find a "verbose" mode.
An earlier version of this worked fine - before I added sprintf and other calls to handle an onboard UI. I don't think I changed anything significant, but the binary is different - I would expect that, but I have no idea how to determine where those difference come from.
Any help would be appreciated, but mostly pointers as to how to generate or recover the build scripts or logs.