Stepping through the code? - Personal Mechatronics Lab2024-03-29T06:15:32Zhttp://www.pml4all.org/forum/topics/stepping-through-the-code?feed=yes&xn_auth=noYou have to change project co…tag:www.pml4all.org,2014-05-01:6212885:Comment:275182014-05-01T09:15:28.196ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span>You have to change project configuration to use the simulator instead of pickit2 in order to use the debug mode, the pickit2 debug mode doesn't work for what ever reason</span></p>
<p><span>You have to change project configuration to use the simulator instead of pickit2 in order to use the debug mode, the pickit2 debug mode doesn't work for what ever reason</span></p> When I got that error I switc…tag:www.pml4all.org,2014-05-01:6212885:Comment:276062014-05-01T09:15:22.534ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span><span class="UFICommentBody"><span>When I got that error I switched to an old windows xp compute</span></span></span></p>
<p><span><span class="UFICommentBody"><span>When I got that error I switched to an old windows xp compute</span></span></span></p> I had simililar problems when…tag:www.pml4all.org,2014-05-01:6212885:Comment:276052014-05-01T09:15:11.667ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<div class="UFICommentContent"><span>I had simililar problems when i load to board (something like could not connect to tool hardware blahblah), all i did was restart the computer/mplab ->asked emami he told me sometimes mplab forgot the tool it's connected to lolz</span></div>
<div class="UFICommentContent"><span>I had simililar problems when i load to board (something like could not connect to tool hardware blahblah), all i did was restart the computer/mplab ->asked emami he told me sometimes mplab forgot the tool it's connected to lolz</span></div> I did this
Build the code for…tag:www.pml4all.org,2014-05-01:6212885:Comment:274392014-05-01T09:15:04.559ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span>I did this</span>
<span>Build the code for debugging</span><br />
<span>Program for debugging</span><br />
<span>Run debugger window (or something like that)</span><br />
<span>It works fine for me that way</span></p>
<p><span>I did this</span>
<span>Build the code for debugging</span><br />
<span>Program for debugging</span><br />
<span>Run debugger window (or something like that)</span><br />
<span>It works fine for me that way</span></p> When I try, it says 'Launchin…tag:www.pml4all.org,2014-05-01:6212885:Comment:273562014-05-01T09:14:58.192ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span>When I try, it says 'Launching</span>
<span>Could not connect to tool hardware: PICkit2PlatformTool, com.microchip.mplab.mdbcore.pickit2.PICkit2DbgToolManager</span><br />
<span>The debugger could not be started. Terminating debug session.</span><br />
<span>User program finished'</span></p>
<p><span>When I try, it says 'Launching</span>
<span>Could not connect to tool hardware: PICkit2PlatformTool, com.microchip.mplab.mdbcore.pickit2.PICkit2DbgToolManager</span><br />
<span>The debugger could not be started. Terminating debug session.</span><br />
<span>User program finished'</span></p> ^i did like 5 braekpoints(tha…tag:www.pml4all.org,2014-05-01:6212885:Comment:275172014-05-01T09:14:52.505ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span>^i did like 5 braekpoints(that's what its called lol)?</span></p>
<p><span>^i did like 5 braekpoints(that's what its called lol)?</span></p> and if you go to windows->…tag:www.pml4all.org,2014-05-01:6212885:Comment:275162014-05-01T09:14:47.295ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p>a<span>nd if you go to windows->pic mem you should see file register, click tat will give you a window to look at regs</span></p>
<p>a<span>nd if you go to windows->pic mem you should see file register, click tat will give you a window to look at regs</span></p> you onlly have one breakpoint…tag:www.pml4all.org,2014-05-01:6212885:Comment:273552014-05-01T09:14:42.068ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span>you onlly have one breakpoint, you can place it at any line and run to it, or you can use no breakpoints and right click and press run to line... you can see registers and eeprom memory from the windows menue in mplabx, and you should know the rest as it is identical to the simulator... just remember you can't use those 3 pins that are used for programming...</span></p>
<p><span>you onlly have one breakpoint, you can place it at any line and run to it, or you can use no breakpoints and right click and press run to line... you can see registers and eeprom memory from the windows menue in mplabx, and you should know the rest as it is identical to the simulator... just remember you can't use those 3 pins that are used for programming...</span></p> F7-single step . F5-goto Sto…tag:www.pml4all.org,2014-05-01:6212885:Comment:274382014-05-01T09:14:35.857ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span> F7-single step . F5-goto Stop (that you placed for a specific line just as the verilog stuff last year)</span></p>
<p><span> F7-single step . F5-goto Stop (that you placed for a specific line just as the verilog stuff last year)</span></p> if you can use the debug mod…tag:www.pml4all.org,2014-05-01:6212885:Comment:274372014-05-01T09:14:29.006ZKenny Kimhttp://www.pml4all.org/profile/KennyKim
<p><span> </span><span><span class="UFICommentBody"><span>if you can use the debug mode in mplabx, then i think it has a function of stepping through code. I know some people's debug mode work. But mine won't so I can't tell.</span></span></span></p>
<p><span> </span><span><span class="UFICommentBody"><span>if you can use the debug mode in mplabx, then i think it has a function of stepping through code. I know some people's debug mode work. But mine won't so I can't tell.</span></span></span></p>