Using debugger on MOD54415
Posted: Sat Aug 04, 2012 5:04 pm
Using NNDK 2.6.0.020 (BETA RELEASE) with a MOD54415 Rev 1.5 on a Mod-Dev-70 Rev 1.7 ( MOD54415 LC Development Kit) with the J2 pin 5 to J2 pin 2 fix, running an imported factory demo with one additional line in the menu section (iprintf( "debug test 1\r\n" );), open Eclipse, click the debug icon, acts like it downloads to the unit and the debugger connects. Shows 7 tasks running. If I have a breakpoint at this line when I perform the above steps it will break and I can single step. If I don't have a breakpoint when I start the debugger, when I try to place one I get:
Multiple markers at this line
- Line breakpoint: main.cpp
[line: 199]
- Unresolved breakpoint
An additional piece of information is that if I click the suspend icon the debugger doesn't successfully stop, it gives me a "Target request failed: Failed to interrupt." error popup. It will stop at the breakpoint that was located before the debugger was invoked, but trying to place one anyplace else causes the unresolved breakpoint warning.
Terminating the debugger also gives a "Target request failed: Failed to interrupt." error.
Leaving Eclipse running with the debugger "sort of" attached to that one breakpoint, I can use the Autoupdate program to put a new program in the unit. At that point the debugger does not work at all and will not reattach.
If I try the change to the InitializeNetworkGDB_and_Wait function I get:
G:\Netburner\projects\MOD54415FactoryApp\Debug/..\main.cpp:319: undefined reference to `InitializeNetworkGDB_and_Wait'
Under NBEclipse "Rebuild All System Files" it is doing the MOD5234. That would be incorrect, but how do I change it?
m68k-elf-g++ -c -m5206e -gdwarf-2 -Wall -fno-rtti -fno-exceptions -D_DEBUG -falign-functions=4 -DMOD5234 -DMCF5234 -DNBMINGW -I"C:\nburn/include" -I"C:\nburn/MOD5234/include" -I"C:\nburn/MOD5234/include/ETPU" -I"C:\nburn/MOD5234/include/ETPU/cpu" -I"C:\nburn/MOD5234/include/ETPU/sets" -I"C:\nburn/MOD5234/include/ETPU/functions_API" debugprintblock.cpp -o debugprintblock.od
m68k-elf-ar cr C:\nburn/lib/DBdebugLibrary.a debugprintblock.od
Multiple markers at this line
- Line breakpoint: main.cpp
[line: 199]
- Unresolved breakpoint
An additional piece of information is that if I click the suspend icon the debugger doesn't successfully stop, it gives me a "Target request failed: Failed to interrupt." error popup. It will stop at the breakpoint that was located before the debugger was invoked, but trying to place one anyplace else causes the unresolved breakpoint warning.
Terminating the debugger also gives a "Target request failed: Failed to interrupt." error.
Leaving Eclipse running with the debugger "sort of" attached to that one breakpoint, I can use the Autoupdate program to put a new program in the unit. At that point the debugger does not work at all and will not reattach.
If I try the change to the InitializeNetworkGDB_and_Wait function I get:
G:\Netburner\projects\MOD54415FactoryApp\Debug/..\main.cpp:319: undefined reference to `InitializeNetworkGDB_and_Wait'
Under NBEclipse "Rebuild All System Files" it is doing the MOD5234. That would be incorrect, but how do I change it?
m68k-elf-g++ -c -m5206e -gdwarf-2 -Wall -fno-rtti -fno-exceptions -D_DEBUG -falign-functions=4 -DMOD5234 -DMCF5234 -DNBMINGW -I"C:\nburn/include" -I"C:\nburn/MOD5234/include" -I"C:\nburn/MOD5234/include/ETPU" -I"C:\nburn/MOD5234/include/ETPU/cpu" -I"C:\nburn/MOD5234/include/ETPU/sets" -I"C:\nburn/MOD5234/include/ETPU/functions_API" debugprintblock.cpp -o debugprintblock.od
m68k-elf-ar cr C:\nburn/lib/DBdebugLibrary.a debugprintblock.od