AVRStudio MFC Application Error
Posted: Tue Jul 14, 2009 7:02 pm
I used IAR Workbench, AVR Studio 4.xx and a JTAGICE MK1 for a number of years developing Atmega128 products on a WinXP PC and a Win2K PC. Several months ago I installed WinAVR on both PCs and started using a JTAGICE MK2 (my IAR version and the MK1 do not support the AT90USB1287). This combination worked properly for the 1287 MCU and the project was completed.
I recently tried to go back to one of the M128 projects but keep getting the messages “AVRStudio MFC Application has encountered a problem . . .” (on WinXP PC) and “AVRStudio.exe has generated errors . . .” (on Win2K PC). These issues are occurring on both the WinXP and Win2K PCs and with both the JTAGICE MK1 and MK2.
I have uninstalled WinAVR, uninstalled and reinstalled Studio 4.15, uninstalled Studio 4.15 and installed Studio 4.16 + SP (rebooting after each uninstall and install) without success.
I connected the JTAGICE MK2 to a WinXP PC that never had WinAVR installed and it works with one M128 board. On a second identical board the “MFC” error occurs. (Obviously it is no longer “identical” otherwise it would work. But no hardware changes were made since it last worked.)
I tried loading the 1287 project into both M128 boards (after changing the device to Atmega128). It loaded properly and ran on all combinations of PCs and JTAGICEs (until it hit the 1287-specific commands, of course). I think this proves that all the PCs, JTAGICEs and M128 boards are working.
Questions:
1 How do I get the M128 board to run on the WinXP and Win2K PCs that had previously had WinAVR installed?
2 How do I get the second M128 board to run on the WinXP PC that never had WinAVR installed? (What might be different about this board?)
I recently tried to go back to one of the M128 projects but keep getting the messages “AVRStudio MFC Application has encountered a problem . . .” (on WinXP PC) and “AVRStudio.exe has generated errors . . .” (on Win2K PC). These issues are occurring on both the WinXP and Win2K PCs and with both the JTAGICE MK1 and MK2.
I have uninstalled WinAVR, uninstalled and reinstalled Studio 4.15, uninstalled Studio 4.15 and installed Studio 4.16 + SP (rebooting after each uninstall and install) without success.
I connected the JTAGICE MK2 to a WinXP PC that never had WinAVR installed and it works with one M128 board. On a second identical board the “MFC” error occurs. (Obviously it is no longer “identical” otherwise it would work. But no hardware changes were made since it last worked.)
I tried loading the 1287 project into both M128 boards (after changing the device to Atmega128). It loaded properly and ran on all combinations of PCs and JTAGICEs (until it hit the 1287-specific commands, of course). I think this proves that all the PCs, JTAGICEs and M128 boards are working.
Questions:
1 How do I get the M128 board to run on the WinXP and Win2K PCs that had previously had WinAVR installed?
2 How do I get the second M128 board to run on the WinXP PC that never had WinAVR installed? (What might be different about this board?)