Mac example1 fails to compile

The link on the instructions to download the gnu compiler is incorrect at the moment

After downloading the compiler and installing the SDK on a Mac running Mojave I get the following compiler error:

…/src/tf_adc/tf_adc.c:61:38: error: too few arguments to function ‘am_hal_adc_samples_read’

if (AM_HAL_STATUS_SUCCESS != am_hal_adc_samples_read(g_ADCHandle,

^~~~~~~~~~~~~~~~~~~~~~~

In file included from …/…/…/…/…/mcu/apollo3/am_mcu_apollo.h:142,

from …/src/tf_adc/tf_adc.c:1:

…/…/…/…/…/mcu/apollo3/hal/am_hal_adc.h:630:19: note: declared here

extern uint32_t am_hal_adc_samples_read(void *pHandle, bool bFullSample,

^~~~~~~~~~~~~~~~~~~~~~~

make: *** [bin/tf_adc.o] Error 1

This is with SDK 2.1.0 which may be different from what you are using. I will attempt to download 2.0.0 and recompile.

The correct URL for the compiler is https://developer.arm.com/tools-and-sof … /downloads

Confirmed … the newer 2.1 SDK is incompatible with the example files as written. Good to know if you’re playing with the new toy! :slight_smile:

Good to know, the SDK Release 2.1.0 came out just days after we released the Edge. You and a couple other people have noted the incompatibility so I’ll try to either a) just fix compatibility in the example or b) put a note about it in the tutorial.

Edit: Alright, we’ve added an alert to the tutorial. For now to use our examples you should use release 2.0.0, but to write your own applications probably best to go with the latest.