analogdevicesinc / EVAL-ADICUP3029

This repo includes examples which run on the EVAL-ADICUP3029 ARM Cortex-M3 processor development platform from Analog Devices.
https://wiki.analog.com/resources/eval/user-guides/eval-adicup3029
Other
38 stars 63 forks source link

Compiling code for the ADuCM3029_demo_adpd410x #111

Open nicolechar opened 1 year ago

nicolechar commented 1 year ago

Hi guys!

I just got an EVAL-ADPD4101-ARDZ, and was following the guide here: https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-adpd410x.

This step here shows that there is a pre-built hex file (that I have already imported onto the board), as well as the repo to the latest source code. image

However, upon importing the folder onto CrossCore, I only see these files: image

This looks like an incomplete folder. Therefore, I am unable to compile and run the code to test my EVAL-ADPD4101-ARDZ.

Do you have any solutions on how to get the full working project, so that I may use the EVAL-ADICUP3029 to write my own code into the EVAL-ADPD4101-ARDZ?

Please advice me on how I should proceed.

Thank you!

catapangan commented 1 year ago

Hi @nicolechar ,

You have to build the source first to be able to create the project which you can import to CrossCore Embedded Studio. To build this manually, you can use the command: make NEW_CFLAGS="-DADPD4100_SUPPORT" LOCAL_BUILD=n LINK_SRCS=n VERBOSE=y

You can change the cflags to compile the demo that you want: "spi": "NEW_CFLAGS=-DADPD4100_SUPPORT", "i2c": "NEW_CFLAGS=-DADPD4101_SUPPORT", "spi_waterquality": "NEW_CFLAGS=-DADPD4100_SUPPORT\-DADPD410X_APP_DEMO_WQ", "i2c_waterquality": "NEW_CFLAGS=-DADPD4101_SUPPORT\-DADPD410X_APP_DEMO_WQ"