Compiling error 0x1 with Atmel-ICE to Atmega328p

Use this section to discuss your embedded Flowcode projects.
Post Reply
earlybird
Posts: 2
http://meble-kuchenne.info.pl
Joined: Fri Dec 18, 2020 10:04 pm

Compiling error 0x1 with Atmel-ICE to Atmega328p

Post by earlybird »

FlowCode11
I can not load the Atmega328p using programmer Atmel-ICE.
Every time appears:

Compiling error code 0x1
and
Compiling error code 0x3

attached an overview of my Configuration and Compiler-Options
I woul’d be very grateful any one can help me
Attachments
FlowCode11_Atmega328_01.pdf
(159.3 KiB) Downloaded 8 times
Atmega328_74HC4053_01.pdf
(103.84 KiB) Downloaded 9 times

BenR
Matrix Staff
Posts: 2343
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 647 times
Been thanked: 856 times

Re: Compiling error 0x1 with Atmel-ICE to Atmega328p

Post by BenR »

Hello,

You seem to have overwritten the settings for the compiler to AVRdude which should be used for the programmer. This will break your compilation.

Please go back into the compiler options, select the AVR -> E-Blocks option, check the Standard-Compiler option checkbox and click OK.

Now click the Build -> Compile to hex option and the project should compile.

If this compiles ok then you could try and use the AVRdudess software to manually send the hex file. If this works ok then you can alter the AVRdude settings in the programmer tab of the compiler options, leaving the compiler and linker tabs as they are.

If you're still having problems compiling using the E-Blocks setting then please attach your Flowcode .fcfx project file as well as the .msg.txt file that's generated.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

earlybird
Posts: 2
Joined: Fri Dec 18, 2020 10:04 pm

Re: Compiling error 0x1 with Atmel-ICE to Atmega328p

Post by earlybird »

FC11_Atmega328_Forum_01.pdf
(124.24 KiB) Downloaded 6 times
Attachments
Flowcode_20261001_ICE_01.fcfx
(7.07 KiB) Downloaded 4 times
(view online)
FC11_Atmega328_Forum_01.pdf
(124.24 KiB) Downloaded 7 times

BenR
Matrix Staff
Posts: 2343
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 647 times
Been thanked: 856 times

Re: Compiling error 0x1 with Atmel-ICE to Atmega328p

Post by BenR »

Hi,

Ok so compilation to hex is now working great.

The next step is to work out the settings for your specific programmer.

There is a front end tool for AVRdude called AVRdudess and it can be downloaded from here.
https://blog.zakkemble.net/avrdudess-a-gui-for-avrdude/

You can use it standalone to transfer your Flowcode hex file onto your device.

Once you have it working we can try and work out command line parameters for Flowcode so the compile to chip will directly call AVRdude with the right parameters.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel

Post Reply