problem in compiling to hex

For C and ASSEMBLY users to post questions and code snippets for programming in C and ASSEMBLY. And for any other C or ASM course related questions.

Moderators: Benj, Mods

Post Reply
rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

problem in compiling to hex

Post by rags »

i am using flow code for AVR v4...am not able to compile to hex format.
i am getting errors...

this is wat i got when i compiled

Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode AVR V4\Tools\MX_bats\avra.bat atmega32 "F:\resh\RFIDPR~1\new_rfid_imported.elf" "F:\resh\RFIDPR~1\new_rfid_imported.c" "F:\resh\RFIDPR~1\new_rfid_imported.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


please help very urgent!!!

thanks in advance!!

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: problem in compiling to hex

Post by Benj »

Hello,

Can you post up your program and we will have a quick look for you. Looks like the compiler is either not generating any messages or is bailing out for some reason.

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

Re: problem in compiling to hex

Post by rags »

hello sir,
i have just attached a simple program. at times it works initially..later it doesnt work for me!
Attachments
temp.fcf_avr
simple adc interface
(6.5 KiB) Downloaded 454 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: problem in compiling to hex

Post by Benj »

Hello,

We came across this problem in another forum topic. I will have a hunt around and see if I can find it.

Basically if you upgrade your Flowcode project folder into a library in win7 or use the my documents folder which is already a library in win7 then the problem should disappear. I think it related to some bug in Windows where the compiler cannot always access the source C file and therefore it falls over.

Edit: Here is the previous topic.
http://www.matrixmultimedia.com/mmforum ... 34&p=22161

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

Re: problem in compiling to hex

Post by rags »

is there any way to over come this?? cause am not able to do my project because of this??

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: problem in compiling to hex

Post by Benj »

Is using the "my documents" folder not an option for you?

Are you using Windows 7? What about creating your own library?

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

Re: problem in compiling to hex

Post by rags »

yes sir i am using windows 7 only..! should i save my programms in my documents????

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: problem in compiling to hex

Post by Benj »

Yes, using your my documents folder should solve the problem.

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

HELP for TIMERS in FLOWCODE AVR

Post by rags »

hello..is there any good tutorial to learn timers of AVR atmega32 using flowcode...

rags
Posts: 29
Joined: Thu Dec 22, 2011 5:33 pm
Has thanked: 1 time
Contact:

Re: problem in compiling to hex

Post by rags »

even after saving in my documents i still have the same problem what do i do now?? am not able to continue with my project further !!

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: problem in compiling to hex

Post by JonnyW »

Hello. This isn't really a fix unfortunately, but when looking into this issue a while ago I seem to remember the bug (which is a threading issue between Flowcode and the launched .bat file), if present, persisted for the lifetime of Flowcode.

If Flowcode was restarted without the bug, then it would work while it was open. If Flowcode was restarted and the bug showed up, only a restart of Flowcode would make it go away.

I'm sorry this isn't much help, but with obscure bugs like this its difficult to replicate it and therefore fix the problem, I'm afraid.

Jonny

Post Reply