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.

error: CCSv5 cannot modify a float value at "variables" window in CCS Debug

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hello,

I got a stange behaviour, when I try to edit a float value in the "Variable" window of the CCS Debugger (after running into a breakpoint):

- all values with decimal positions are not accepted

- only integer values are accepted

- memoryBrowser is affected by editing float values,

- but changes in MemoryBrowser don't affect the Variable window

 

I'm using CCS Version 5.1.0.201105121800 at Windows XP V5.1 ServicePack 3.

It is the same with Version: 5.1.0.06000 on on Win7 Professional x64 (my college).

We are working with a free licence, LOGICPD board, ext. XDS100 V2, OMAP-L138.

 

How can I modify a float value during a debugging?

 

Thanks for any help!

Rainer

  • Rainer,

    What is the specific version of CCSv5 you are using? And what device family is your project built for?
    Are you running the code on simulator or target hardware? If target hardware, which board/emulator are you using?

    All of this information will help us quickly reproduce the issue.

  • Hello,

    I'm using CCS Version 5.1.0.201105121800 at Windows XP V5.1 ServicePack 3.

    It is the same with Version: 5.1.0.06000 on on Win7 Professional x64 (my college).

    We are working with a free licence, LOGICPD board, ext. XDS100 V2, OMAP-L138.

     

    regards,

    Rainer

     

  • We now checked the described issue with the CCSv5 Version: 5.1.0.7001 (beta 1) and CCSv5 Version: 5.1.0.08000 (beta 2) (LOGICPD OMAP-L138, XDS100 ver. 2) and the problem still persists.

    A variable of the type float (float measurement = 1.4;) displays in Variable view as “1,4.0 (Default)” which seems to be correct. If you try to change the value of measurement by entering “1,9” the value of measurement is not changing. If you try to change the value by editing “1,9.0” there is also no change of the value. If you try to change the value by entering “1.9” the value of measurement is changing to “1.0 (Default)”. If you enter “2.7”, measurement is changing to “2.0 (Default)”.

    Is there anybody able to reproduce this issue? Is there a workaround beside entering the HEX value?

    Cheers

    Stefan

     

  • Stefan,

    I haven't been able to reproduce this behavior with CCS 5.1 Beta2 on a OMAPL138.

    Is your code running on the DSP? I tried a simple example and the float values are displayed properly in the Variables view, and I can also manually modify the float value from that view.


    Could you attach your project here so we can use it to recreate the problem?

  • ArtiG,

    I tested with both, DSP and ARM and I simply used the "omapl138_GEL_GSL_v2.3\tests\experimenter\led_dip" project (the bsp code from LOGICPD Homepage), added a float variable and checked the behaviour. So for displaying the values of a float in the variable viewer you are right, everything is working fine. But editing with the help of the variable viewer the values are not or not correct changing.

    regards,

    Stefan

  • Stefan,

    I just tested this again and could modify float variables in the Variables view without problems. Below is a screenshot where I manually modified the values of a and b manually in the Variables view and and they updated as expected. I am using 5.1M8 for my tests. Is there something specific to your environment I may be missing?

  • Hello AartiG,

    the only differences, I can see, are

    - that our "variable" window shows a diffrent float/double format (e.g. 1,23.0) than yours. Why?

    - you are obviously use Windows XP  - we are working under Windows 7.

    The Problem is still the same

    If I try to edit a float or double in our "funny format", it will be ignored.

    If I try to edit in format e.g."1.23" it will be rounded down to 1.0

     

    We are really wondering what the reason is!

    ;-))  Rainer

     

  • Rainer,

    Sorry about the delayed reply. I think this issue might be due to Regional/Language settings on your machine. Under my Control Panel->Regional and Language Options, if I change the Regional Option to say Portugese instead of the default English (US), then the Variables view in CCS displays values similar to what you see. Could you please check your settings and try changing it to English to see if the display is as expected?

    If the issue is confirmed to be related to language, you may want to try installing a Language Pack for Eclipse to see if that helps it understand these formats better. I'm not sure if it will affect Variables view or not, but might be worth a shot. More information on installing language packs can be found here: http://processors.wiki.ti.com/index.php/Language_Pack_Installation

     

     

  • Rainer,

    The problem you experienced is due to the fact that GEL accepts only C programming language floating point numbers.

    That is,  you cannot enter 2,1 for the C floating point literal 2.1.

    A customer reported a bug that if the PC's language setting uses a comma as the decimal point, GEL interprets the input  2.1 in the expression window as 2.0.

    The bug has been fixed In CCS Beta 2.1.

    In Beta 2.1, GEL floating number input and output will follow the C language and  will be independent of the PC's language setting.

     

    Regards,

    Raymond