Compiling bootloader


Can anyone please help me to solve problem with compiling of bootloader?
I want to compile slightly edited bootloader for my Arduino Pro Micro (Sparkfun version), but I'm not able to get it to compile. The make put me back message, that the system cannot find the path specified (see screenshoot, it's in czech "Systém nemůže nalézt uvedenou cestu").

I have LUFA folder placed right, I added GnuWin32/bin and avr/bin from arduino tools to path, but I'm still not able to find, what exactly it can't find...

Thank you :confused:

but I'm still not able to find, what exactly it can't find...

See that message that says ECHO OFF? Edit the script that is being run by make (look in the make file, if needed) and stop turning echo off.

Thanks for reply.
I already wanted to do it, but I'm not able to find, where is the echo OFF :frowning:
I tried to run make with debug option (make -d) and this is what is before the error:

Creating temporary batch file C:\Users\Dany\AppData\Local\Temp\make3924-1.bat
Systém nemůže nalézt uvedenou cestu.

I tried to run cmd and make also as admin...

Post the C:\Users\Dany\AppData\Local\Temp\make3924-1.bat file.

It was hard, but this is what is inside the temp .bat

@echo off
avr-gcc -c -mmcu=atmega32u4 -I. -gdwarf-2 -DF_CPU=16000000UL -DF_USB=16000000UL -DBOARD=BOARD_USER -DARCH=ARCH_AVR8 -DBOOT_START_ADDR=0xUL -DDEVICE_VID=0x1B4FUL -DDEVICE_PID=0x9205UL -D USB_DEVICE_ONLY -D DEVICE_STATE_AS_GPIOR=0 -D ORDERED_EP_CONFIG -D FIXED_CONTROL_ENDPOINT_SIZE=8 -D FIXED_NUM_CONFIGURATIONS=1 -D USE_RAM_DESCRIPTORS -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -D NO_INTERNAL_SERIAL -D NO_DEVICE_SELF_POWER -D NO_DEVICE_REMOTE_WAKEUP -D NO_SOF_EVENTS -D NO_LOCK_BYTE_WRITE_SUPPORT -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=./LUFA-111009/LUFA/Drivers/USB/Class/Common/HIDParser.lst -ILUFA-111009/ -std=c99 -MMD -MP -MF .dep/HIDParser.o.d LUFA-111009/LUFA/Drivers/USB/Class/Common/HIDParser.c -o LUFA-111009/LUFA/Drivers/USB/Class/Common/HIDParser.o

after some more searching and testing I found, that problem is, that there is no utils in avr-gcc in Arduino. So the make didn't find sh.exe

But now I have some error with this sh.exe :smiley:

0 [main] sh 6716 sync_with_child: child 7072(0x1A8) died before initialization with status code 0xC0000142
    639 [main] sh 6716 sync_with_child: *** child state waiting for longjmp

I don't give up! :smiley:

Finally I got it working!

First I found, that the Arduino avr doesn't contain utils folder (with sh.exe).
So I downloaded winAVR2010. But it gave me some error.
So I downloaded CygWin. Which has sh.exe in default settings. But I found, that it doesn't contain second utility - bc.exe, and I didn't find it in options to install.
So I took the utils folder from WinAVR and copied it to CygWin without overwrite.
Voilá, it works! :slight_smile: