This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why "Debugger aborted"?

Please Help. I have a function SwapWord(...) to swap a WORD received from USB. It builds w/o any warning. But if I start debugging, the IDE pops up a message window saying that "cannot load load file 'C:\Keil\MyPrj\fw'. Debugger aborted!". This happens even if SwapWord(...) does nothing. But if I comment out this function and its references, then everything works fine.

I have another similar function SwapDword(...) which does not cause any problem.

I searched the forum and found this also happened before. What's the real problem here?

Thanks for your time & help,

Parents
  • "cannot load load file 'C:\Keil\MyPrj\fw'. Debugger aborted!".

    This refers to the debugger trying to load your executable into its own memory to have access to your symbol information.
    So the debugger isn't even getting as far as starting your software - there is something wrong with the structure of the file itself.
    Or possibly something fails during the initialisation of your emulator/debug monitor/whatever which causes the uVision debugger to abort the load?
    (this sort of thing happens when the Keil dongle corrupts the JTAG Wiggler link with a Triscend E5)

    Have you moved the Project, or changed Project options - especially output folders?
    Sometimes the IDE doesn't properly "notice" changes - you have to restart uVision & do a complete clean build to get it back into step.

    "I searched the forum..."

    Excellent! If only everyone were so diligent!

    "...and found this also happened before."

    As you've done the search, could you post a link to the previous example(s)?
    Did those discussions reach any conclusions?

Reply
  • "cannot load load file 'C:\Keil\MyPrj\fw'. Debugger aborted!".

    This refers to the debugger trying to load your executable into its own memory to have access to your symbol information.
    So the debugger isn't even getting as far as starting your software - there is something wrong with the structure of the file itself.
    Or possibly something fails during the initialisation of your emulator/debug monitor/whatever which causes the uVision debugger to abort the load?
    (this sort of thing happens when the Keil dongle corrupts the JTAG Wiggler link with a Triscend E5)

    Have you moved the Project, or changed Project options - especially output folders?
    Sometimes the IDE doesn't properly "notice" changes - you have to restart uVision & do a complete clean build to get it back into step.

    "I searched the forum..."

    Excellent! If only everyone were so diligent!

    "...and found this also happened before."

    As you've done the search, could you post a link to the previous example(s)?
    Did those discussions reach any conclusions?

Children