Just got my Redboard Artemis today so started by trying a few of the built-in examples.
Arduino IDE 1.8.13
SparkfunApollo3 Boards version 2.06
Trying to build any of the PDM examples (eg Example1 here) gets me an error like this :-
In file included from C:\Users\andy\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.6\libraries\PDM\examples\Example1_MicrophoneOutput\Example1_MicrophoneOutput.ino:31:
C:\Users\andy\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.0.6/cores/mbed-os/cmsis/TARGET_CORTEX_M/arm_math.h:345:4: error: #error “Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS, ARM_MATH_CM0, ARM_MATH_ARMV8MBL, ARM_MATH_ARMV8MML”
#error “Define according the used Cortex core ARM_MATH_CM7, ARM_MATH_CM4, ARM_MATH_CM3, ARM_MATH_CM0PLUS, ARM_MATH_CM0, ARM_MATH_ARMV8MBL, ARM_MATH_ARMV8MML”
^~~~~
exit status 1
Error compiling for board RedBoard Artemis.
Thanks for reaching out to us on this.
While there are many potential issues that may cause this, let’s begin by verifying the correct ‘board’ is selected in the IDE - https://learn.sparkfun.com/tutorials/ar … stallation double-check the section covering the “Additional Board Manager URL” box, ensuring it is set-up to retrieve files from URL.
Hope this helps, and happy sparking!
looks to me this known issue that does not have a solution yet : https://github.com/sparkfun/Arduino_Apollo3/issues/325
TS-Russell:
…let’s begin by verifying the correct ‘board’ is selected in the IDE
Yes, The board manager URL is set correctly.
AND I have board set to “Redboard Artemis”.
Looks exactly like the problem that paulvha tagged above.
I too had tried adding the #define manually, then getting the redefinition warning (which I ignored) and noted that there still seemed to be other problems (warnings about PDM input not being defined etc) with the PDM examples so decided to leave these for now. I’ll watch that issue 325 for updates.
Thanks