Page 1 of 1

Click_MCP2517FD_PIC32 has many error

Posted: 02 Mar 2018 03:36
by kaiting
Why does the Click_MCP2517FD_PIC32 has many error when I try to compile it?
The errors are:
22 304 error: Can't open include file "__mcp2517fd_driver.h" #include "__MCP2517FD_Driver.h" 1 error in preprocessor. C:\ProgramData\mE\Temp\PM\Click_MCP2517FD_PIC32_mCPIC32_0\Examples\PIC32\MCP2517FD_Click_PIC32.c
0 122 Compilation Started MCP2517FD_Click_PIC32.c
30 402 ; expected, but 'reg' found MCP2517FD_Click_PIC32.c
31 402 ; expected, but 'config' found MCP2517FD_Click_PIC32.c
32 402 ; expected, but 'opMode' found MCP2517FD_Click_PIC32.c
35 402 ; expected, but 'txd' found MCP2517FD_Click_PIC32.c
35 324 Undeclared identifier 'MAX_DATA_BYTES' in expression MCP2517FD_Click_PIC32.c
35 374 Array dimension must be greater than 0 MCP2517FD_Click_PIC32.c
36 402 ; expected, but 'txConfig' found MCP2517FD_Click_PIC32.c
37 402 ; expected, but 'txFlags' found MCP2517FD_Click_PIC32.c
38 402 ; expected, but 'txObj' found MCP2517FD_Click_PIC32.c
41 402 ; expected, but 'rxd' found MCP2517FD_Click_PIC32.c
41 393 'uint8_t' Identifier redefined MCP2517FD_Click_PIC32.c
41 312 Internal error '' MCP2517FD_Click_PIC32.c
0 102 Finished (with errors): 02 Mar 2018, 10:34:27 MCP2517FD_Click_PIC32.mcp32

Re: Click_MCP2517FD_PIC32 has many error

Posted: 06 Mar 2018 09:16
by marko.stankovic
Hi,

Please, can you try to go to compiler Build -> Rebuild All Sources.
Also, you need to include the MCP2517FD library.
After that, try to build example.

Best Regards,