Hi,
I've realy an issue with buils a project.
I work with Visual Studio Community 2015 and Visual Micro in the latest Build and Arduino 1.6.5.
I get the follwing error message:
...
Platform Libraries Root Include Paths
Include Path 'C:\DEV\Arduino_1_6_5\Arduino\libraries'
Include Path 'C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries'
Include Path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ft2yymr2.42c\Micro Platforms\default\debuggers'
Include Path 'D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries'
"C:\DEV\Arduino_1_6_5\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"X:\Projects\ArduBoardControl\SRC\ArduBoardControler\ArduBoardControler_Rx" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\variants\mega" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries\RF24" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries\SPI" -I"C:\DEV\Arduino_1_6_5\Arduino\libraries" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ft2yymr2.42c\Micro Platforms\default\debuggers" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries" ega2560\ArduBoardControler_Rx.cpp" -o ega2560\ArduBoardControler_Rx.cpp.o"
"C:\DEV\Arduino_1_6_5\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"X:\Projects\ArduBoardControl\SRC\ArduBoardControler\ArduBoardControler_Rx" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\variants\mega" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries\RF24" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries\SPI" -I"C:\DEV\Arduino_1_6_5\Arduino\libraries" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ft2yymr2.42c\Micro Platforms\default\debuggers" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries" ega2560\buffer.cpp" -o ega2560\buffer.cpp.o"
"C:\DEV\Arduino_1_6_5\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"X:\Projects\ArduBoardControl\SRC\ArduBoardControler\ArduBoardControler_Rx" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\variants\mega" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries\RF24" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries\SPI" -I"C:\DEV\Arduino_1_6_5\Arduino\libraries" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ft2yymr2.42c\Micro Platforms\default\debuggers" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries" ega2560\crc.cpp" -o ega2560\crc.cpp.o"
"C:\DEV\Arduino_1_6_5\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I"X:\Projects\ArduBoardControl\SRC\ArduBoardControler\ArduBoardControler_Rx" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\variants\mega" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries\RF24" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries\SPI" -I"C:\DEV\Arduino_1_6_5\Arduino\libraries" -I"C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ft2yymr2.42c\Micro Platforms\default\debuggers" -I"D:\Dropbox\DEV\BaseFiles\ARduino_1_5_1_libraries\libraries" ega2560\VescUart.cpp" -o ega2560\VescUart.cpp.o"
Build Core Paths: C:\DEV\Arduino_1_6_5\Arduino\hardware\arduino\avr\cores\arduino
"C:\DEV\Arduino_1_6_5\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -Wl,--gc-sections,--relax,--relax,--relax,--relax,--relax -mmcu=atmega2560 -o ega2560/ArduBoardControler_Rx.elf" ega2560\ArduBoardControler_Rx.cpp.o" ega2560\buffer.cpp.o" ega2560\crc.cpp.o" ega2560\VescUart.cpp.o" ega2560\RF24\RF24.cpp.o" ega2560\SPI\SPI.cpp.o" ega2560/core.a" tmega2560" -lm
VescUart.cpp.o:In function `VescUartSetCurrent(float)'
VescUart.cpp.o:In function `VescUartSetCurrentBrake(float)'
collect2.exe*:error: ld returned 1 exit status
Error creating .elf
'I allready tried to reinstall Arduino IDE. Same problem.
I have a project with several libraries within the same folder as the .in0 file.
The two functions mentioned in the error message are listed here:
void VescUartSetCurrent(float current) {
int index = 0;
uint8_t payload[3];
payload[index++] = COMM_SET_CURRENT ;
buffer_append_int16(payload, (int)(current * 1000), &index);
PackSendPayload(payload, 3);
}
void VescUartSetCurrentBrake(float brakeCurrent) {
int index = 0;
uint8_t payload[3];
payload[index++] = COMM_SET_CURRENT_BRAKE;
buffer_append_int16(payload, (int)(brakeCurrent * 1000), &index);
PackSendPayload(payload, 3);
}
I've no idea how to solve this problem and get stocked in my problem!