Hi,
Setup: CCS v6.0.0.156, Blackhawk XDS560v2 JTAG, AM3359 based board.
Code: Simple program based on SYS/BIOS Swi example (attached below).
Compiler: GCC 4.8.1 under Cygwin. Debug info configured to "-gdwarf-3 -gstrict-dwarf" which is claimed to be supported by CCS.
CCS source files path mapping configured to recognize Cygwin paths.
Scenario A
1. Connect to AM3359 Cortex-A8 target.
2. Reset, load ELF (CCS finds the source files correctly).
3. Step by step (or use run to line) to get to main (at address 0x80002c1c).
This scenario works fine. It demonstrates that all the debug info is loaded, the source files found and the target runs fine up to main().
Scenario B
1-2. Same as scenario A.
3. Open Swi.c in CCS (already opened from running previous scenario). Try putting breakpoint at main() by double clicking any line. The breakpoint is added but disabled:
4. Try enabling the breakpoint by the check-box in Breakpoints pane. The following error pops up.
Seems like a bug to me, is there a good reason why CCS should not recognize the code associated? I can manually locate main in dis-assembly view and put breakpoint and then in works fine. But that's very uncomfortable.
Best,
Vasili