I use the AVR GCC plug-in to create two memory segments at the end of flash for two separate boot loader functions. This compiles fine, but when I click "Start Debugging", and the progress bar for "Loading program memory..." gets a few steps through, it crashes: "AVR Studio MFC Application has encountered a problem and needs to close."
When I put the two boot loader functions in the same segment, everything works fine. (The second segment is still present but zero length.)
I'm debugging with a JTAG ICE MkII. The device is ATmega168. The memory segments are at word address 0x1F00 and 0x1F80. I have installed SP2 (build 472) to AVR Studio 4.12, but this also occured before I installed it (I think I was using SP1 build 462).
I have reviewed the .hex file produced by the compilation and it looks correct, with two gaps in the address sequence. I'm wondering if AVR Studio just can't deal with these gaps.