Sponsored Links

Sponsored Links

Results 1 to 2 of 2



  1. #1
    Senior Member Transient's Avatar
    Join Date
    Apr 2007
    Posts
    334
    Sponsored Links

    Question [Answered] How to compile PSGrooPIC for DIY 360 USB SPI (PIC18F2455)?

    Sponsored Links
    I'm trying to compile PSGrooPIC for use on DIY 360 USB SPI, but I am missing something.

    I already have:

    - PCWHD Compiler 4.093
    - PSGrooPIC source files: http://www.ps3news.com/forums/attach...chmentid=22017
    - Updated Fuse settings to 12MHz and changed LED to pin E3

    Compile succeeds and I get a HEX file. I then write that to the device and it appears successful, however it doesn't work.

    Could someone please explain how to properly compile the code so that it will work? I know I can just download a pre-compiled hex, but I'm trying to learn how to do it myself.
    Best Answer - Posted by ps3linux:

    I would assume that you know the basics for making a project in CCS.

    First unzip the sources somewhere.
    Run CCS, go to project, create, give the path of the unzipped (main.c) file.
    Also in the "include" tab give the path to the unzipped folder.
    press ok.
    In the main.c change the
    Code:
    #include <18F2550.h>
    
    
    to
    Code:
    #include <18F2455.h>
    
    
    Then in the fuse setting change the PLL2, to PLL1(4MHZ), PLL3(12MHZ), etc

    after that in the area of
    Code:
    /////////////////////////
    // Bootloader Memory Space
    // Microchip USB HID Bootloader
    #define CODE_START   0x1000
    #build(reset=CODE_START, interrupt=CODE_START+0x20)
    #org 0, CODE_START-1 {}
    
    
    change to
    Code:
    /////////////////////////
    // Bootloader Memory Space
    // Microchip USB HID Bootloader
    #define CODE_START   0x0800
    #build(reset=CODE_START, interrupt=CODE_START+0x20)
    #org 0, CODE_START-1 {}
    
    
    now compile and burn, your code should work properly.

  2. #2
    Contributor ps3linux's Avatar
    Join Date
    Oct 2010
    Posts
    2
    Sponsored Links
    Sponsored Links
    I would assume that you know the basics for making a project in CCS.

    First unzip the sources somewhere.
    Run CCS, go to project, create, give the path of the unzipped (main.c) file.
    Also in the "include" tab give the path to the unzipped folder.
    press ok.
    In the main.c change the

    [Register or Login to view code]

    to

    [Register or Login to view code]

    Then in the fuse setting change the PLL2, to PLL1(4MHZ), PLL3(12MHZ), etc

    after that in the area of

    [Register or Login to view code]

    change to

    [Register or Login to view code]

    now compile and burn, your code should work properly.

 

Sponsored Links

Advertising - Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News