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.

SYS/BIOS assert output in CCStudio console

Other Parts Discussed in Thread: AM3352, SYSBIOS

Hi,

     We are running SYS/BIOS on an AM3352 and when our application crashes in debug mode, it has a really nice register dump output in Code Composers console window. We would like to take that information and log it into memory or flash during our system crashes. Could someone tell me where the source code is for dumping the registers during a bad address access?

Thanks,

     John C.

  • Ok,

         Seems like there is a data structure that SYS/BIOS will pass into a user function hooked to exception handler. The module "ti.sysbios.family.arm.exc.Exception" has a function Exception_excHandler() in the Exception.c file that shows a Exception_ExcContext struct being passed into the user supplied hook function. Has anyone tried to save this data to flash (NAND or NOR) at this point in the crash process?

    Thanks,

         John C.

  • Another question that I can't find in the API docs, is there a way to set the hook function at run-time or do I have to configure it via the Code Composer Project .cfg file(as seen below?)

    Thanks

  • John,

    Have you tried the Exception_Status() API?

    Steve

  • Hi Steve,

                Finally back after a finding a GPMC issue with our FPGA. Where is this Exception_Status() documented? I can't find it in SYS/BIOS 6.35 Users Guide.

    Thanks,

         John C.

  • Hi John C.,

    My apologies - that API is a C6000 only API.  I have been working several C6000 exception forum threads and must have forgotten that this was an ARM question.

    The official way to set the Exception user hook function is by using the BIOS configuration file.

    Steve

  • Hey Steve,

              The only reason that I did not want to use the configuration file was to rely as little as possible on Code Composer itself for building. We were trying to make it work more like a make file model of building vs. needing Code Composer.

         Thanks again,

         John C.

  • Which version of BIOS are you using?

    John Conover said:
    We were trying to make it work more like a make file model of building vs. needing Code Composer.

    You should be able to build using makefiles.  I believe that in newer versions of BIOS, examples are all based on the TI Resource Explorer and build in CCS.  But, a couple of versions back, the examples were generated using a command line tool and then you could build them with included makefiles (see here for instructions on that).

    Have you tried building with make?

    Steve