This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Debugging and Programming a PCB Without Debugging

Other Parts Discussed in Thread: LM3S1968, UNIFLASH

Hello.

I've just installed CCS V6 in order to resurrect some work I did on an LM3S1968 evaluation board.  My previous code was written in Keil, so I've had a bit of fun getting the code to compile and link, but I do have one of my old programs running now.


I am, however, having problems with the debugger.  If I start debugging, it jumps straight to FaultISR() in startup_css.c.  If I click the reset button (in CCS) and single-step through the first couple of statements (the first call is to SysCtlClockSet() in the Stellarisware library), then press run,  all is okay and my program runs on the PCB.  Is this something in CCS I can fix, or is it down to the silicon?

Ultimately, for most things, I'd rather just build my project and program the PCB without debugging.  In CCS V6, is there a way to just download the program without debugging?

Thanks,

Richard Reeves

  • Hi Richard,

        I think you should go through instructions on how to make a new project at CCS V6.

        I think you are getting that FaultISR because you did not set properly your CCSV6 for LM3S1968.

    -kel

  • Hi Richard,

     In CCS V6, is there a way to just download the program without debugging?

    Download CCS Uniflash, you can directly dump the code.

    Regards,

    Gautam

  • Gautam Iyer said:
    Download CCS Uniflash, you can directly dump the code.

    The problem is Richard's code goes into FaultISR. So, most probably no bin file was generated.

    -kel

  • Hi Richard,

         Your Keil project compiles and works with your board? Why don't you just use the binary from that Keil Project. You, can use LM Flash Programmer to load the binary file.

         I am suggesting this, because you are having compile errors with CCSV6.

    -kel

  • But I can then do a reset via the debugger, single-step a couple of lines then click 'resume' and it all runs okay, so the micro is running.  That makes me think it's neither a solely software or solely hardware problem.  My program is happily running on the board in front of me.

    My starting point for testing was one of the projects that comes with the latest version of Stellaris, so the project should be setup correctly. 

    Thanks for the input, folks!  I'm currently installing UniFlash and will try it shortly.

    Richard

  • Kel,

    I need to do new work once I've remembered my way around the ARM, so I'd rather use something that isn't either expensive or limited.  I'm happy to find my way around CCS and make it all work.  The compilation errors I had from just copying my code over  have all been fixed - the code definitely builds, links and works in CCSV6. 

    Thanks,

    Richard

  • If you want to generate .bin file using CCS, then load it either using Uniflash or LM Flash Programmer to your microcontroller, see the post below.

    How to create a bin with CCS

    -kel

  • Richard Reeves said:
    I am, however, having problems with the debugger.  If I start debugging, it jumps straight to FaultISR() in startup_css.c.  If I click the reset button (in CCS) and single-step through the first couple of statements (the first call is to SysCtlClockSet() in the Stellarisware library), then press run,  all is okay and my program runs on the PCB.  Is this something in CCS I can fix, or is it down to the silicon?

     Hi Richard, due to NRND of your part is no more supported on new revision. Before NRND things where better on family and still new TIVA suffer many troubles, CCS is starting come to an usable level on TIVA but I abandoned all stellaris stuff.

     The  issue you experienced is known, a sequence hard reset soft reset is required otherwise stepping doesn't work we don't know why, bug is filed.

     Stepping startup with oscillator running I suppose can fire up watch dog or similar and never go to main, issue can be on both software and/or hardware, if you don't need step startup use SW reset or sequence HW SW instead.

     Another issue can be non initialized hardware on board but on startup code nothing is touched than mcu internal.

  • Markel Robregado said:
    If you want to generate .bin file using CCS, then load it either using Uniflash or LM Flash Programmer to your

     Kel, if code load and crash in debugger then before load linking was succesful so bin was generated too.

     Link or compile time error prevent bin to be generated no bin no debug session too!

  • Roberto Romano said:
    Link or compile time error prevent bin to be generated no bin no debug session too!

    Richard, mentioned later in the post that he was able to fix the errors and build his CCSV6 project without errors.

    -kel

  • Sorry to leave it so late to come back to this, folks (other work gets in the way sometimes).

    The separate UniFlash program worked perfectly.  After playing with the LM3S board a bit more, I bought a TIVA Launchpad and have started wrestling with that.

    Thanks for all of the responses!

    Richard