Temporary fixes for V4.5 PICmicro release

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

User avatar
Steve
Matrix Staff
Posts: 3105
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 392 times
Contact:

Temporary fixes for V4.5 PICmicro release

Postby Steve » Fri Jul 29, 2011 9:00 am

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
(11.02 KiB) Downloaded 865 times
PIC_ADC_29.c
(11.8 KiB) Downloaded 754 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.92 KiB) Downloaded 845 times


3) gLCD simulation problem (coordinates do not work properly) (datestamp 29/07/11)
PIC_gLCD.c
(46.43 KiB) Downloaded 1048 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 739 times
These users thanked the author Steve for the post (total 7):
medelec35 (Fri Jul 29, 2011 9:11 am) • JohnCrow (Fri Jul 29, 2011 10:08 am) • petesmart (Fri Jul 29, 2011 11:51 am) • Rosenbaum (Fri Jul 29, 2011 12:34 pm) • nmindana (Mon Aug 01, 2011 4:12 pm) • Sefi (Thu Aug 11, 2011 2:39 pm) • leoo (Wed Dec 12, 2012 8:51 am)
Rating: 36.84%
 

User avatar
petesmart
Valued Contributor
Valued Contributor
Posts: 395
Joined: Thu May 06, 2010 11:42 am
Location: Sydney, Australia
Has thanked: 190 times
Been thanked: 140 times
Contact:

Re: Temporary fixes for V4.5 PICmicro release

Postby petesmart » Thu Oct 06, 2011 10:27 pm

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
sorry about that Chief!

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8546
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2457 times
Been thanked: 3529 times
Contact:

Re: Temporary fixes for V4.5 PICmicro release

Postby medelec35 » Sun Jan 29, 2012 7:48 pm

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
Attachments
PIC_ADC_29.c
(11.81 KiB) Downloaded 522 times
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8546
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2457 times
Been thanked: 3529 times
Contact:

16F723

Postby medelec35 » Sat Feb 18, 2012 8:02 pm

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
Attachments
16F723.fcd
(12.78 KiB) Downloaded 453 times
These users thanked the author medelec35 for the post (total 2):
RobinCordell (Sat Feb 18, 2012 8:16 pm) • mauro (Mon Apr 23, 2012 7:09 pm)
Rating: 10.53%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

RobinCordell
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

Postby RobinCordell » Tue Mar 13, 2012 1:28 pm

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

Attachments
nsr723.fcf
Flowcode file
(5.5 KiB) Downloaded 497 times
nsr723.hex
The Generated Hex File
(1.06 KiB) Downloaded 405 times

User avatar
Steve
Matrix Staff
Posts: 3105
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 392 times
Contact:

Re: Temporary fixes for V4.5 PICmicro release

Postby Steve » Tue Mar 13, 2012 2:17 pm

I don't think PPP can reprogram the 16F72x range of devices. You may need to use an alternative programmer.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8546
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2457 times
Been thanked: 3529 times
Contact:

Re: Temporary fixes for V4.5 PICmicro release

Postby medelec35 » Tue May 01, 2012 10:06 pm

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
Attachments
ppp_config_data2.cfg
(230.22 KiB) Downloaded 507 times
These users thanked the author medelec35 for the post (total 2):
Steve (Wed May 02, 2012 8:07 am) • leoo (Wed Dec 12, 2012 8:44 am)
Rating: 10.53%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.