Closed vppillai closed 7 years ago
Hi vppillai,
I can confirm this in v1.42 of xc32 there is no default "peripheral" directory in the include path. It looks like the xc32 directory structure has changed since we created the example applications and added the code sections to our library. The compile time check on misc.c is also a newer change we have made to reduce footprint size
I have added both of these as a feature to be updated in our next round of cleanup before release 3.10.2 goes out.
To resolve this for now please see the steps detailed below that I took to build the project:
I grabbed the default timer.h header file found here: /Applications/microchip/xc32/v1.42/examples/xc32_examples/dsp_intrinsics/source/timer.h
I created a directory (path-to-my-project)/peripheral
I copy/pasted that default timer.h to the created peripheral directory and updated the project include paths: Right click project -> properties -> XC32 (Global Options) -> Common include dirs and added (path-to-my-project) The project built with the default timer.h from the xc32 example project.
In the project expand the directory "Source Files / wolfcrypt" right-click the file "misc.c" and select "Exclude file(s) from current configuration"
Build the wolfSSL.X project
The next issue I ran into when building the wolfcrypt_test application was a failure to include plib.h. I checked however and this file was in the correct location already and was also in the include path. Online I found this question: http://www.microchip.com/forums/m671361.aspx
Following that advice I right clicked the project -> Properties -> Conf: [default], Highlighted the compiler XC32 v1.42 and clicked "Apply" then "OK" and it resolved the issue of plib.h not being found. The wolfcrypt_test application built fine after that.
compiling the wolfssl.X project under
wolfssl-3.10.0\wolfssl-3.10.0\mplabx
is giving the following error (and a warning) with MPLABX IDE version 3.50 and XC32 version 1.42. Only change done to src tree is to uncomment#define MICROCHIP_PIC32
inwolfssl-3.10.0\wolfssl\wolfcrypt\settings.h
(line 47)