Page 1 of 1

how to Square Root function in flowcode AVR (ATMEG328P)

Posted: Wed May 23, 2018 12:23 pm
by imtiaz9
Hi, in "Flowcode AVR" the Square Root function is simulate very well and give accurate result. but when compile to Hex, it give an error message.
any solution to solve this?? i'm using ATMEG328P chip...

Re: how to Square Root function in flowcode AVR (ATMEG328P)

Posted: Wed May 23, 2018 1:01 pm
by mnf
Compiles OK for me - what version of Flowcode are you using - and what errors are you getting?

Martin

Re: how to Square Root function in flowcode AVR (ATMEG328P)

Posted: Thu May 24, 2018 10:42 am
by imtiaz9
Version I use is Flowcode AVR V5.3.0
Error code is here,
"Main.c:(.text+0x2bc): undefined reference to `float32_sqrt'

Error returned from [avr-gcc.exe]
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support."

Re: how to Square Root function in flowcode AVR (ATMEG328P)

Posted: Fri May 25, 2018 6:11 pm
by mnf
- that's a job for Matrix's boffins....

I can offer a sqrt macro that will do the job in the meantime:
sqrt.fcfx
(11.22 KiB) Downloaded 332 times
The demo (main) code just displays the sqrt of 100 randomish numbers...

Martin

Re: how to Square Root function in flowcode AVR (ATMEG328P)

Posted: Sun May 27, 2018 8:00 am
by imtiaz9
now I convert my file into Flowcode 6 and it compile all OK.
thanks for replay.... :)