Skip to content

playday3008/ModernCMakePSPExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModernCMakePSPExample

But this time for PSP and automated with VSCode.

TODO

  • Automate tests execution directly on PSP.
  • Shift running and debugging from VSCode to CMake.
  • Use PSPSDK libraries for more relatable examples.

Build and debug on PSP

Psst! Check dependencies first.

Using VSCode

  1. Open project in VSCode.
    • Select PSP CMake toolchain if prompted.
  2. Configure:
    • CMake Tools should autoconfigure the project
      • If not, then open CMake tab and on Project Status click on Delete Cache and Reconfigure (this is an icon).
  3. Select target:
    • In CMake tab
    • In Project Outline select desired target (must be Executable)
    • Right click and select Set as Launch/Debug Target.
  4. Debug:
    • Same as last step above but now click Debug to build and debug the project on PSP.
      1. PSPLink must be installed and running on the PSP.
      2. PSP must be connected to the computer via USB.

Using terminal

More info on PSPDEV Docs.

  1. Configure project using:

    psp-cmake -S . -B build
  2. Build project using:

    cmake --build build
  3. Initialize connection to PSP using:

    usbhostfs_pc
    1. PSPLink must be installed and running on the PSP.
    2. PSP must be connected to the computer via USB.
  4. Start debug server using:

    pspsh -e debug ./build/apps/app.prx
    1. This is an example, the actual command may vary depending on the project.
  5. Start debug client using:

    psp-gdb ./build/apps/app -q

    then inside gdb:

    target remote localhost:10001
    1. This is an example, the actual command may vary depending on the project.

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published