Page 1 of 1

Temporary fixes for V4.5 PICmicro release

Posted: Fri Jul 29, 2011 9:00 am
by Steve
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)
PIC_ADC_28.c
(10.6 KiB) Downloaded 1197 times
PIC_ADC_29.c
(11.36 KiB) Downloaded 1075 times
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)
PIC_EEPROM.c
(6.61 KiB) Downloaded 1153 times
3) gLCD simulation problem (coordinates do not work properly) (datestamp 29/07/11)
PIC_gLCD.c
(44.63 KiB) Downloaded 1371 times
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")
reg_wlan.zip
(1.2 KiB) Downloaded 1063 times

Re: Temporary fixes for V4.5 PICmicro release

Posted: Thu Oct 06, 2011 10:27 pm
by petesmart
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

Re: Temporary fixes for V4.5 PICmicro release

Posted: Sun Jan 29, 2012 7:48 pm
by medelec35
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

16F723

Posted: Sat Feb 18, 2012 8:02 pm
by medelec35
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

Re: Temporary fixes for V4.5 PICmicro release

Posted: Tue Mar 13, 2012 1:28 pm
by RobinCordell
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

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


Re: Temporary fixes for V4.5 PICmicro release

Posted: Tue Mar 13, 2012 2:17 pm
by Steve
I don't think PPP can reprogram the 16F72x range of devices. You may need to use an alternative programmer.

Re: Temporary fixes for V4.5 PICmicro release

Posted: Tue May 01, 2012 10:06 pm
by medelec35
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