Page 1 of 1
Compare strings
Posted: Wed Jun 06, 2012 10:54 am
by wayne millard
Hi Team,
Is there a problem with compare string? i always get the value 0 if they are the same or different.
And strings dont show in the Variables window in the ICD HP299.
Thanks
Wayne

Re: Compare strings
Posted: Wed Jun 06, 2012 11:07 am
by wayne millard
Hi,
It works ok in flowcode V4 but not V5
Wayne
Re: Compare strings
Posted: Thu Jun 07, 2012 9:25 am
by JonnyW
Hi Wayne.
Yes, strings not being shown in ICD mode has been reported, we are looking into it here. The problem seems to be arrays in general.
As far as string compare can you post a sample? I can't see anything in a simple program that would cause this to fail and simple tests work OK. Do you mean simulation or on chip?
Cheers,
Jonny
Re: Compare strings
Posted: Thu Jun 07, 2012 10:47 am
by wayne millard
Hi Jonny,
Thanks for coming back to me.
Here are two examples one v4 and one v5. version 4 works in simulation have not tried in hardware v5 Result always = 0
Thanks
Wayne
Re: Compare strings
Posted: Thu Jul 12, 2012 7:39 pm
by JohnCrow
String Compare Function
Hi Ive just done some test of my own (NOT using ICD)
Looks like PIC FC5 could have a problem.
PIC 16F877A on HP488 Dev Board
AVR ATMEGA 324
FC4 PIC
String1 = Hello
String2 = Hello
Shows these are the same
Set to case sensitive
String1 = Hello
String2 = HELLO
Shows not the same
String1 = Hello
String2 = World
Shows not the same regardless of case
Works on both hardware and simulation.
FC5 PIC
String1 = Hello
String2 = Hello
Show same in simulation
Show different on hardware
String1 = Hello
String2 = World
Show same in simulation
Show different on hardware
Case sensitive
String1 = Hello
String2 = HELLO
Show same s in simulation
Show different on hardware
FC5 AVR
String1 = Hello
String2 = Hello
Shows these are the same
Set to case sensitive
String1 = Hello
String2 = HELLO
Shows not the same
String1 = Hello
String2 = World
Shows not the same regardless of case
Works on both hardware and simulation.
FC5 ARM
Only tried in simulation on ARM (No Hardware)
Seems to work properly
FC4 dsPIC
Works fine on both hardware and simulation
Re: Compare strings
Posted: Thu Jul 12, 2012 10:05 pm
by DavidA
Hmm thanks John,
Ill poke Jonny tomorrow with this
Re: Compare strings
Posted: Fri Jul 13, 2012 10:19 am
by JonnyW
Hi. Yes, the bug is simulation only and is only in the PIC v5.2. We will hopefully be bringing the PIC v5.3 in line with the ARM/AVR versions and this will fix the issue.
In fact, I think the bug leaves the compare result unchanged regardless of the compare.
Apologies for this, and we will roll out the PIC 5.3 asap.
Jonny
Re: Compare strings
Posted: Fri Jul 13, 2012 12:56 pm
by wayne millard
Hi Jonny,
Will the strings problem be fixed for the HP299 debugger as well in 5.3 iss ?
Thanks
Wayne
