Page 1 of 1

unable to compile error

Posted: Fri Mar 08, 2013 4:07 am
by lounginghound
Have a file that was compiling fine, but now it's decided to stop and the error is very non descript.
Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode AVR V4\Tools\MX_bats\avra.bat atmega48 "C:\Users\KensDesk\DOCUME~1\Projects\RF-TES~1\RF_Test_TX.elf" "C:\Users\KensDesk\DOCUME~1\Projects\RF-TES~1\RF_Test_TX.c" "C:\Users\KensDesk\DOCUME~1\Projects\RF-TES~1\RF_Test_TX.lst"

Return code = 1

Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.

FINISHED
I suspect a setting somewhere in the SPI legacy module is the cause, but without anything more specific, I have no idea at what I am looking for.

Any ideas?

Thanks
Ken
The attachment RF_Test_TX.fcf_avr is no longer available

Re: unable to compile error

Posted: Fri Mar 08, 2013 12:47 pm
by Benj
Hi Ken,

If you restart your PC are you able to compile the file correctly again. Maybe the GCC compiler had an error and got stuck in a state that stopped future compilations from running correctly.

I've also seen this issue occur on Windows systems where the file may be being flagged to Windows as should not be edited. Try moving the Flowcode project source file to your "my documents" folder and see if the problem still exists.

Re: unable to compile error

Posted: Sun Mar 24, 2013 8:55 am
by lounginghound
Hi Benj,

Restarting didn't fix the problem. I have ended up upgrading to FC5 and compiling the programs gave me some more details in the C compiler, that enabled me to locate the error.
It was not happy because I had not selected a ADC or Ext. Mem. select bit in the SPI comms module, even though I am not using either of those devices or associated code. I had decided to "un select them" at a point when I was trying to get some code working, thinking this was the possible contention. The compilation error had me going off on a bit of a wild goose chase. Thankfully FC5 has a more significant error detail, however it would be better to have an error flag warning that something is not selected or enabled, prior to trying to compile. Maybe something for a future update?

Thanks