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...
how to Square Root function in flowcode AVR (ATMEG328P)
Moderator: Benj
how to Square Root function in flowcode AVR (ATMEG328P)
- Attachments
-
- Main.fcf_avr
- (6 KiB) Downloaded 314 times
-
- Valued Contributor
- Posts: 1189
- 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)
Compiles OK for me - what version of Flowcode are you using - and what errors are you getting?
Martin
Martin
Re: how to Square Root function in flowcode AVR (ATMEG328P)
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."
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."
-
- Valued Contributor
- Posts: 1189
- 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)
- that's a job for Matrix's boffins....
I can offer a sqrt macro that will do the job in the meantime:
The demo (main) code just displays the sqrt of 100 randomish numbers...
Martin
I can offer a sqrt macro that will do the job in the meantime:
The demo (main) code just displays the sqrt of 100 randomish numbers...
Martin
Re: how to Square Root function in flowcode AVR (ATMEG328P)
now I convert my file into Flowcode 6 and it compile all OK.
thanks for replay....
thanks for replay....