• AVR Freaks

I do not understand....

Author
drazen
Super Member
  • Total Posts : 2847
  • Reward points : 0
  • Joined: 2003/11/07 12:43:09
  • Location: Croatia
  • Status: offline
2012/02/07 13:12:51 (permalink)
5 (1)

I do not understand....

Ok, got some time to test "Aword Winning" MPLAB X after disaster called MPLAB X Beta 6.
I took very simple project and than confusion. Should I press "Build" or "Build for debugging"? I pressed "build for debugging", project builded but debugging controls grayed! What now, I have build for debugging! Oooo, I have another option "Debug main project".
Pressed, builded again and message:
Launching
Programming target
User program running
No source code lines were found at current PC 0x220
User program stopped
Yeeeee, my debugger buttons are now not grayed! I set breakpoint on first line and
Break point at line 57 in file C:/...../proba.c cannot be resolved to a valid program memory address
Ok, "debug for debugging", reset and I got green arrow at main. Step over works! Right mouse click on first line -> Set PC at cursor -> NOTHING! 
 
I selected simulator as debugger.
You know my next click?    Exit program!
 
BTW, let me explain how this is done in MPLAB 8 or Visual Studio (or any other IDE):
  • Build project (only one option not 5)
  • Reset (if not selected to run to main)
  • Any debuggin operation
       
    1. #1

      4 Replies Related Threads

        frankcf1
        Super Member
        • Total Posts : 1105
        • Reward points : 0
        • Joined: 2009/01/09 08:20:10
        • Location: Northern New Jersey
        • Status: offline
        Re:I do not understand.... 2012/02/07 13:40:53 (permalink)
        0
        I don't care for all those build choices either. I would like a simple build button, program button, and run button for both debugging and release. I don't like the IDE deciding what I want to do.  I should add that if they don't change the EULA I won't be using it.
         
        post edited by frankcf1 - 2012/02/07 13:43:05
        #2
        Guest
        Super Member
        • Total Posts : 80500
        • Reward points : 0
        • Joined: 2003/01/01 00:00:00
        • Location: 0
        • Status: online
        Re:I do not understand.... 2012/02/08 02:28:14 (permalink)
        0
        "Aword Winning" tells you how much Microchip has payed for some positive news about an useless, buggy tool as Mplab X is.
        #3
        Guest
        Super Member
        • Total Posts : 80500
        • Reward points : 0
        • Joined: 2003/01/01 00:00:00
        • Location: 0
        • Status: online
        Re:I do not understand.... 2012/02/08 06:46:57 (permalink)
        0
        "Aword Winning", ya sure...

        This only tells how well mchp know how to "play" to produce this "news"

        For now mplabx is just a toy, and with this EULA I will not use it any more.
        #4
        drazen
        Super Member
        • Total Posts : 2847
        • Reward points : 0
        • Joined: 2003/11/07 12:43:09
        • Location: Croatia
        • Status: offline
        Re:I do not understand.... 2012/02/08 07:47:52 (permalink)
        0
        Is there any way to tell MPLAB X that after building for debug and starting debugger program stops on reset or main?

        Now is really annoying cause immediately after build, program is run. I know, breakpoint (if one works) could help but...

        Also all those different commands that work here and not there. I use F5 for run but it does not work in Program Code Window. There even in popup menu is no option to run program!
        #5
        Jump to:
        © 2019 APG vNext Commercial Version 4.5