Code::Blocks Forums

User forums => Help => Topic started by: cgriffin on December 11, 2013, 11:21:31 pm

Title: Compiles fine but Arduino Builder gives Error code:1 Error generating HEX file
Post by: cgriffin on December 11, 2013, 11:21:31 pm
I run codeblocks and as long as I select new project and build the example or my project straight away, it works when I try to push it to the Arduino. However if I save the project and reopen it I get "Error code:1 Error generating HEX file" from Arduino Builder.   Even when using the code that compiled and went fine when codeblocks was first launched. 



I'm using GNU AVR compiler and codeblocks 12.11 on a windows 7 machine.   Like I said everything works fine until I try to upload to the Arduino but only for saved projects.  New projects will work and the hex is sent properly but just once.
Title: Re: Compiles fine but Arduino Builder gives Error code:1 Error generating HEX file
Post by: oBFusCATed on December 11, 2013, 11:23:32 pm
Are you sure the uploader is finishing correctly and thus releasing the lock on the hex file?
Can you delete it in the explorer?
Title: Re: Compiles fine but Arduino Builder gives Error code:1 Error generating HEX file
Post by: cgriffin on December 12, 2013, 05:54:09 am
Yes it seems to,   I actually figured out a workaround.  This only happens when Arduino Builder is launched from within codeblocks.  If I launch the two independently both work as advertised.  I am satisfied now that I have a workable solution.