Good Morning I never understood how to used watch window in CCS. I can watch a 16-bits variable with desired format (hexadecimal,decimal) . But I am unable to watch a 32-bits variable (floating point for example). For example in Data memory I have a 32-bits variable 0x100: 0x3f80 0x101: 0x0000 0x3f800000 is 1 in 32-bits Floating Point Format. What is the syntax in the watch window to correctly see the value of this variable ? Thank you for your answer.
[CCS] Watch Window
Started by ●November 4, 2004
Reply by ●November 4, 20042004-11-04
Brad Griffis <bradgriffis@hotmail.com> a tapot� : | You should be able to do this. In the same place where you can choose | decimal or hexadecimal there should also be a choice for float. In Fact, I'm confused in my example 0x100 : 0x3f80 0x101 : 0x0000 In the watch window *(0x100),x = 0x3f80 *(0x100),d = 16256 *(0x100),e= 1.6256 e4 Or I would like to display "1" where "1" is 0x3f800000 In 32-bits Floating point representation Or "1065353216" where "1065353216" Is 0x3f800000 in 32-bits signed integer representation | Are you maybe using a really old version of CCS? Go to Help -> About | and see which version you're using. CCS 1.20 | Also, what processor are you | working on? 2812? C54x . Floating point computation is not done in IRQ ! :o) Thanks for your answer.
Reply by ●November 4, 20042004-11-04
CCS v1.20 is ancient. Maybe someone else can give you more info. In more current versions (2.21 is the most recent) you can simply click a button in the watch window and choose whether to display as float, int, hex, etc. Sorry, but I don't know for v1.20. Good luck! Brad "Curl" <Mr.Bilou@microsoft.fr> wrote in message news:418a4ef8$0$7205$636a15ce@news.free.fr...> > Brad Griffis <bradgriffis@hotmail.com> a tapot� : > | You should be able to do this. In the same place where you can > choose > | decimal or hexadecimal there should also be a choice for float. > > In Fact, I'm confused > in my example > 0x100 : 0x3f80 > 0x101 : 0x0000 > > In the watch window > *(0x100),x = 0x3f80 > *(0x100),d = 16256 > *(0x100),e= 1.6256 e4 > > Or I would like to display > > "1" > where "1" is 0x3f800000 In 32-bits Floating point representation > > Or "1065353216" > where "1065353216" Is 0x3f800000 in 32-bits signed integer > representation > > > | Are you maybe using a really old version of CCS? Go to Help -> > About > | and see which version you're using. > > CCS 1.20 > > | Also, what processor are you > | working on? 2812? > > C54x . > Floating point computation is not done in IRQ ! :o) > > Thanks for your answer. >
Reply by ●November 5, 20042004-11-05
"Pavel Semyonov" <pavel@NOSPAM-mlabsys.com> a �crit dans le message de news:cmf87u$1tdg$1@news.aha.ru... | Hello, | As far as I remember, for CCS v.1.x and previous releases of just CC, the | data format is defined in the var line using the following syntax: | VAR_TO_WATCH,format .data myvar .long 0x12345678 In the watch window : *(myvar),x = 0x12340000 | However, I definately remember that the CCS help contains the list of all | available formats, just look it thru. I agree, I read on-line Help and CCS user's guide. The differents display format are of course resumed, but nothing about my problem. Anyway, I'm going to used memory window in different format. Thanks to both to you for your answers.
Reply by ●November 5, 20042004-11-05
Hello, As far as I remember, for CCS v.1.x and previous releases of just CC, the data format is defined in the var line using the following syntax: VAR_TO_WATCH,format If your VAR_TO_WATCH is already in the watch window, just click this line and you'll be able to edit this WATCH entry. Use the ',' delimiter in order to specify the format. I do not actually remember all format IDs, the only I remember is that the ',x' denotes the hex format, which I used most of times. Default is the decimal format, and hex is used for pointers only. However, I definately remember that the CCS help contains the list of all available formats, just look it thru. In CCS2.x the format is defined by the right-most field of the WATCH entry, whcih contains the pop-down list of all available formats. -- Regards, Pavel "Curl" <Mr.Bilou@microsoft.fr> wrote in message news:418a4ef8$0$7205$636a15ce@news.free.fr...> > Brad Griffis <bradgriffis@hotmail.com> a tapot� : > | You should be able to do this. In the same place where you can > choose > | decimal or hexadecimal there should also be a choice for float. > > In Fact, I'm confused > in my example > 0x100 : 0x3f80 > 0x101 : 0x0000 > > In the watch window > *(0x100),x = 0x3f80 > *(0x100),d = 16256 > *(0x100),e= 1.6256 e4 > > Or I would like to display > > "1" > where "1" is 0x3f800000 In 32-bits Floating point representation > > Or "1065353216" > where "1065353216" Is 0x3f800000 in 32-bits signed integer > representation > > > | Are you maybe using a really old version of CCS? Go to Help -> > About > | and see which version you're using. > > CCS 1.20 > > | Also, what processor are you > | working on? 2812? > > C54x . > Floating point computation is not done in IRQ ! :o) > > Thanks for your answer. >
Reply by ●November 5, 20042004-11-05
Hello again,> I agree, I read on-line Help and CCS user's guide. The differents > display format are of course resumed, but nothing about my problem.@No, I definately remember that I was able to display the 32-bit LONGs and FP vars in the watch window, this is just how you specify a format ID in a watch line. Look thru the mnual for WATCH window formats, it's there. -- Regards, Pavel "Curl" <Mr.Bilou@microsoft.fr> wrote in message news:418b3afc$0$29502$636a15ce@news.free.fr...> > "Pavel Semyonov" <pavel@NOSPAM-mlabsys.com> a �crit dans le message de > news:cmf87u$1tdg$1@news.aha.ru... > | Hello, > | As far as I remember, for CCS v.1.x and previous releases of just > CC, the > | data format is defined in the var line using the following syntax: > | VAR_TO_WATCH,format > > .data > myvar .long 0x12345678 > > In the watch window : > *(myvar),x = 0x12340000 > > > | However, I definately remember that the CCS help contains the list > of all > | available formats, just look it thru. > > I agree, I read on-line Help and CCS user's guide. The differents > display format are of course resumed, but nothing about my problem. > > Anyway, I'm going to used memory window in different format. > Thanks to both to you for your answers. > >