Compiler error
Compiler error
Hi there
I am new to Flowcode but I have a problem when compiling to HEX.
When starting the compiler, the messages in the compiler window says that the Preprocessor goes OK. Next starts the linker/assembler but then I get an error:
Error: Failed to open:libc.lib16.lib
failure
Return code = -2
Flowcode was not able to assemble the ASM file due to the following reason:
(empty)
The libc.lib16.lib file is in the BoostC/lib directory and the reason field is empty so I have no indication what is missing.
I hope you have some ideas.
Best
Erik
I am new to Flowcode but I have a problem when compiling to HEX.
When starting the compiler, the messages in the compiler window says that the Preprocessor goes OK. Next starts the linker/assembler but then I get an error:
Error: Failed to open:libc.lib16.lib
failure
Return code = -2
Flowcode was not able to assemble the ASM file due to the following reason:
(empty)
The libc.lib16.lib file is in the BoostC/lib directory and the reason field is empty so I have no indication what is missing.
I hope you have some ideas.
Best
Erik
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Compiler error
Hi
You can have a look at the following FAQ link...
http://www.matrixmultimedia.com/support ... f=22&t=683
You can have a look at the following FAQ link...
http://www.matrixmultimedia.com/support ... f=22&t=683
-
- Posts: 67
- Joined: Mon Jan 28, 2013 6:00 am
- Has thanked: 20 times
- Been thanked: 4 times
- Contact:
Re: Compiler error
Hi,
I am using flowcode 5 and I am getting a different error message. My error message is as follows:
failure
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 carefully. If your flowcode contains no C code, or you have thorolly reviewed the code, contact technical support.
In simulation everything works. I am attaching the file here.
Please help you can.
I am using flowcode 5 and I am getting a different error message. My error message is as follows:
failure
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 carefully. If your flowcode contains no C code, or you have thorolly reviewed the code, contact technical support.
In simulation everything works. I am attaching the file here.
Please help you can.
- Attachments
-
- Test-Robot.fcf
- (14.18 KiB) Downloaded 257 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Compiler error
Hi kalim007,
Issue is with PWM 2 is not set up correctly.
First What you need to do is on your control panel select Ext properties (right click on the component) of the top PWM component(PWM Channel 1) and make sure all the settings are correct to produce correct PWM frequency.
Make a note of Period register and Prescaler divide as your need these settings again
Now select Ext properties of PWM 2
Change the properties so PWM Channel is 2.
Change Period register and Prescaler divide to match settings with the other PWM component (PWM 1), the correct PWM frequency should also be shown for PWM 2 which should also match with PWM 1
If the two pwm properties don't match then you will get a preprocessing error.
Martin
Issue is with PWM 2 is not set up correctly.
First What you need to do is on your control panel select Ext properties (right click on the component) of the top PWM component(PWM Channel 1) and make sure all the settings are correct to produce correct PWM frequency.
Make a note of Period register and Prescaler divide as your need these settings again
Now select Ext properties of PWM 2
Change the properties so PWM Channel is 2.
Change Period register and Prescaler divide to match settings with the other PWM component (PWM 1), the correct PWM frequency should also be shown for PWM 2 which should also match with PWM 1
If the two pwm properties don't match then you will get a preprocessing error.
Martin
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Compiler error
Your welcome kalim007.
Thanks for letting us know.
Since you using non free version of Flowcode V5
It would be beneficial to you if registered to use V5 section.
If not registered for V5 then if you post a question relating to a microcontroller that's not in the free edition, you may not get answered (except for "Can you please register for V5 section" etc.
To register take a look here:
http://www.matrixmultimedia.com/mmforum ... =46&t=9958
Martin
Thanks for letting us know.
Since you using non free version of Flowcode V5
It would be beneficial to you if registered to use V5 section.
If not registered for V5 then if you post a question relating to a microcontroller that's not in the free edition, you may not get answered (except for "Can you please register for V5 section" etc.
To register take a look here:
http://www.matrixmultimedia.com/mmforum ... =46&t=9958
Martin
Martin
-
- Posts: 67
- Joined: Mon Jan 28, 2013 6:00 am
- Has thanked: 20 times
- Been thanked: 4 times
- Contact:
Re: Compiler error
Martin,
I have registered in V5 user. Is there anything else, I need to do in order to get help from this forum.
I have registered in V5 user. Is there anything else, I need to do in order to get help from this forum.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Compiler error
No. You have now full access to the forum and we all try to support you with our maximum capability.
Welcome to the V5 forum
Welcome to the V5 forum
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Compiler error
We try and give registered uses priority over non registered users, so registering is the best way to get help.
Now your sorted, welcome from me as well.
Now your sorted, welcome from me as well.
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Compiler error
That's great!
Its always nice to see someone else's project working.
Thanks for sharing.
Its always nice to see someone else's project working.
Thanks for sharing.
Martin
-
- Posts: 1314
- Joined: Sun Jan 15, 2012 3:15 pm
- Has thanked: 474 times
- Been thanked: 458 times
- Contact:
Re: Compiler error
nice first project
Regards
Dazz
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php