-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Below is the Verification output when trying to compile for Arduino DUE.
In file included from C:\Users\asus\Documents\Arduino\libraries\due_can\src/due_can.h:23:0, from C:\Users\asus\Documents\Arduino\GVRET\GVRET.h:31, from C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:30: C:\Users\asus\Documents\Arduino\libraries\can_common\src/can_common.h:93:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const bool operator[]( int pos ) const ^ C:\Users\asus\Documents\Arduino\libraries\can_common\src/can_common.h:120:42: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const bool operator[]( int pos ) const ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino: In function 'void sendFrameToUSB(CAN_FRAME&, int)': C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:437:51: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] sprintf((char *)buff, "%08x", frame.id); ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:437:51: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:441:51: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] sprintf((char *)buff, "%03x", frame.id); ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:441:51: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino: In function 'void sendFrameToFile(CAN_FRAME&, int)': C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:516:107: warning: format '%i' expects argument of type 'int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] sprintf((char *)buff, "%i,%x,%i,%i,%i", millis(), frame.id, frame.extended, whichBus, frame.length); ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:516:107: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:516:107: warning: format '%i' expects argument of type 'int', but argument 3 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:516:107: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:529:80: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t {aka long unsigned int}' [-Wformat=] sprintf((char *)buff, "%f R%i %x", millis() / 1000.0f, idBits, frame.id); ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:529:80: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t {aka long unsigned int}' [-Wformat=] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:497:13: warning: unused variable 'temp' [-Wunused-variable] uint8_t temp; ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino: In function 'void loop()': C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:765:97: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] buff[7] = settings.CAN1_Enabled + ((unsigned char)settings.CAN1ListenOnly << 4) + (unsigned char)settings.singleWire_Enabled << 6; ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:686:16: warning: enumeration value 'GET_DIG_INPUTS' not handled in switch [-Wswitch] switch (state) { ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:686:16: warning: enumeration value 'GET_ANALOG_INPUTS' not handled in switch [-Wswitch] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:686:16: warning: enumeration value 'GET_CANBUS_PARAMS' not handled in switch [-Wswitch] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:686:16: warning: enumeration value 'GET_DEVICE_INFO' not handled in switch [-Wswitch] C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:591:16: warning: unused variable 'loops' [-Wunused-variable] static int loops = 0; ^ C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:602:17: warning: unused variable 'markToggle' [-Wunused-variable] static bool markToggle = false; ^ In file included from C:\Users\asus\Documents\Arduino\GVRET\GVRET.ino:34:0: C:\Users\asus\Documents\Arduino\libraries\Wire_EEPROM/Wire_EEPROM.h: In member function 'int EEPROMCLASS::write(int, const T&) [with T = EEPROMSettings]': C:\Users\asus\Documents\Arduino\libraries\Wire_EEPROM/Wire_EEPROM.h:31:4: warning: iteration 256u invokes undefined behavior [-Waggressive-loop-optimizations] buffer[i + 2] = p[i]; ^ C:\Users\asus\Documents\Arduino\libraries\Wire_EEPROM/Wire_EEPROM.h:29:3: note: containing loop for (i = 0; i < sizeof(value); i++) ^
It uploads with no issues. But in SavvyCAN with this settings i don't receive any frames in the main window Picture related https://imgur.com/a/JyRxoaV
What I am doing wrong?