Page 1 of 1
28/04/2020 update
Posted: Tue Apr 28, 2020 4:47 pm
by Marc-WP
Today's flowcode 8 update has corrupted the compiler.
One of those three is the cause
PIC16BIT\PIC16BIT_CAL_ADC.c
......................_ CAN.c
..................... _Float.c
Please coud you have a look at the problem.
Best regards
Re: 28/04/2020 update
Posted: Tue Apr 28, 2020 5:19 pm
by medelec35
Hi Marc-WP,
While waiting for the bug to be fixed, there is a workaround.
Select Help, Check for Updates,
Select Show Up to-date files
Select the PIC16_Cal_Adc.c so its ticked.
Change the New Revision number from 5 to 4 then select Download
Finally Select Exit then Reload (third from the left at top,next to Save)
Re: 28/04/2020 update
Posted: Tue Apr 28, 2020 7:53 pm
by Marc-WP
Thanks , it's working perfectly again.
I was wondering about what to do this evening...

Best Regards
Marc_WP
Re: 28/04/2020 update
Posted: Tue Apr 28, 2020 9:28 pm
by medelec35
Glad you are up and running again.
Thanks for keeping us updated.
Re: 28/04/2020 update
Posted: Wed Apr 29, 2020 4:58 pm
by Benj
Sorry about this, got a bit heavy handed with an potential future update merging with the current version when dealing with some bugs I spotted.
Should be all fixed now.
Re: 28/04/2020 update
Posted: Mon May 04, 2020 11:40 am
by Marc-WP
Hi Benj,
The update Version 6 is not working proprely. The version 5 was for me working well
But now as I've made the update once, it looks like the compiler do not let me compile in version 5 anymore.
An idea ?
Re: 28/04/2020 update
Posted: Mon May 04, 2020 12:32 pm
by medelec35
Version 6 is compiling okay for me , but it could be a specific target issue?
Unless you mean its compiling but not reading values correctly.
Can you be more specific please?
It will help if you can post the flowchart that is causing the issue.
Marc-WP wrote:The version 5 was for me working well
But now as I've made the update once, it looks like the compiler do not let me compile in version 5 anymore.
An idea ?
It was Version 5 that had the issue, so I got you to change to version 4:
medelec35 wrote:
Change the New Revision number from 5 to 4 then select Download
Re: 28/04/2020 update
Posted: Tue May 05, 2020 9:09 am
by Marc-WP
Hi medelec35
In fact the values are wrong.
Please find a program that is corrupted by version 6 and do not accept to be re-compiled with version 5
(i am sending it in V5)
Re: 28/04/2020 update
Posted: Tue May 05, 2020 11:47 am
by medelec35
Marc-WP wrote:(i am sending it in V5)
It does not matter what version you send it in with as the versions are used at the compile stage only.
Therefore if you create with v5 and I have v6, then when I compile, it will compile with v6.
I have all the latest files as not rolled back to any previous versions.
Compiles for me okay:
Code: Select all
Launching the compiler...
D:\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "CDE MOTEUR+LEDS PAR BLE2" "C:\Users\MARTIN~1\DOWNLO~1\" "33EP256MU806"
C:\Users\MARTIN~1\DOWNLO~1>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"D:\Common\Compilers\pic16\batchfiles\..\support\h" -I"D:\Common\Compilers\pic16\batchfiles\" -std=gnu99 "CDE MOTEUR+LEDS PAR BLE2".c -o "CDE MOTEUR+LEDS PAR BLE2".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
CDE MOTEUR+LEDS PAR BLE2.c: In function 'main':
CDE MOTEUR+LEDS PAR BLE2.c:4718:2: warning: passing argument 1 of 'FCD_03361_BluetoothBL0170__GetMACAddress' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:2500:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4721:2: warning: passing argument 1 of 'FCD_047b1_UART1__SendString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:3513:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4769:4: warning: passing argument 1 of 'FCD_03361_BluetoothBL0170__ReadString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:2370:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4772:4: warning: passing argument 1 of 'FCD_047b1_UART1__SendString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:3513:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4776:4: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:124:17: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c: In function 'FCD_03361_BluetoothBL0170__GetMACAddress':
CDE MOTEUR+LEDS PAR BLE2.c:2522:39: warning: Taking the address of 'FCL_RET' may require an extended pointer for this device
CDE MOTEUR+LEDS PAR BLE2.c: In function '_U1RXInterrupt':
coff-cc1.exe: warning: _U1RXInterrupt PSV model not specified for '_U1RXInterrupt';
assuming 'auto_psv' this may affect latency
CDE MOTEUR+LEDS PAR BLE2.c: In function '_INT0Interrupt':
coff-cc1.exe: warning: _INT0Interrupt PSV model not specified for '_INT0Interrupt';
assuming 'auto_psv' this may affect latency
CDE MOTEUR+LEDS PAR BLE2.c: In function '_U2RXInterrupt':
coff-cc1.exe: warning: _U2RXInterrupt PSV model not specified for '_U2RXInterrupt';
assuming 'auto_psv' this may affect latency
CDE MOTEUR+LEDS PAR BLE2.c: At top level:
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FOSCSEL' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FPOR' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
CDE MOTEUR+LEDS PAR BLE2.c:5313:2: warning: '_FAS' definition has been deprecated: consider migrating to #pragma config
. .
Compilation successful!
Launching the linker/assembler...
D:\Common\Compilers\pic16\batchfiles\pic16_C30_link.bat "C:\Users\MARTIN~1\DOWNLO~1\CDE MOTEUR+LEDS PAR BLE2" 33EP256MU806 33E
xc16-ld 1.26 (A)
Program Memory [Origin = 0x200, Length = 0x2aa00]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0x7d2 0xbbb (3003)
.const 0x9d2 0x6c 0xa2 (162)
.text 0xa3e 0x1628 0x213c (8508)
.dinit 0x2066 0x2c 0x42 (66)
Total program memory used (bytes): 0x2ddb (11739) 4%
Ivt Memory [Origin = 0x4, Length = 0x1fc]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.ivt._INT0Interrupt 0x14 0x2 0x3 (3)
.ivt._U1RXInterrupt 0x2a 0x2 0x3 (3)
.ivt._U2RXInterrupt 0x50 0x2 0x3 (3)
Auxflash Memory [Origin = 0x7fc000, Length = 0x3ffa]
section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
Total auxflash memory used (bytes): 0 (0) <1%
Data Memory [Origin = 0x1000, Length = 0x7000]
section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x1000 0 0x38 (56)
.ndata 0x1038 0 0x4 (4)
.bss 0x103c 0 0x78 (120)
.data 0x10b4 0 0x14 (20)
Total data memory used (bytes): 0xc8 (200) <1%
Dynamic Memory Usage
region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x10c8 0x6f38 (28472)
Maximum dynamic memory (bytes): 0x6f38 (28472)
Generating HEX file
C:\Users\MARTIN~1\DOWNLO~1>xc16-bin2hex -omf=coff "C:\Users\MARTIN~1\DOWNLO~1\CDE MOTEUR+LEDS PAR BLE2".cof
.
Generating Assembler file
C:\Users\MARTIN~1\DOWNLO~1>xc16-objdump -omf=coff -S "C:\Users\MARTIN~1\DOWNLO~1\CDE MOTEUR+LEDS PAR BLE2".cof 1>"C:\Users\MARTIN~1\DOWNLO~1\CDE MOTEUR+LEDS PAR BLE2".asm
HEX file creation successful!
FINISHED
Make sure your Flowcode is fully up to-date with the latest versions and compile.
Re: 28/04/2020 update
Posted: Tue May 05, 2020 2:23 pm
by Marc-WP
Hi Medelec35
Thank's for your time...
This is my version:
Flowcode V8.2.2.15
And this is the copiler message i have
Code: Select all
Target folder: C:\Users\marc\DOCUME~1\A-FILE~1\ALL-IN~1\DOED8F~1\MICROC~1\WATTPARK\ACONSE~1
Source name: C:\Users\marc\Documents\A-files-new\ALL-IN-FACTORY\Dossier- Flowcode 8\MICROCHIP\WATTPARK\aCONSERVER\CDE MOTEUR+LEDS PAR BLE2.fcfx
Title:
Description:
Device: PIC16.33E.33EP256MU806
Generated by: Flowcode v8.2.2.15
Date: Tuesday, May 05, 2020 15:18:39
Users: 1
Registered to: xxxxx
License key: xxxxx
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat "CDE MOTEUR+LEDS PAR BLE2" "C:\Users\marc\DOCUME~1\A-FILE~1\ALL-IN~1\DOED8F~1\MICROC~1\WATTPARK\ACONSE~1\" "33EP256MU806"
C:\Users\marc\DOCUME~1\A-FILE~1\ALL-IN~1\DOED8F~1\MICROC~1\WATTPARK\ACONSE~1>xc16-gcc -c -mcpu="33EP256MU806" -omf=coff -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "CDE MOTEUR+LEDS PAR BLE2".c -o "CDE MOTEUR+LEDS PAR BLE2".o
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:107:0,
from CDE MOTEUR+LEDS PAR BLE2.c:791:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:54:19: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Enable_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:54:39: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:54:1: warning: data definition has no type or storage class
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:54:1: warning: type defaults to 'int' in declaration of 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:55:24: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Sample_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:55:44: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:55:1: warning: data definition has no type or storage class
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:55:1: warning: type defaults to 'int' in declaration of 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:55:1: error: conflicting types for 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:54:1: note: previous declaration of 'CALFUNCTION' was here
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:56:19: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Disable_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:56:40: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:56:1: warning: data definition has no type or storage class
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:56:1: warning: type defaults to 'int' in declaration of 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1636:20: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Enable_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1636:40: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1636:2: warning: return type defaults to 'int'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'CALFUNCTION':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1847:8: error: 'Channel' undeclared (first use in this function)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1847:8: note: each undeclared identifier is reported only once for each function it appears in
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: At top level:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1961:25: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Sample_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1961:45: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1961:2: warning: return type defaults to 'int'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1961:2: error: conflicting types for 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1636:2: note: previous definition of 'CALFUNCTION' was here
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: In function 'CALFUNCTION':
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1961:2: error: parameter name omitted
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c: At top level:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:2002:20: error: expected declaration specifiers or '...' before 'FC_CAL_ADC_Disable_'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:2002:41: error: expected declaration specifiers or '...' before '(' token
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:2002:2: warning: return type defaults to 'int'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:2002:2: error: redefinition of 'CALFUNCTION'
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_ADC.c:1636:2: note: previous definition of 'CALFUNCTION' was here
CDE MOTEUR+LEDS PAR BLE2.c: In function 'main':
CDE MOTEUR+LEDS PAR BLE2.c:4718:2: warning: passing argument 1 of 'FCD_03361_BluetoothBL0170__GetMACAddress' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:2500:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4721:2: warning: passing argument 1 of 'FCD_047b1_UART1__SendString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:3513:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4769:4: warning: passing argument 1 of 'FCD_03361_BluetoothBL0170__ReadString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:2370:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4772:4: warning: passing argument 1 of 'FCD_047b1_UART1__SendString' discards qualifiers from pointer target type
CDE MOTEUR+LEDS PAR BLE2.c:3513:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
CDE MOTEUR+LEDS PAR BLE2.c:4776:4: warning: passing argument 1 of 'FCI_GETCHAR' discards qualifiers from pointer target type
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:124:17: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
Error returned from [xc16-gcc.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1
Autoclose turned off
FINISHED
Re: 28/04/2020 update
Posted: Tue May 05, 2020 2:56 pm
by medelec35
You're welcome.
I have placed the compiler messaged within a code block so it takes up less room on the post.
Can you go to C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC16BIT
From there upload PIC16BIT_CAL_ADC.c, so I can take a look at it.
Re: 28/04/2020 update
Posted: Tue May 05, 2020 4:13 pm
by Marc-WP
Can you please tell me more about what you want me to do. I do not understand .

I can upload the file but cannot send it to you because of it's size...
Re: 28/04/2020 update
Posted: Tue May 05, 2020 4:32 pm
by medelec35
I'm only asking for one file called
PIC16BIT_CAL_ADC.c
You can find it within
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC16BIT folder.
Its 88KB which is very small:
Re: 28/04/2020 update
Posted: Tue May 05, 2020 4:51 pm
by Marc-WP
Here it is
Re: 28/04/2020 update
Posted: Tue May 05, 2020 5:05 pm
by medelec35
That has confirmed my suspicion,
You are tying to compile with an outdated file.
You need to Select
Help,
Check for Updates
Make sure
Show Up to-date filesis un-ticked this time.
You should see:
.
Select
Download
After download has completed, exit from Update window.
Select the
Reload icon which is in between
Open and
save.
Re: 28/04/2020 update
Posted: Tue May 05, 2020 6:13 pm
by Marc-WP
Unfortunately, it's what i've done already several times. I will try to rebuild the program without the ADC and re-integrate it after step by step.
Many thanks for your help.Marc_WP
Re: 28/04/2020 update
Posted: Tue May 05, 2020 6:35 pm
by medelec35
What happens when you do the update?
Also what version do you see for PIC16BIT_CAL_ADC.c if you select Show Up to-date files?
As a last resort to get you going, you can replace PIC16BIT_CAL_ADC.c living in C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC16BIT folder with the attached file.
You must use reload, or restart Flowcode for effects to take place.
Re: 28/04/2020 update
Posted: Tue May 05, 2020 9:37 pm
by Marc-WP
I made it , then ADC appears in version 6 and the program compiles .. But values read on the potentiometer are corrupted ... If I use an old HEX file that was not compiled with the new version (6) the values are OK..I'm getting a headache with this...
Re: 28/04/2020 update
Posted: Tue May 05, 2020 10:10 pm
by Marc-WP
I've made a last test ...for this evening... and have load ADC version 4 .....then it works again.... ( compiling and prog )
Understands who can ...

Re: 28/04/2020 update
Posted: Tue Oct 27, 2020 10:23 am
by Marc-WP
A short message to report that the ADC module in version 7 is not working... I'm still in version 4.