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.

CCS v5.5.0.00077 Emulator problem for MSP430F2013

Other Parts Discussed in Thread: MSP430F2013, MSP430FG4618

Hello,

When I switch on the cycle counter (Run-> Clock->Enable) for MSP430F2013 on MSP-EXP430FG4618 board or eZ430-F2013 the counter show's an incorrect result on first step: 65,537 on next: 131,087 .... and so on. 

If I connect to MSP430FG4618 the cycle counter is working correctly. It seems the SpyBiWire is not working correctly.

The same results are obtained on Windows7 64 bits and Windows XP Professional 32b.

I use a MSP-FET430UIF v1.4a to connect to my experimental board.

By the way- on CCS5.4 the feature worked well.

 Best regards,

Juris Sirs

 

  • Hi Juris,

    I hope you reset the clock before Stepping into. It sometime happens that CCS gives you a random clock junk value.

    Let me know what your observations are.

    Regards,

    Gautam

  • Hi Gautam,

    Yes of course. The values showed I got after first single step  and second single step starting from 0.

    On 4-wire JTAG it works correctly.

    Regards,

    Juris

     

  • On 4-wire JTAG it works correctly.

    Ohh! I didn't know about this. Yes, I agree with you the device is not responding to Spy-bi-wire.

    But its very surprising, the above MSP430 device supports SBW (Link says: On-Chip Emulation Logic With Spy-Bi-Wire Interface). So you shouldn't face any issues! Anyways, lets wait for what one of my TI buddy has to say.

    Regards,

    Gautam

  • Just Clock Counter, all other basic emulator functions are working- how fare I know.

    Regards,

    Juris

  • Juris - could you provide a small test case for the F2013? And please provide the expected count and the value you see in 5.5

    Thanks

    ki

  • Hi Ki,

    Actually I used the build in "Blink the LED" project using a default settings. Just device and project name were set by me.

    There are just simple C instructions, not functions, therefore during single stepping the counter increases by 2 ... 5 (or little more), CPU cycles each time, depending on instruction and location of operands. I tested it on the CCS5.4 and it worked correctly.

    The obtained count in my first post were obtained starting from T:0, after first single step: T: 65,537 and after second single step T:131,087 ... . Of course the actual values depends on current instruction, but definite the values are incorrect.

    The problem was obtained after clean CCS5.5... setup for just MSP430 uC, and after installing all available updates until January 6 as well.

    At the moment I am out of office for some days, and I do not have any hardware with me, but anyone can tray it by self on eZ430-F2013.

    Best regards,

    Juris

  • Thanks Juris,

    I can reproduce the issue. Basically the issue is this:

    There appears to be an offset of 65536 for each update added to the correct value. The issue appears to be because of the register that the profile clock reads to obtain the count value. When looking at the value of the pseudo-register CLK in the expressions view, the starting value is always 0x00010000. So this would explain the 65536 offset.

    This issue was introduced in CCSv5.5. 5.4 showed the correct value. This is because there is no offset. The starting value of CLK in 5.4 is 0x00000000.

    I filed a bug for this. Tracking ID is SDSCM00049339

    thanks

    ki