unable to compile error

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

Post Reply
lounginghound
Posts: 5
Joined: Wed Aug 29, 2012 3:35 am

unable to compile error

Post 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
Attachments
RF_Test_TX.fcf_avr
(12.25 KiB) Downloaded 273 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: unable to compile error

Post 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.

lounginghound
Posts: 5
Joined: Wed Aug 29, 2012 3:35 am

Re: unable to compile error

Post 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

Post Reply