how to Square Root function in flowcode AVR (ATMEG328P)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
imtiaz9
Posts: 15
Joined: Sat Aug 10, 2013 7:16 am
Been thanked: 1 time
Contact:

how to Square Root function in flowcode AVR (ATMEG328P)

Post 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...
Attachments
Main.fcf_avr
(6 KiB) Downloaded 304 times

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

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

Post by mnf »

Compiles OK for me - what version of Flowcode are you using - and what errors are you getting?

Martin

imtiaz9
Posts: 15
Joined: Sat Aug 10, 2013 7:16 am
Been thanked: 1 time
Contact:

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

Post 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."

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

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

Post 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 326 times
The demo (main) code just displays the sqrt of 100 randomish numbers...

Martin

imtiaz9
Posts: 15
Joined: Sat Aug 10, 2013 7:16 am
Been thanked: 1 time
Contact:

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

Post by imtiaz9 »

now I convert my file into Flowcode 6 and it compile all OK.
thanks for replay.... :)

Post Reply