JohnR Posted February 24, 2011 Share Posted February 24, 2011 Where can I find documentation on the C Debugger ? Is there a tutorial ? All I have at the moment is a small guide to starting and stopping the debugger. The rest is similar to VS2008 so it is hopefully a familiar environment. Starting and Stopping the IDE C debugger.doc Link to comment Share on other sites More sharing options...
JohnR Posted February 25, 2011 Author Share Posted February 25, 2011 Where can I find documentation on the C Debugger ? Is there a tutorial ? All I have at the moment is a small guide to starting and stopping the debugger. The rest is similar to VS2008 so it is hopefully a familiar environment. I tried the C Debug as descibed in the doc file but I keep getting a failure to file file error. What follows is the output window after a complete build and download and then trying to start Debug on capp1.out. The file does exist in the propper directory. 1) Why dose the IDE generate the File Not Found Error ? Please wait while downloading to Power Pmac. Downloading capp1.out to Power Pmac. Downloading fred.out to Power Pmac. Downloading librtiplcc.so to Power Pmac. Downloading libplcc.so to Power Pmac. Downloading usralgo.so to Power Pmac. Downloading usralgo.ko to Power Pmac. Downloading usralgo.so to Power Pmac. Downloading global definitions.pmh to Power Pmac. Downloading subprog1.pmc to Power Pmac. Downloading prog1.pmc to Power Pmac. Downloading plc1.plc to Power Pmac. Downloading pp_startup.txt to Power Pmac. Downloading pp_disable.txt to Power Pmac. Downloading pp_proj.ini to Power Pmac. uploading pp_error.log file from the Power Pmac. uploading pp_proj.log file from the Power Pmac. uploading pp_error_hist.log file from the Power Pmac. uploading pp_proj.h file from the Power Pmac. Downloading PowerPmac4.ppproj to Power Pmac. Uploading and syncing PMAC variables. Download Successful. Unable to start program 'C:\sw\PPMAC\PowerPmac4\PowerPmac4\bin\debug\capp1.out'. The system cannot find the file specified. Link to comment Share on other sites More sharing options...
JohnR Posted March 1, 2011 Author Share Posted March 1, 2011 A re-install of the PPMAC IDE reset/setup the propper registry keys.This solved the problem of not being able tofind the file. Link to comment Share on other sites More sharing options...
eboman11 Posted May 24, 2011 Share Posted May 24, 2011 Where can I find documentation on the C Debugger ? Is there a tutorial ? All I have at the moment is a small guide to starting and stopping the debugger. The rest is similar to VS2008 so it is hopefully a familiar environment. I tried the C Debug as descibed in the doc file but I keep getting a failure to file file error. What follows is the output window after a complete build and download and then trying to start Debug on capp1.out. The file does exist in the propper directory. 1) Why dose the IDE generate the File Not Found Error ? Please wait while downloading to Power Pmac. Downloading capp1.out to Power Pmac. Downloading fred.out to Power Pmac. Downloading librtiplcc.so to Power Pmac. Downloading libplcc.so to Power Pmac. Downloading usralgo.so to Power Pmac. Downloading usralgo.ko to Power Pmac. Downloading usralgo.so to Power Pmac. Downloading global definitions.pmh to Power Pmac. Downloading subprog1.pmc to Power Pmac. Downloading prog1.pmc to Power Pmac. Downloading plc1.plc to Power Pmac. Downloading pp_startup.txt to Power Pmac. Downloading pp_disable.txt to Power Pmac. Downloading pp_proj.ini to Power Pmac. uploading pp_error.log file from the Power Pmac. uploading pp_proj.log file from the Power Pmac. uploading pp_error_hist.log file from the Power Pmac. uploading pp_proj.h file from the Power Pmac. Downloading PowerPmac4.ppproj to Power Pmac. Uploading and syncing PMAC variables. Download Successful. Unable to start program 'C:\sw\PPMAC\PowerPmac4\PowerPmac4\bin\debug\capp1.out'. The system cannot find the file specified. A re-install of the PPMAC IDE reset/setup the propper registry keys. This solved the problem of not being able tofind the file. I am getting the same error. Tried re-installing and also un-installing and then re-installing and it has not fixed the problem. Link to comment Share on other sites More sharing options...
Guest DavisG Posted May 24, 2011 Share Posted May 24, 2011 What firmware are you using? Update to the latest firmware and IDE (including the IDE service pack). There are issues with the C Debugger (for example, if you use system commands in your C code it barfs) and a beta version of the IDE with better support should be being tested this week. Link to comment Share on other sites More sharing options...
skuoss Posted June 23, 2011 Share Posted June 23, 2011 What firmware are you using? Update to the latest firmware and IDE (including the IDE service pack). There are issues with the C Debugger (for example, if you use system commands in your C code it barfs) and a beta version of the IDE with better support should be being tested this week. Does PMAC_IDE have C++ feature yet? Link to comment Share on other sites More sharing options...
Sina.Sattari Posted June 23, 2011 Share Posted June 23, 2011 Skuoss, Power PMAC doesn't have C++ feature and at the moment we are not planning to support it in the future. Regards, Link to comment Share on other sites More sharing options...
dorcsssc Posted January 25, 2013 Share Posted January 25, 2013 Like JohnR and eboman11, I am experiencing the same thing with the current version. A simple "Hello, PPMAC" test program worked fine, including debugging it (setting breakpoints, single-stepping it, etc.). Then all I did was change the printf() to an fprintf() to a local file ("/tmp/stderr"), and now suddenly it is "Unable to start program ..."? Link to comment Share on other sites More sharing options...
dorcsssc Posted January 25, 2013 Share Posted January 25, 2013 Oh, I forgot to mention one caveat: on the initial "Hello, PMAC" program, everything worked fine as far as the IDE and the debugging process, but we never found the output from the printf(). Anybody have ideas where it went? (That's *WHY* we next opted to fprintf() to a file at a known location, BTW). Link to comment Share on other sites More sharing options...
JeffLowe Posted January 29, 2013 Share Posted January 29, 2013 Oh, I forgot to mention one caveat: on the initial "Hello, PMAC" program, everything worked fine as far as the IDE and the debugging process, but we never found the output from the printf(). Anybody have ideas where it went? (That's *WHY* we next opted to fprintf() to a file at a known location, BTW). I found a lot of stuff gets sent to the RS-232 port as kind of a default root terminal. This is where I found some of my error codes from background C routines, so you may want to build a serial cable and setup a putty session there. Link to comment Share on other sites More sharing options...
dorcsssc Posted January 29, 2013 Share Posted January 29, 2013 Apparantly power-cycling the PPMAC *and* our workstation made the un-runnable program problem disappear, though I'm still not sure which one of these was the necessary one. Link to comment Share on other sites More sharing options...
dorcsssc Posted February 20, 2013 Share Posted February 20, 2013 Minor update: just verified that it's the PC hosting the IDE that needs re-starting to clear the un-startable *.out program. Existing the IDE and re-starting it is not sufficient! This suggests a registry programming bug, since a toally clean build on an otherwise totally idle PPMAC really should result in a debuggable background C program. Link to comment Share on other sites More sharing options...
MClement Posted July 8, 2014 Share Posted July 8, 2014 Did you ever get debugging to work reliably? Have you tried the latest rev of firmware/IDE? We are having similar issues where it doesn't work and maybe gives an error but the debugger starts so fast we cannot actually read the error if there are any. I do recall seeing something about unable to start once but restarting the debugger seemed to make that go away. Link to comment Share on other sites More sharing options...
Recommended Posts