a1exdandy / checkm8-a5

checkm8 port for S5L8940X/S5L8942X/S5L8945X
MIT License
161 stars 128 forks source link

Errors when compiling for Intel Arduino/Genuino 101 #16

Open LiamGale opened 3 years ago

LiamGale commented 3 years ago

I understand that this project is for Arduino Uno but I do not currently have one on hand and only have a Arduino/Genuino 101 board. From what I know the Genuino 101 is suppost to be compatable with Arduino Code but obviously there will be imcompatabilities with hardware differences.

Despite the erros the compiler still uploads the code to the board and the board executes it.

Here is the error I get when Verifying / Uploading the code:

In file included from /Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/checkm8-a5.ino:4:0: /Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/constants.h:2:17: note: #pragma message: Building for A5 S5L8942X

pragma message "Building for A5 S5L8942X"

             ^

/Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/checkm8-a5.ino: In function ‘void heap_occupation()’: /Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/checkm8-a5.ino:224:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < sizeof(payload); i += 0x40) ^ /Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/checkm8-a5.ino: In function ‘uint8_t heap_feng_shui_req(uint8_t, bool)’: /Users/USERNAME/Downloads/checkm8-a5-master/checkm8-a5/checkm8-a5.ino:124:67: warning: ‘data_rcode’ may be used uninitialized in this function [-Wmaybe-uninitialized] Serial.print(", data status = "); Serial.println(data_rcode, HEX); ^ Sketch uses 23764 bytes (15%) of program storage space. Maximum is 155648 bytes.

When plugging an iPad in the LED added to the usb host doesnt show any signs and when checking serial monitor there are no outputs accept from when I press RESET with the iPad plugged in I get "usb init error".

Verfying for the Uno grants no errors