Page 1 of 1

Number TO Hex

Posted: Mon Aug 29, 2016 12:24 pm
by Alan_37
Hi

Just found a small bug , when converting Number to hex string
for 1 to 9 in the simulation shows that hex string is 0x01 to 0x09
but than when you burn to the chip the string is 0x1 to 0x9 , it took me while
trying to find what is wrong cause i was comparing the
Hex string to another string , in simulation worked perfectly but on chip
dose not .

Chip is : Atmega2560 ( Arduino Mega2560 R3)

So hope you can fix it thanks .

Alan

Re: Number TO Hex

Posted: Mon Aug 29, 2016 1:09 pm
by medelec35
Hi Alan,While you are waiting for that to be sorted, have you see this?

Martin

Re: Number TO Hex

Posted: Tue Aug 30, 2016 12:41 pm
by Benj
Hello,

Please can you try this updated CAL file and see if it solves the problem for you. It should now force the number to have at least two characters e.g. "0x01" instead of "0x1"

The file needs to be placed into the "Flowcode 7/CAL/AVR" directory before recompiling your project.
AVR_CAL_String.c
(23.5 KiB) Downloaded 343 times

Re: Number TO Hex

Posted: Mon Sep 05, 2016 10:26 pm
by Alan_37
Hi Benj

Just saw the post to day ,
I have fixed the problem by cutting the 0x then check the string length if = 1 then hex_string = "0" + hex_string .

But i will certainly replace the cal file make some test and let you know .

Thanks very much .

Alan

Re: Number TO Hex

Posted: Mon Sep 05, 2016 10:57 pm
by Alan_37
Hi Benj

Just made the test, i think this needs some more attention see Attachment :| .

Re: Number TO Hex

Posted: Tue Sep 06, 2016 3:05 pm
by Alan_37
Hi

I have overwritten the original file , can someone upload AVR_CAL_String.c please

Thanks in advance .

Re: Number TO Hex

Posted: Tue Sep 06, 2016 3:12 pm
by medelec35
Hopefully this will help.

Martin

Re: Number TO Hex

Posted: Tue Sep 06, 2016 3:30 pm
by Alan_37
Thanks medelec

But still no luck

Re: Number TO Hex

Posted: Thu Sep 08, 2016 8:16 am
by medelec35
Hi Alan,
i have posted the original file as requested.
Not modified it at all.

Martin

Re: Number TO Hex

Posted: Thu Sep 08, 2016 8:43 am
by LeighM
Hi Alan,
Try this ..

Re: Number TO Hex

Posted: Fri Sep 09, 2016 10:45 am
by Alan_37
Hi Leigh

Yesss that Fixed it , please include this in the update .

Thanks very much .

Alan

Re: Number TO Hex

Posted: Fri Sep 09, 2016 12:24 pm
by LeighM
Hi Alan,
Thanks for the confirmation, the file is now in our repo ready for next update/release.
Regards,
Leigh