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.

System timer using bios msgq_tsk2tsk

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I am using the C6748 evm board and using C:\CCStudio_v3.3\bios_5_41_00_06\packages\ti\bios\examples\advanced\msgq_tsk2tsk example to test the message queue feature of the bios.  I am running into a problem where the system timer some times won't start causing the example to hang.  When I power cycle my evm board and restart code composurer , I get these errors in my tracing log

48957   *** ERROR: 0xc40e9180 0x4b75b099 ***

5484700   *** ERROR: 0x32a6d90 0xddbc3c3 ***

6499880   *** ERROR: 0x80c98588 0xf9ee3edb ***

7078144   *** ERROR: 0xa5825643 0x79e0ffd7 ***

43292306   *** ERROR: 0x8e08473e 0xa4fd0aa3 ***

73531581   *** ERROR: 0xe6246544 0x9bcf3930 ***

98393619   *** ERROR: 0xad5ac004 0x77e1badf ***

111157322   *** ERROR: 0x18b32876 0x98b3de9e ***

135096133   *** ERROR: 0xc122029c 0x4dfd83e7 ***

138664143   *** ERROR: 0x67399221 0xfaceb97a ***

143995060   *** ERROR: 0xb4ae1499 0xc7dadebd ***

161563337   *** ERROR: 0x5b94053e 0xffdb9fe5 ***

167854371   *** ERROR: 0xc17c5a1 0x77fbe64d ***

168734337   *** ERROR: 0xe32784ac 0xd8b9964e ***

172195463   *** ERROR: 0x1c875509 0x75d23bc7 ***

187796598   *** ERROR: 0x658a19b3 0x9fdfeeff ***

278067177   *** ERROR: 0x4c911ac0 0xa5ab57c9 ***

281266244   *** ERROR: 0x617c495 0xc7bf7232 ***

455182819   *** ERROR: 0x4498a5d1 0xe3f6fe17 ***

468746380   *** ERROR: 0xa0106143 0xf37f59b7 ***

496267580   *** ERROR: 0xa815b26a 0x9037bf70 ***

537046034   *** ERROR: 0xb723a0 0xc8d3caed ***

583008776   *** ERROR: 0x5706953c 0xb0f943bf ***

598045216   *** ERROR: 0x618c71f2 0xfd132aae ***

613517592   *** ERROR: 0xc00b5580 0x5c9f5a1b ***

633627313   *** ERROR: 0xc2920c21 0xbf81fb97 ***

637696747   *** ERROR: 0x842b61c2 0xb7f2263c ***

657980436   *** ERROR: 0x20200153 0xcefd8f93 ***

687964338   *** ERROR: 0x3b101818 0x1faadbfb ***

688937111   *** ERROR: 0xf579e574 0x8d6a277e ***

771807011   *** ERROR: 0x20316a0f 0xfb3fd31b ***

808683821   *** ERROR: 0x8712822 0xddf0f757 ***

814361288   *** ERROR: 0x930ad03f 0xbebf6305 ***

920715528   *** ERROR: 0x42200405 0x2fed3fa9 ***

964813891   *** ERROR: 0xea190006 0xdc33f68f ***

1005131523   *** ERROR: 0x80310d50 0xee9fa9f5 ***

1074766127   *** ERROR: 0x616c346d 0xbd16bba1 ***

1092646935   *** ERROR: 0x42aa1314 0x58690ff5 ***

1110081989   *** ERROR: 0x15290d89 0x2e37bad9 ***

1118846007   *** ERROR: 0xa6ea8928 0x36cf0ee5 ***

1143378881   *** ERROR: 0x734a62e3 0xecce3c7a ***

1147456405   *** ERROR: 0xd7f54ac1 0xf59a7c6d ***

1162870801   *** ERROR: 0x552a0250 0xf0577afd ***

1197415249   *** ERROR: 0x1329149 0xd3dd7dff ***

1214255636   *** ERROR: 0x7822d0d0 0x5e9a6ab1 ***

1324493313   *** ERROR: 0x209181cb 0x3353bd5a ***

1351031476   *** ERROR: 0x8687911 0x8ef9d7b9 ***

1358859944   *** ERROR: 0xfd12828d 0xbffff39a ***

1392059971   *** ERROR: 0xc0ccdc01 0x79ed54ab ***

1511396483   *** ERROR: 0x22e16a08 0xe8ebfdf3 ***

1616003071   *** ERROR: 0x1d90ac8 0xdf6f1a17 ***

1661125596   *** ERROR: 0x62b8b20c 0x8b72787e ***

1712588802   *** ERROR: 0x16a528c8 0x75ea77b6 ***

1713505458   *** ERROR: 0xe3c0f940 0x1fdcd8b7 ***

1761706249   *** ERROR: 0x9e114e04 0xedef985c ***

1769610039   *** ERROR: 0x1950855a 0xfbeb7f96 ***

1864404492   *** ERROR: 0x62a9e108 0xdbfd3e71 ***

1884856577   *** ERROR: 0x5f03404e 0xdd5f8f79 ***

1941001226   *** ERROR: 0x770a0a9 0xdfd28dff ***

2016528393   *** ERROR: 0x24453fca 0xcc8a4b9f ***

2021654879   *** ERROR: 0xba4a52fd 0x7de6dfef ***

2039150540   *** ERROR: 0x4e4318ca 0x5caf9efe ***

2042764051   *** ERROR: 0x5d350c21 0x50ff325a ***

2055755282   *** ERROR: 0x61e00008 0xfa3ff0e7 ***

When I got these errors then my system timer will start and work as normal.  The project works until I start a different project, then when I switch back to this project the system timer hung again.  If I repeat the cycle by powering down my evm and reconnect and get all of the above errors, then it will work again.    Could you tell me what the errors are ?

Thanks.

 

  • The LOG module puts records into a circular buffer.    That circular buffer will have either valid records, or records filled with '-1'.   The host tools simply read this buffer and decode the records.    The ERRORS you are seeing happen with the LOG buffer has invalid data.  The host tool that decodes this data cannot decode it and just prints the raw contents of the log along with "ERROR".  We need to figure out how this memory is getting filled with garbage data.   I suspect that you have a stack overflow or some other bad pointer or ?? problem that is causing this memory to be overwritten.   Can you use 'KOV' tool to inspect assorted stack sizes and make sure that your stack use make sense?

    Have you modified the example in any way?    There's a related post regarding use of the 'USTIMER' APIs that come with that board.  Any chance you are using USTIMER?   That appears to conflict with BIOS's timer  http://e2e.ti.com/support/embedded/f/355/p/42724/149227.aspx#149227.

    Regards,
    -Karl-

  • Hi Karl,

    You hit it right on.  I was using the upp example which is non-bios and trying to create several tasks using the bios and this upp code.  The upp code does call the USTIMER_init and USTIMER_delay in a few places.  Any bios function uses system time breaks. This also explains why when I load a bios example right after I power cycle my board and then load my app after a soft reset, it some times works which confuses the heck out of me.

    I guess using the bios is nice when you have it  working and all, but there are many caveats that take the fun out of it.

    Thanks,

    Kevin.