Unable To Compile

Please add any bug reports that require discussion here

Moderator: Benj

Forum rules
Only bug reports will be considered here. General questions should not be posted in this forum.
Post Reply
User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Unable To Compile

Post by JohnCrow »

I have still not been able to get FC6 to compile for anything but PIC8.
Ive tried installing the new open beta and the patch file on a clean system that has never had FC6 installed, and get the same results.
Also as in my earlier post, im not able to even save an AVR flowchart.

Simulations all work ok.

Ive attached a set of flowcharts for each device and the corresponding error files etc.
In the case of the AVR, I've attached the file that the system created along with the crash screen shot.
TestFiles.zip
Test Files
(153.45 KiB) Downloaded 203 times
1 in 10 people understand binary, the other one doesn't !

medelec35
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: Unable To Compile

Post by medelec35 »

Hi John,
The ARM version compiles ok:

Code: Select all

Device:        ARM.AT91SAM7S.ECIOARM
Generated by:  Flowcode v6.0.0.57
Date:          Sunday, August 18, 2013 13:16:00
Users:         0
      ***UNREGISTERED***
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\arm\batchfiles\arm7comp.bat  "ARM_ECIO_HelloWorld" "C:\FROMJO~2\ARM_EC~1\"
Launching compiler...
..............................
ARM_ECIO_HelloWorld.c: In function 'FCD_0709_LCD__PrintString':
ARM_ECIO_HelloWorld.c:152: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
ARM_ECIO_HelloWorld.c: In function 'FCD_0709_LCD__PrintNumber':
ARM_ECIO_HelloWorld.c:198: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
ARM_ECIO_HelloWorld.c: In function 'FCD_0709_LCD__ScrollDisplay':
ARM_ECIO_HelloWorld.c:412: warning: comparison is always true due to limited range of data type
....................

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\arm\batchfiles\arm7link.bat  "ARM_ECIO_HelloWorld" at91sam7s128

C:\FROMJO~2\ARM_EC~1>arm-elf-gcc -mcpu=arm7tdmi -O2 -Wall "C:\PROGRA~2\FLOWCO~4\COMPIL~1\arm\BATCHF~1\..\Global\Cstartup.o"  "ARM_ECIO_HelloWorld".o -lm -aln="ARM_ECIO_HelloWorld".lst --output "ARM_ECIO_HelloWorld".elf -nostartfiles  -T"C:\PROGRA~2\FLOWCO~4\COMPIL~1\arm\BATCHF~1\..\Global\at91sam7s128-ROM.ld" -L"C:\PROGRA~2\FLOWCO~4\COMPIL~1\arm\BATCHF~1\..\arm-elf\lib" -L"C:\PROGRA~2\FLOWCO~4\COMPIL~1\arm\BATCHF~1\..\lib\gcc\arm-elf\4.0.1" 
........................

C:\FROMJO~2\ARM_EC~1>arm-elf-objcopy -O ihex "ARM_ECIO_HelloWorld".elf "ARM_ECIO_HelloWorld".hex 
.................

C:\FROMJO~2\ARM_EC~1>arm-elf-objcopy -Osrec --srec-forceS3 "ARM_ECIO_HelloWorld".elf "ARM_ECIO_HelloWorld".s19 

s19 file creation successful!

C:\FROMJO~2\ARM_EC~1>hex2bin "ARM_ECIO_HelloWorld".hex 
hex2bin v1.0.1, Copyright (C) 1999 Jacques Pelletier
Lowest address = 00002000
Highest address = 00006137

BIN file creation successful!

C:\FROMJO~2\ARM_EC~1>arm-elf-readelf -s "ARM_ECIO_HelloWorld".elf  1>"ARM_ECIO_HelloWorld".fkt 
.............................

ICD file creation successful!


FINISHED
The AVR version does not load for me.
I just get:
AVR version.png
(16.63 KiB) Downloaded 3576 times
The PIC16 version does not compile for me either:

Code: Select all

Device:        PIC16.30F.30F3014
Generated by:  Flowcode v6.0.0.57
Date:          Sunday, August 18, 2013 13:25:54
Users:         0
      ***UNREGISTERED***
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic16\batchfiles\pic16_C30_comp.bat  "PIC16_HelloWorld" "C:\FROMJO~2\PIC16_~1\" "30F3014"
Launching compiler...

C:\FROMJO~2\PIC16_~1>pic30-gcc -c -mcpu="30F3014" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "PIC16_HelloWorld".c -o "PIC16_HelloWorld".o 
................................
PIC16_HelloWorld.c:31: error: syntax error before numeric constant
PIC16_HelloWorld.c:31: warning: type defaults to 'int' in declaration of '_FBS'
PIC16_HelloWorld.c:31: warning: data definition has no type or storage class
PIC16_HelloWorld.c:32: error: syntax error before numeric constant
PIC16_HelloWorld.c:32: warning: type defaults to 'int' in declaration of '_FGS'
PIC16_HelloWorld.c:32: warning: data definition has no type or storage class
PIC16_HelloWorld.c:33: error: syntax error before numeric constant
PIC16_HelloWorld.c:33: warning: type defaults to 'int' in declaration of '_FOSCSEL'
PIC16_HelloWorld.c:33: warning: data definition has no type or storage class
PIC16_HelloWorld.c:34: error: syntax error before numeric constant
PIC16_HelloWorld.c:34: warning: type defaults to 'int' in declaration of '_FOSC'
PIC16_HelloWorld.c:34: warning: data definition has no type or storage class
PIC16_HelloWorld.c:35: error: syntax error before numeric constant
PIC16_HelloWorld.c:35: warning: type defaults to 'int' in declaration of '_FWDT'
PIC16_HelloWorld.c:35: warning: data definition has no type or storage class
PIC16_HelloWorld.c:36: error: syntax error before numeric constant
PIC16_HelloWorld.c:36: warning: type defaults to 'int' in declaration of '_FPOR'
PIC16_HelloWorld.c:36: warning: data definition has no type or storage class
PIC16_HelloWorld.c:37: error: syntax error before numeric constant
PIC16_HelloWorld.c:37: warning: type defaults to 'int' in declaration of '_FICD'
PIC16_HelloWorld.c:37: warning: data definition has no type or storage class
In file included from c:/progra~2/flowco~4/compil~1/pic16/bin/bin/../../include/../support/30F/h/p30fxxxx.h:46,
                 from PIC16_HelloWorld.c:40:
c:/progra~2/flowco~4/compil~1/pic16/bin/bin/../../include/../support/30F/h/p30F3014.h:2625: error: '_FOSC' redeclared as different kind of symbol
PIC16_HelloWorld.c:34: error: previous declaration of '_FOSC' was here
c:/progra~2/flowco~4/compil~1/pic16/bin/bin/../../include/../support/30F/h/p30F3014.h:2703: error: '_FWDT' redeclared as different kind of symbol
PIC16_HelloWorld.c:35: error: previous declaration of '_FWDT' was here
c:/progra~2/flowco~4/compil~1/pic16/bin/bin/../../include/../support/30F/h/p30F3014.h:2856: error: '_FGS' redeclared as different kind of symbol
PIC16_HelloWorld.c:32: error: previous declaration of '_FGS' was here
PIC16_HelloWorld.c: In function 'FCD_0771_LCD__PrintString':
PIC16_HelloWorld.c:156: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
PIC16_HelloWorld.c: In function 'FCD_0771_LCD__PrintAscii':
PIC16_HelloWorld.c:180: warning: unused variable 'FCL_X'
PIC16_HelloWorld.c: In function 'FCD_0771_LCD__PrintNumber':
PIC16_HelloWorld.c:202: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
PIC16_HelloWorld.c: In function 'FCD_0771_LCD__ClearLine':
PIC16_HelloWorld.c:263: warning: unused variable 'FCL_NUMCOLS'
PIC16_HelloWorld.c:262: warning: unused variable 'FCL_NUMROWS'
PIC16_HelloWorld.c: In function 'FCD_0771_LCD__ScrollDisplay':
PIC16_HelloWorld.c:416: warning: comparison is always true due to limited range of data type
PIC16_HelloWorld.c:416: warning: suggest parentheses around comparison in operand of &

Error returned from [pic30-gcc.exe]
Completed compilation, return = 1

C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic16\batchfiles\pic16_C30_comp.bat reported error code 1


FINISHED
I have just created an AVR version, which compiles OK for me:

Code: Select all

Device:        AVR.ATTINY.ATTINY88
Generated by:  Flowcode v6.0.0.57
Date:          Sunday, August 18, 2013 14:04:06
Users:         0
      ***UNREGISTERED***
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\avr\batchfiles\avra.bat  attiny88 "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.c" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.lst"
Launching compiler...

C:\FROMJO~2\PIC16_~1>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=attiny88 -Os -funsigned-char -o "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.c" -lm 

C:\FROMJO~2\PIC16_~1>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf"  1>"C:\FROMJO~2\PIC16_~1\Hellow world AVR.lst" 

C:\FROMJO~2\PIC16_~1>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" 
   text	   data	    bss	    dec	    hex	filename
   1652	     12	     22	   1686	    696	C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\avr\batchfiles\avrb.bat  "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.hex" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.cof"

C:\FROMJO~2\PIC16_~1>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom  "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.hex" 

HEX file creation successful!

C:\FROMJO~2\PIC16_~1>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom  "C:\FROMJO~2\PIC16_~1\Hellow world AVR.elf" "C:\FROMJO~2\PIC16_~1\Hellow world AVR.cof" 

COFF file creation successful!


FINISHED


Maybe you could see if it loads for you?
Attachments
Hellow world AVR.fcfx
(4.25 KiB) Downloaded 219 times
Martin

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Unable To Compile

Post by JohnCrow »

Hi Martin

My AVR had'nt saved correctly, as it caused a crash.
Tried your file and it gives errors on compile
Hellow world AVR.zip
(6.8 KiB) Downloaded 216 times
1 in 10 people understand binary, the other one doesn't !

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Unable To Compile

Post by dazz »

Hi Guys
AVR Compiles to hex fine on my system ,if i compile to chip it also creates hex and correctly identifies i havent got a programmer connected, msg for hex attached(AVR)
ARM compile to bin fine
Pic16 messages as per johns

Regards
Dazz

Code: Select all

Target folder: C:\Users\Wendy1\Desktop\New folder (5)
Source name:   C:\Users\Wendy1\Desktop\Down\Hellow world AVR\Hellow world AVR.fcfx
Title:         
Description:   
Device:        AVR.ATTINY.ATTINY88
Generated by:  Flowcode v6.0.0.57
Date:          Sunday, August 18, 2013 13:52:29
Users:         0
      ***UNREGISTERED***
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\avr\batchfiles\avra.bat  attiny88 "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.c" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.lst"
Launching compiler...

C:\Users\Wendy1\Desktop\New folder (5)>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=attiny88 -Os -funsigned-char -o "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.c" -lm 

C:\Users\Wendy1\Desktop\New folder (5)>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf"  1>"C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.lst" 

C:\Users\Wendy1\Desktop\New folder (5)>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" 
   text	   data	    bss	    dec	    hex	filename
   1652	     12	     22	   1686	    696	C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\avr\batchfiles\avrb.bat  "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.hex" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.cof"

C:\Users\Wendy1\Desktop\New folder (5)>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom  "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.hex" 

HEX file creation successful!

C:\Users\Wendy1\Desktop\New folder (5)>"C:\PROGRA~2\FLOWCO~4\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom  "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.elf" "C:\Users\Wendy1\Desktop\New folder (5)\Hellow world AVR.cof" 

COFF file creation successful!


FINISHED
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

medelec35
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: Unable To Compile

Post by medelec35 »

John,
I have noticed your not compiling on the same drive as Flowcode V6 installation.
Is H a flash drive or partitioned Main hardrive or even a separate hardrive ?

Have you tried placing AVR on C drive, then compiling?
Martin

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Unable To Compile

Post by JohnCrow »

Hi Martin

H Drive is a logical partition on a seperate physical hard drive.(All my flowcode and other microcontroller stuff)
I have windows and my programs on a SSD (C drive) and then 2 multi partioned hard drives with my data stores on them.

Just tried making a folder on C drive, copying the FC6 files to that and compilling. Get the same errors.
Its the crash when I try to save an AVR file that is the most concerning, especially as its doing it on the laptop as well, which is a totally clean install off FC6 open beta with no other matrix software installed at all.
I dont think that is down to a licence problem.

Think I'll download the install file again and try a fresh setup, just in case it has any corruption.
1 in 10 people understand binary, the other one doesn't !

medelec35
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: Unable To Compile

Post by medelec35 »

Hi John,
I have an idea for you to try.
If you go to:
http://www.nirsoft.net/utils/hash_my_files.html
Scroll down to
Download HashMyFiles
or
Download HashMyFiles for 64-bit systems

Then you can save it then run it and load any file at all.
They could be msi, zip exe etc
Just load the FlowcodeV6_Beta_Release_Setup.msi
and see if its the same as mine:
CRC Check.png
(30.09 KiB) Downloaded 3552 times
So long as MD5 or CRC are the same as mine, then your file is not corrupt.
If it's different to my CRC or MD5 then it is corrupt.

Martin
Martin

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Unable To Compile

Post by JohnCrow »

Thanks Martin
Id allready tried a new install, but just checked the hash and its the same as yours
1 in 10 people understand binary, the other one doesn't !

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Unable To Compile

Post by kersing »

Martin,

Compilation fails (with an empty flowchart) for the 30F3014 for me as well. Could you try the 33FJ128GP708? I'm not getting any compilation errors with that target.

Regards,

Jac
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

medelec35
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: Unable To Compile

Post by medelec35 »

kersing wrote:Could you try the 33FJ128GP708? I'm not getting any compilation errors with that target.
Hi Jac,
I can confirm that 33FJ128GP708 compiles for me as well.

Code: Select all

Device:        PIC16.33F.33FJ128GP708
Generated by:  Flowcode v6.0.0.57
Date:          Sunday, August 18, 2013 18:17:13
Users:         0
      ***UNREGISTERED***
   NOT FOR COMMERCIAL USE
http://www.matrixmultimedia.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic16\batchfiles\pic16_C30_comp.bat  "Hellow world" "D:\" "33FJ128GP708"
Launching compiler...

D:\>pic30-gcc -c -mcpu="33FJ128GP708" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "Hellow world".c -o "Hellow world".o 
Hellow world.c: In function 'FCD_021_LCD__PrintString':
Hellow world.c:152: warning: pointer targets in passing argument 1 of 'FCI_GETLENGTH' differ in signedness
Hellow world.c: In function 'FCD_021_LCD__PrintAscii':
Hellow world.c:176: warning: unused variable 'FCL_X'
Hellow world.c: In function 'FCD_021_LCD__PrintNumber':
Hellow world.c:198: warning: pointer targets in passing argument 2 of 'FCI_TOSTRING' differ in signedness
Hellow world.c: In function 'FCD_021_LCD__ClearLine':
Hellow world.c:259: warning: unused variable 'FCL_NUMCOLS'
Hellow world.c:258: warning: unused variable 'FCL_NUMROWS'
Hellow world.c: In function 'FCD_021_LCD__ScrollDisplay':
Hellow world.c:412: warning: comparison is always true due to limited range of data type
Hellow world.c:412: warning: suggest parentheses around comparison in operand of &
......................................

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6 Beta\compilers\pic16\batchfiles\pic16_C30_link.bat  "D:\Hellow world" 33FJ128GP708 33F

D:\>pic30-gcc -Wl,"D:\Hellow world".o,-L"C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\C_tools\lib",--heap=256,--report-mem,--script="C:\PROGRA~2\FLOWCO~4\COMPIL~1\pic16\BATCHF~1\..\Support\33F\gld\p33FJ128GP708.gld",-o"D:\Hellow world".cof 
.......................................


Program Memory  [Origin = 0x200, Length = 0x155fe]

section                    address   length (PC units)   length (bytes) (dec)
-------                    -------   -----------------   --------------------
.text                        0x200               0x4e4           0x756  (1878)
.const                       0x6e4                0x14            0x1e  (30)
.text                        0x6f8               0xb3e          0x10dd  (4317)
.dinit                      0x1236                 0x8             0xc  (12)

                     Total program memory used (bytes):         0x185d  (6237) 4%


Data Memory  [Origin = 0x800, Length = 0x4000]

section                    address      alignment gaps    total length  (dec)
-------                    -------      --------------    -------------------
.nbss                        0x800                   0            0x16  (22)
.heap                        0x816                   0           0x100  (256)

                        Total data memory used (bytes):          0x116  (278) 1%


Dynamic Memory Usage

region                     address                      maximum length  (dec)
------                     -------                      ---------------------
heap                         0x816                               0x100  (256)
stack                        0x916                              0x3eea  (16106)

                        Maximum dynamic memory (bytes):         0x3fea  (16362)


D:\>pic30-bin2hex "D:\Hellow world".cof 
..........................

D:\>pic30-objdump -S "D:\Hellow world".cof  1>"D:\Hellow world".asm 
..............................

HEX file creation successful!


FINISHED
Martin

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Unable To Compile

Post by kersing »

Thank you Martin,

It looks like Ben needs to take a look at the definitions for the 30F3014 as an empty flow chart for the device fails to compile.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Unable To Compile

Post by JohnCrow »

I can compile an empty flowchart with that device, but it still fails with the LCD
1 in 10 people understand binary, the other one doesn't !

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Unable To Compile

Post by kersing »

John,

Strange, have you set the configuration for the device? The errors I'm getting are all related to the configuration registers.

Code: Select all

C:\tmp\fc6>pic30-gcc -c -mcpu="30F3014" -funsigned-char -fno-short-double -Os -I"C:\PROGRA~2\FLOWCO~2\COMPIL~1\pic16\BATCHF~1\..\support\h" -I"C:\PROGRA~2\FLOWCO~2\COMPIL~1\pic16\BATCHF~1\..\MX_support" -Wall -std=gnu99 "dspic30f3014test".c -o "dspic30f3014test".o 
dspic30f3014test.c:31: error: syntax error before numeric constant
dspic30f3014test.c:31: warning: type defaults to 'int' in declaration of '_FBS'
dspic30f3014test.c:31: warning: data definition has no type or storage class
dspic30f3014test.c:32: error: syntax error before numeric constant
dspic30f3014test.c:32: warning: type defaults to 'int' in declaration of '_FGS'
dspic30f3014test.c:32: warning: data definition has no type or storage class
dspic30f3014test.c:33: error: syntax error before numeric constant
dspic30f3014test.c:33: warning: type defaults to 'int' in declaration of '_FOSCSEL'
dspic30f3014test.c:33: warning: data definition has no type or storage class
...
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply