Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » can't build an avr project
can't build an avr project [message #1862678] Wed, 20 December 2023 12:50 Go to next message
Mohanad Magdy is currently offline Mohanad MagdyFriend
Messages: 1
Registered: December 2023
Junior Member
hi, the problem started when i installed the eclipse embedded ide when i had already the eclipse c/c++ ide, the main problem is when i build the project an error occur which is:
avr-gcc.exe the application was unable to start correctly (0xc0000142)
14:23:13 **** Incremental Build of configuration Debug for project test_dio_2 ****
make all
Building file: ../1_DIO/DIO_program.c
Invoking: AVR Compiler
avr-gcc -Wall -g2 -gstabs -O0 -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega32 -DF_CPU=8000000UL -MMD -MP -MF"1_DIO/DIO_program.d" -MT"1_DIO/DIO_program.o" -c -o "1_DIO/DIO_program.o" "../1_DIO/DIO_program.c"
make: *** [1_DIO/DIO_program.o] Error -1073741502
"make all" terminated with exit code 2. Build might be incomplete.

14:23:17 Build Finished. 0 errors, 0 warnings. (took 3s.656ms)

my environment is windows 11.

i searched a bit and what i found didn't really helped much and it focused on the avr gcc that its corrupted so i uninstalled it and installed it again, same thing also downloaded microchip studio and it used the avr gcc with no problem but i like to use eclipse so is there anything i can do to fix this. thanks in advance.
note: i found a topic here in the community which was almost got the same problem i got here but it wased solved and it was 3 years ago.
Re: can't build an avr project [message #1863112 is a reply to message #1862678] Wed, 17 January 2024 04:10 Go to previous message
Eclipse UserFriend
The error message "avr-gcc.exe the application was unable to start correctly (0xc0000142)" indicates a problem with the AVR GCC executable or its associated libraries.
You've already tried reinstalling AVR GCC, but that hasn't resolved the issue. Since Microchip Studio can successfully use AVR GCC, it suggests that the problem lies with Eclipse's configuration or installation.
Here are some troubleshooting steps you can try:
Verify AVR GCC Installation: Ensure that AVR GCC is installed correctly and accessible from the command line. Try running avr-gcc --version from a command prompt to check the version.
Ensure you're running the latest version of Eclipse. Check for updates and install them if available.
Try cleaning the project and rebuilding it. This can sometimes resolve issues caused by corrupted build files or temporary configurations.
Reset Eclipse's preferences to their default values. This may help eliminate any conflicting configurations that might be causing the issue.
Verify that there are no other AVR GCC installations or tools conflicting with the one used by Eclipse. Try temporarily disabling or uninstalling other AVR GCC tools to see if that resolves the issue.
If the issue persists https://chatrandom.download, consider reinstalling the Eclipse Embedded IDE. This will ensure a clean installation without any potential conflicts.

[Updated on: Tue, 30 January 2024 09:58] by Moderator

Report message to a moderator

Previous Topic:Dynamic Programming Challenge: Longest Increasing Subsequence
Next Topic:Using Eclipse CDT with Docker
Goto Forum:
  


Current Time: Sat Jan 18 05:11:28 GMT 2025

Powered by FUDForum. Page generated in 0.03569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top