ERROR COMPONENT FAT 1

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

ERROR COMPONENT FAT 1

Post by RLOPES780 »

I must use the componte FAT1.
When I start it in this program have attached compiler error.
Could someone help me?

Ricardo
Attachments
NANO_FINAL.fcfx
(1.74 MiB) Downloaded 347 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by Benj »

Hello,

The only compile errors I am getting on your project relate to the DS1307 component, looks like a parameter has been added/removed.

What errors are you getting?

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by RLOPES780 »

Hello Benj.

I'm not a programming expert (but I'm running behind), so my insecurity is my project (program) or is the component.
Just know that when I remove the FAT1 component and compile problem does not return.
But when I add the componete FAT1 and initialize got compilation error.
With text messages attached.

Ricardo.
Attachments
messages compiler error.txt
(5.53 KiB) Downloaded 333 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by Benj »

Hello Ricardo,

The problem is not related to the FAT component, it seems you may be running out of program memory.
C:\Users\RICARDO\Desktop\NOVAPA~1\NANO_FINAL.o(.text+0x10086):C:\Users\RICARDO\Desktop\NOVAPA~1\NANO_FINAL.c: Link Error: PC Relative branch to '_FC_CAL_Port_In_DDR__x' is out of range. Suggest large-code model.
DO\Desktop\NOVAPA~1\NANO_FINAL.o(.text+0x10e30):C:\Users\RICARDO\Desktop\NOVAPA~1\NANO_FINAL.c: Link Error: PC Relative branch to '_Wdt_Delay_Ms' is out of range. Suggest large-code model.
C:\Users\RICARDO\Desktop\NOVAPA~1\NANO_FINAL.o(.text+0x10e42):C:\Users\RICARDO\Desktop\NOVAPA~1\NANO_FINAL.c: Link Error: PC Relative branch to '_Wdt_Delay_Ms' is out of range. Suggest large-code model.
The compiler seems to be suggesting to change one of the compiler options to the large code model. Presumably you have gone over a threshold on what the standard code model can do. I will have a quick look and see if I can work out how this is done.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by Benj »

Hello Ricardo,

Switching on the large-codemodel seems fairly simple.

First go to this directory on your computer.

C:\Program Files (x86)\Flowcode 6\compilers\pic16\batchfiles

Make a copy of the file pic16_C30_comp.bat by copying the file and saving it in a safe place.

Next copy the attached file into the batchfiles folder and this forces the compiler to use the large-code model.
pic16_C30_comp.bat
(515 Bytes) Downloaded 360 times
If you need to go back at any point then simply swap the files back.

Let me know how you get on.

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by RLOPES780 »

Hello Benj!

It worked.
Was several days this problem, could not compile.
Now compiled and recorded on the chip and everything ok.

Thank you;

Ricardo.

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by RLOPES780 »

Hello Benj;

I bought Flowcode V7 and I'm having the same build problem I had in V6 version. Do you have the bat_large file for V7 version?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by Benj »

Here you go this should work with Flowcode v7.

The file lives in the "Flowcode 7\compilers\pic16\batchfiles" folder.
pic16_C30_comp.bat
(504 Bytes) Downloaded 314 times

RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by RLOPES780 »

Hello Benj;

First of all, thank you for sending me the file.
But I still have a problem.
With this program that is attached.
When compiling in version V6 with bat_large this is all ok.
When compiling the same program in version V7 with bat_large I have an error.


Target folder: C:\Users\RICARDO\Desktop\NANO_7
Source name: C:\Users\RICARDO\Desktop\NANO_7\NANO VAZAO 7.fcfx
Title:
Description:
Device: PIC16.33E.33EP512MU810
Generated by: Flowcode v7.1.1.0
Date: Thursday, November 24, 2016 23:11:37
Users: 1
Registered to: RLOPES780
Licence key: KU0K66
NÃO PARA USO COMERCIAL
http://www.matrixtsl.com
Iniciando o compilador …
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_comp.bat "NANO VAZAO 7" "C:\Users\RICARDO\Desktop\NANO_7\" "33EP512MU810"
Launching compiler...

C:\Users\RICARDO\Desktop\NANO_7>xc16-gcc -c -mcpu="33EP512MU810" -omf=coff -funsigned-char -fno-short-double -Os -mlarge-code -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~1\FLOWCO~1\COMPIL~1\pic16\BATCHF~1\" -std=gnu99 "NANO VAZAO 7".c -o "NANO VAZAO 7".o
Options have been disabled due to restricted license
Visit http://www.microchip.com/ to purchase a new key.
NANO VAZAO 7.c: In function 'FCM_CRIADIRETORIO':
NANO VAZAO 7.c:25011:2: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadDate' discards qualifiers from pointer target type
NANO VAZAO 7.c:3221:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25016:2: warning: passing argument 1 of 'FCI_RIGHTSTRING' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:209:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25016:2: warning: passing argument 4 of 'FCI_RIGHTSTRING' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:209:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25020:2: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTime' discards qualifiers from pointer target type
NANO VAZAO 7.c:1579:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25025:2: warning: passing argument 1 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:838:13: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25025:2: warning: passing argument 3 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:838:13: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25025:2: warning: passing argument 5 of 'FCI_SHEAD' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:838:13: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25045:2: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25088:4: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:688:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:25093:4: warning: passing argument 1 of 'FCI_STRING_TO_INT' discards qualifiers from pointer target type
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_String.c:688:18: note: expected 'MX_STRING' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c: In function 'FCM_VER_HORA_DTL':
NANO VAZAO 7.c:29793:2: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTime' discards qualifiers from pointer target type
NANO VAZAO 7.c:1579:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:29801:2: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c: In function 'FCM_ATIVA_DTL':
NANO VAZAO 7.c:59109:5: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadDate' discards qualifiers from pointer target type
NANO VAZAO 7.c:3221:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:59117:5: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:59229:9: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTime' discards qualifiers from pointer target type
NANO VAZAO 7.c:1579:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:59237:9: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c: In function 'FCM_ROTVISU_DATA_HORA':
NANO VAZAO 7.c:60078:3: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTime' discards qualifiers from pointer target type
NANO VAZAO 7.c:1579:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60086:3: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60185:3: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadDate' discards qualifiers from pointer target type
NANO VAZAO 7.c:3221:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60193:3: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60292:3: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTime' discards qualifiers from pointer target type
NANO VAZAO 7.c:1579:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60296:3: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadTemperature' discards qualifiers from pointer target type
NANO VAZAO 7.c:1008:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:60304:3: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c: In function 'FCM_VER_DATA_DTL':
NANO VAZAO 7.c:70155:2: warning: passing argument 1 of 'FCD_0d1f1_DS3231__ReadDate' discards qualifiers from pointer target type
NANO VAZAO 7.c:3221:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
NANO VAZAO 7.c:70163:2: warning: passing argument 1 of 'FCD_04071_DISPLAY__PrintString' discards qualifiers from pointer target type
NANO VAZAO 7.c:5019:6: note: expected 'MX_CHAR *' but argument is of type 'volatile MX_CHAR *'
In file included from C:\Program Files\Flowcode 7\CAL\internals.c:174:0,
from NANO VAZAO 7.c:48:
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_Float.c: In function 'float32_is_signaling_nan':
C:\Program Files\Flowcode 7\CAL\/PIC16BIT\PIC16BIT_CAL_Float.c:91:18: warning: Taking the address of 'f' may require an extended pointer for this device
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

NANO VAZAO 7.c: At top level:
NANO VAZAO 7.c:79253:1: warning: '_FGS' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FOSCSEL' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FOSC' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FWDT' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FPOR' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FICD' definition has been deprecated: consider migrating to #pragma config
NANO VAZAO 7.c:79253:1: warning: '_FAS' definition has been deprecated: consider migrating to #pragma config

Compilation successful!
Completed compilation, return = 0

Iniciando o linker/assembler…
C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat "C:\Users\RICARDO\Desktop\NANO_7\NANO VAZAO 7" 33EP512MU810 33E
.

c:\progra~1\flowco~1\compil~1\pic16\bin\bin\..\bin/elf-ld.exe:C:\Users\RICARDO\Desktop\NANO_7\NANO VAZAO 7.o: file format not recognized; treating as linker script
c:\progra~1\flowco~1\compil~1\pic16\bin\bin\..\bin/elf-ld.exe:C:\Users\RICARDO\Desktop\NANO_7\NANO VAZAO 7.o:1: syntax error

Error returned from [xc16-gcc.exe]

C:\Program Files\Flowcode 7\compilers\pic16\batchfiles\pic16_C30_link.bat reportar código de erro 1



TERMINADO
Attachments
NANO VAZAO 7.c
(2.07 MiB) Downloaded 309 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: ERROR COMPONENT FAT 1

Post by Benj »

Sorry,

I've recently had to change the compiler and linker. Looks like you also need the modified linker to allow this to function.
pic16_C30_link.bat
(1.49 KiB) Downloaded 335 times
Let me know how you get on.

Post Reply