PIC16F1824 PWM
Moderator: Benj
Re: PIC16F1824 PWM
Does not compile
- Attachments
-
- ....
- ERR.jpg (101.28 KiB) Viewed 12283 times
-
- TX.fcfx
- file
- (8.04 KiB) Downloaded 306 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: PIC16F1824 PWM
I Have moved topic from Fixed bugs to Bug reports.
Compiles for me ok:
As a complete guess, Perhaps it is something to do with language settings?
Have you tried changing to English and seeing it it will compile for you?
Compiles for me ok:
Code: Select all
Device: PIC.16F.16F1824
Generated by: Flowcode v7.2.1.4
Date: Sunday, August 27, 2017 20:20:51
Users: 1
Registered to: Martin
Licence key: BA48R5
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic\bin\xc8.exe --chip=16F1824 "TX.c" --MSGDISABLE=359,1273,1388
Microchip MPLAB XC8 C Compiler (Free Mode) V1.41
Build date: Jan 24 2017
Part Support Version: 1.41
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration
. . . . . .
TX.c: 191: (1257) local variable "_FCR_RETVAL" is used but never given a value (warning)
Memory Summary:
Program space used BFh ( 191) of 1000h words ( 4.7%)
Data space used 24h ( 36) of 100h bytes ( 14.1%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Data stack space used 0h ( 0) of DBh bytes ( 0.0%)
Configuration bits used 2h ( 2) of 2h words (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
You have compiled in FREE mode.
Using Omniscient Code Generation that is available in PRO mode,
you could have produced up to 60% smaller and 400% faster code.
See http://www.microchip.com/MPLABXCcompilers for more information.
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\tools\DoNothing\DoNothing.exe
FINISHED
As a complete guess, Perhaps it is something to do with language settings?
Have you tried changing to English and seeing it it will compile for you?
Martin
Re: PIC16F1824 PWM
If I remove the delay, then everything is fine ...
- Attachments
-
- Del.jpg (94.96 KiB) Viewed 12264 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: PIC16F1824 PWM
Take a look at how much program space your flowchart is using when you compiled it (99.7%) compared to when I compiled it (4.7%) and that was with the delay!
The Reason your first flowchart did not compile was due to using too much program space.
Not sure how such a small flowchart can use up lots of rom when you try to compile, but not when I compile it?
The Reason your first flowchart did not compile was due to using too much program space.
Not sure how such a small flowchart can use up lots of rom when you try to compile, but not when I compile it?
Martin
Re: PIC16F1824 PWM
Yes, I noticed it!
But I can not understand why.
EDIT:
Rearranged the program.
And checked with every update.
That's what happened .... EDIT2:
It turns out that the last update introduces an error in the compiler.
But I can not understand why.
EDIT:
Rearranged the program.
And checked with every update.
That's what happened .... EDIT2:
It turns out that the last update introduces an error in the compiler.
Last edited by EtsDriver on Mon Aug 28, 2017 5:59 pm, edited 1 time in total.
Reason: Please, use edit button to edit your old message instead. It makes the topic much easier to read! :)
Reason: Please, use edit button to edit your old message instead. It makes the topic much easier to read! :)
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: PIC16F1824 PWM
Thanks for the report.
Seems that simulation code is erroneously getting created as part of the download code.
We will investigate.
Seems that simulation code is erroneously getting created as part of the download code.
We will investigate.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: PIC16F1824 PWM
Updated PWM component attached,
to go into Flowcode7\components directory.
This should reduce the download code size
to go into Flowcode7\components directory.
This should reduce the download code size
- Attachments
-
- PWM.fcpx
- (8.96 KiB) Downloaded 329 times
Re: PIC16F1824 PWM
Thanks for the correction!
Yes, the code has become smaller.
But the simulation indicator remained.
Yes, the code has become smaller.
But the simulation indicator remained.
- Attachments
-
- ZZZ.jpg (51.75 KiB) Viewed 12119 times
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: PIC16F1824 PWM
That is a new feature that indicates when the PWM is enabled.But the simulation indicator remained.
Do you have a problem with it?
Re: PIC16F1824 PWM
Hi LeighM !!
I did not know about it.
I apologize.
Everything else works !!!
Thank you!!!!!!!!
I did not know about it.
I apologize.
Everything else works !!!
Thank you!!!!!!!!
Re: PIC16F1824 PWM
I am very sorry !!!
Please see what I'm doing wrong ...
Or is it a compiler error?
Thank you!!!
Please see what I'm doing wrong ...
Or is it a compiler error?
Thank you!!!
- Attachments
-
- TX.fcfx
- (10.43 KiB) Downloaded 215 times
-
- PWM_PIK18F67K22.jpg (82.27 KiB) Viewed 12089 times