Beginner Problem with Qwiic Motor Driver

Hi

I am getting back into Arduino programming after not doing anything for a decade or so and basically forgotten everything :stuck_out_tongue:

I have a Sparkfun RedBoard Artemis and a Qwiic Motor driver and am following the Hookup Guide here - https://learn.sparkfun.com/tutorials/ho 
 leshooting

I have followed the setup as outlined with the following small modifications:

1 - My battery is a 3.7V 400mAh battery rather than the 3.7V 850mAh battery specified in the instruction.

2 - I only have one motor plugged in to the driver, rather than two.

Picture of setup attached.

I have tested that my RedBoard is properly connected with the basic blink example and it all worked fine. But now when I try load upload the Experiment 1 code on the hookup guide, I get the following error.

Arduino: 1.8.19 (Windows 10), Board: “RedBoard Artemis, 460800, SparkFun Variable Loader (Recommended)”

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp: In member function ‘uint8_t SCMD::begin()’:

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:7: error: ‘class arduino::MbedSPI’ has no member named ‘setClockDivider’

SPI.setClockDivider(SPI_CLOCK_DIV32);

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

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:23: error: ‘SPI_CLOCK_DIV32’ was not declared in this scope

SPI.setClockDivider(SPI_CLOCK_DIV32);

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

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:108:7: error: ‘class arduino::MbedSPI’ has no member named ‘setBitOrder’

SPI.setBitOrder(MSBFIRST);

^~~~~~~~~~~

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:111:7: error: ‘class arduino::MbedSPI’ has no member named ‘setDataMode’

SPI.setDataMode(SPI_MODE0);

^~~~~~~~~~~

exit status 1

Error compiling for board RedBoard Artemis.

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.

Any help understanding this would be appreciated :slight_smile:

Re ran with the “Show verbose output during compilation” option enabled as per the original error and got the following:

Arduino: 1.8.19 (Windows 10), Board: “RedBoard Artemis, 460800, SparkFun Variable Loader (Recommended)”

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\maxka\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\maxka\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\maxka\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:sfe_artemis:svl_baud=460800,loader=option_svl -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\maxka\AppData\Local\Temp\arduino_build_271302 -warnings=none -build-cache C:\Users\maxka\AppData\Local\Temp\arduino_cache_6103 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\maxka\AppData\Local\Temp\arduino_modified_sketch_316810\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\maxka\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\maxka\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\maxka\Documents\Arduino\libraries -fqbn=SparkFun:apollo3:sfe_artemis:svl_baud=460800,loader=option_svl -vid-pid=1A86_7523 -ide-version=10819 -build-path C:\Users\maxka\AppData\Local\Temp\arduino_build_271302 -warnings=none -build-cache C:\Users\maxka\AppData\Local\Temp\arduino_cache_6103 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -prefs=runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path=C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major -verbose C:\Users\maxka\AppData\Local\Temp\arduino_modified_sketch_316810\Blink.ino

Using board ‘sfe_artemis’ from platform in folder: C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1

Using core ‘arduino’ from platform in folder: C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1

Detecting libraries used


“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp” -o nul

Alternatives for SCMD.h: [Serial_Controlled_Motor_Driver@1.0.4]

ResolveLibrary(SCMD.h)

→ candidates: [Serial_Controlled_Motor_Driver@1.0.4]

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp” -o nul

Alternatives for Wire.h: [Wire@2.0.0]

ResolveLibrary(Wire.h)

→ candidates: [Wire@2.0.0]

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp” -o nul

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp” -o nul

Alternatives for SPI.h: [SPI@2.0.0]

ResolveLibrary(SPI.h)

→ candidates: [SPI@2.0.0]

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp” -o nul

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src\Wire.cpp” -o nul

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src\SPI.cpp” -o nul

Generating function prototypes


“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -w -x c++ -E -CC -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp” -o “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\preproc\ctags_target_for_gcc_minus_e.cpp”

“C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\preproc\ctags_target_for_gcc_minus_e.cpp”

Compiling sketch


“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -MMD -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp” -o “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\sketch\Blink.ino.cpp.o”

Compiling libraries


Compiling library “Serial_Controlled_Motor_Driver”

“C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\tools\arm-none-eabi-gcc\8-2018-q4-major/bin/arm-none-eabi-g++” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/mbed_config.h” -include “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/sdk/ArduinoSDK.h” -iprefix “C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-flags” -MMD -DARDUINO=10819 -DARDUINO_APOLLO3_SFE_ARTEMIS -DARDUINO_ARCH_MBED -DARDUINO_ARCH_APOLLO3 -DMBED_NO_GLOBAL_USING_DIRECTIVE -DCORDIO_ZERO_COPY_HCI “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.cxx-symbols” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\cores\arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS” “-IC:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI\src” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api” “-IC:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1/cores/arduino/mbed-bridge/core-api/api/deprecated” “@C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\variants\SFE_ARTEMIS/mbed/.includes” “C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp” -o “C:\Users\maxka\AppData\Local\Temp\arduino_build_271302\libraries\Serial_Controlled_Motor_Driver\SCMD.cpp.o”

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp: In member function ‘uint8_t SCMD::begin()’:

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:7: error: ‘class arduino::MbedSPI’ has no member named ‘setClockDivider’

SPI.setClockDivider(SPI_CLOCK_DIV32);

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

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:106:23: error: ‘SPI_CLOCK_DIV32’ was not declared in this scope

SPI.setClockDivider(SPI_CLOCK_DIV32);

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

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:108:7: error: ‘class arduino::MbedSPI’ has no member named ‘setBitOrder’

SPI.setBitOrder(MSBFIRST);

^~~~~~~~~~~

C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver\src\SCMD.cpp:111:7: error: ‘class arduino::MbedSPI’ has no member named ‘setDataMode’

SPI.setDataMode(SPI_MODE0);

^~~~~~~~~~~

Using library Serial_Controlled_Motor_Driver at version 1.0.4 in folder: C:\Users\maxka\Documents\Arduino\libraries\Serial_Controlled_Motor_Driver

Using library Wire at version 2.0.0 in folder: C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\Wire

Using library SPI at version 2.0.0 in folder: C:\Users\maxka\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\2.2.1\libraries\SPI

exit status 1

Error compiling for board RedBoard Artemis.

Managed to overcome this problem by downgrading the Apollo3 Board manager to v1.2.1. For some reason, any V2.x.x build doesn’t work.