There are a number of small fixes to the recent V4.5 release that we will make available here. If you are experiencing these issues, you can download and use these new files in your copy of Flowcode.
The "C" code files should be placed in the "Components" subfolder of you Flowcode installation.
1) 18Fxxk22 devices: ADC component wrongly converts port pins to analog after sample. (datestamp 01/08/11)
Edit: Above files have been updated to solve a second problem related to defines.
2) EEPROM compilation problem (redefinition of symbol) (datestamp 28/07/11)
3) gLCD simulation problem (coordinates do not work properly) (datestamp 29/07/11)
4) The WLAN component is installed but hidden. Download, unzip and run this batch file (reg_wlan.bat).(datestamp 04/08/11)
If Win 7 or Win Vista, you will need to run the batch file with administrator privileges (Right Click on the batch file and select "Run as Administrator")
Temporary fixes for V4.5 PICmicro release
Moderator: Benj
- petesmart
- Valued Contributor
- Posts: 395
- Joined: Thu May 06, 2010 11:42 am
- Location: Sydney, Australia
- Has thanked: 187 times
- Been thanked: 140 times
- Contact:
Re: Temporary fixes for V4.5 PICmicro release
Hi,
In following the forums, I have noticed that a number of bug fixes have been made since this last update, particularly in relation to the .c files.
Is it possible to provide an updated consolidated list please. It will save a lot of trolling thru the forums to get all of the relevant updates, particularly when you have built code that doesn't quite work as it should.
Many thanks
Best regards
Pete
In following the forums, I have noticed that a number of bug fixes have been made since this last update, particularly in relation to the .c files.
Is it possible to provide an updated consolidated list please. It will save a lot of trolling thru the forums to get all of the relevant updates, particularly when you have built code that doesn't quite work as it should.
Many thanks
Best regards
Pete
sorry about that Chief!
-
- 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: Temporary fixes for V4.5 PICmicro release
error: unknown identifier 'VCFG0' if using VREF+ for Vref option
Devices affected
18F23K22, 18F24K22, 18F25K22, 18F26K22, 18F43K22, 18F44K22, 18F45K22, 18F46K22,
18LF23K22, 18LF24K22, 18LF25K22, 18LF26K22, 18LF43K22, 18LF44K22, 18LF45K22, 18LF46K22,
Fix is:
If 64bit windows go to C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Components
or
If 32bit windows go to C:\Program Files\Flowcode V4\Components
Make a copy of PIC_ADC_29.c
then replace original with attached file
Hopefully flowchart will compile successfully.
Martin
Devices affected
18F23K22, 18F24K22, 18F25K22, 18F26K22, 18F43K22, 18F44K22, 18F45K22, 18F46K22,
18LF23K22, 18LF24K22, 18LF25K22, 18LF26K22, 18LF43K22, 18LF44K22, 18LF45K22, 18LF46K22,
Fix is:
If 64bit windows go to C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Components
or
If 32bit windows go to C:\Program Files\Flowcode V4\Components
Make a copy of PIC_ADC_29.c
then replace original with attached file
Hopefully flowchart will compile successfully.
Martin
- Attachments
-
- PIC_ADC_29.c
- (11.37 KiB) Downloaded 845 times
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:
16F723
Corrected Timer1 errors:
unknown identifier 'TMR1CS'
error: invalid operand 'TMR1CS'
error: failed to generate expression
error: invalid operand '~(1 << (TMR1CS))'
error: failed to generate expression
Also altered definition file to allow timer2 to be selected.
Fix is:
make a copy of 16F723.fcd
which is located in:
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD
If 64 bit windows
or
C:\Program Files\Matrix Multimedia\Flowcode V4\FCD
if 32 bit windows
Replace original with attached file.
You will need to either restart Flowcode or selected a different target device,then reselect 16F723 for fix to work.
Martin
unknown identifier 'TMR1CS'
error: invalid operand 'TMR1CS'
error: failed to generate expression
error: invalid operand '~(1 << (TMR1CS))'
error: failed to generate expression
Also altered definition file to allow timer2 to be selected.
Fix is:
make a copy of 16F723.fcd
which is located in:
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\FCD
If 64 bit windows
or
C:\Program Files\Matrix Multimedia\Flowcode V4\FCD
if 32 bit windows
Replace original with attached file.
You will need to either restart Flowcode or selected a different target device,then reselect 16F723 for fix to work.
Martin
- Attachments
-
- 16F723.fcd
- (12.37 KiB) Downloaded 774 times
Martin
-
- Flowcode V4 User
- Posts: 15
- Joined: Fri Mar 12, 2010 9:37 pm
- Has thanked: 4 times
- Contact:
Re: Temporary fixes for V4.5 PICmicro release
Hi Martin,
Thanks for the updated definition file. Sorry it has taken a while to fully test the solution. Unfortunately the day-job got in the way rather!
The update did the trick and the file compiled correctly. Unfortunately, it now fails to program
Compiler messages for information below
Thanks for the updated definition file. Sorry it has taken a while to fully test the solution. Unfortunately the day-job got in the way rather!
The update did the trick and the file compiled correctly. Unfortunately, it now fails to program
Compiler messages for information below
Code: Select all
File name: C:\Users\Robin\Documents\Flowcode\mike\nsr723.c
Generated by: Flowcode v4.5.18.74
Date: Tuesday, March 13, 2012 11:54:10
Licence: Professional
Registered to: Robin Cordell
http://www.matrixmultimedia.com
Launching the compiler...
c:\program files\matrix multimedia\flowcode v4\boostc\boostc_pic16_flowcode.exe -v -t PIC16F723 "nsr723.c"
BoostC Optimizing C Compiler Version 7.04 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Licensed to FlowCode User under Single user Pro License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited
nsr723.c
Starting preprocessor: c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\pp.exe nsr723.c -i c:\PROGRA~1\MATRIX~1\FLOWCO~1\boostc\include -d _PIC16F723 -la -c2 -o nsr723.pp -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
......
nsr723.c success
success
Return code = 0
Launching the linker/assembler...
c:\program files\matrix multimedia\flowcode v4\boostc\boostlink_pic.exe -ld "C:\Program Files\Matrix Multimedia\Flowcode V4\BoostC\lib" libc.pic16.lib flowcode.pic16.lib rand.pic16.lib float.pic16.lib "nsr723.obj" -t PIC16F723 -d "C:\Users\Robin\Documents\Flowcode\mike" -p "nsr723"
BoostLink Optimizing Linker Version 7.03
http://www.sourceboost.com
Copyright(C) 2004-2011 Pavel Baranov
Copyright(C) 2004-2011 David Hobday
Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program Files\Matrix Multimedia\Flowcode V4\FCD\internals.h
Building CASM file
Memory Usage Report
===================
RAM available:192 bytes, used:39 bytes (20.4%), free:153 bytes (79.6%),
Heap size:153 bytes, Heap max single alloc:94 bytes
ROM available:4096 words, used:184 words (4.5%), free:3912 words (95.5%)
success
Return code = 0
Launching the programmer...
C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP\PPPv3.exe -cs 2 -chip PIC16F723 -nogui "nsr723.hex"
Sending program...
Erasing the PICmicro
NOTE: EEPROM data will also be erased!
Writing program memory
Writing configuration memory
Programming failed: <config1> & <config2>
That took 0.873 seconds
Return code = 0
- Attachments
-
- nsr723.fcf
- Flowcode file
- (5.5 KiB) Downloaded 811 times
-
- nsr723.hex
- The Generated Hex File
- (1.03 KiB) Downloaded 721 times
- Steve
- Matrix Staff
- Posts: 3424
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Re: Temporary fixes for V4.5 PICmicro release
I don't think PPP can reprogram the 16F72x range of devices. You may need to use an alternative programmer.
-
- 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: Temporary fixes for V4.5 PICmicro release
16F1847.
Memory size wrongly reported as 4096 words, should be 8192 words.
This would mean any Flowchart with memory size greater than 4096 will fail to compile.
Fix is:
make a copy of ppp_config_data2.cfg
which is located in:
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\
If 64 bit windows
or
C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP\
if 32 bit windows
Replace original with attached file.
You may need to select a different target device, then re-select 16F1847 for fix to work correctly.
Martin
Memory size wrongly reported as 4096 words, should be 8192 words.
This would mean any Flowchart with memory size greater than 4096 will fail to compile.
Fix is:
make a copy of ppp_config_data2.cfg
which is located in:
C:\Program Files (x86)\Matrix Multimedia\Flowcode V4\Tools\PPP\
If 64 bit windows
or
C:\Program Files\Matrix Multimedia\Flowcode V4\Tools\PPP\
if 32 bit windows
Replace original with attached file.
You may need to select a different target device, then re-select 16F1847 for fix to work correctly.
Martin
- Attachments
-
- ppp_config_data2.cfg
- (221.5 KiB) Downloaded 820 times
Martin