This persistent error: Error compiling for board SparkFun Artemis Thing Plus.
Dell Inspiron, Arduino 1.8.13, Artiemis and Apollo3 boards no problem, several good codes running on SF RB Artemis and SF RB Artemis Nano. Officially:
"Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: “SparkFun Artemis Thing Plus, 921600, Ambiq Secure Bootloader (Advanced)”
Two new SF LoRa Thing Plus board. TTN gateway, application, device and associated codes all fine.
Example code LoRaWAN_node_ABP_method, example as downloaded from SF, does not work. Will not compile on SF Artemis Thing Plus.
Errors ( listed below) apparently all derive from hal.cpp
Error list copied verbatim
"
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp:192:12: error: ‘SPIName’ does not name a type; did you mean ‘SPIClass’?
extern “C” SPIName spi_get_peripheral_name(PinName mosi, PinName miso, PinName sclk); // this mbed internal function determines the IOM module number for a set of pins
^~~~~~~
SPIClass
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp: In function ‘void hal_spi_init()’:
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp:197:52: error: ‘D38’ was not declared in this scope
printf(“SPI IOM %d\n”, spi_get_peripheral_name(D38, D43, D42));
^~~
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp:197:57: error: ‘D43’ was not declared in this scope
printf(“SPI IOM %d\n”, spi_get_peripheral_name(D38, D43, D42));
^~~
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp:197:62: error: ‘D42’ was not declared in this scope
printf(“SPI IOM %d\n”, spi_get_peripheral_name(D38, D43, D42));
^~~
C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\BasicMAC\src\hal\hal.cpp:197:28: error: ‘spi_get_peripheral_name’ was not declared in this scope
printf(“SPI IOM %d\n”, spi_get_peripheral_name(D38, D43, D42));
^~~~~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for “SPI.h”
Used: C:\Users\clsnf\AppData\Local\Arduino15\packages\SparkFun\hardware\apollo3\1.2.1\libraries\SPI
Not used: C:\Users\clsnf\OneDrive\Documents\Arduino\libraries\SPI-master
exit status 1
Error compiling for board SparkFun Artemis Thing Plus.
End of copy"
hal.cpp does not work. 2015 version?
I corrected some errors by replacing SPI1 with SPI but you really do not want me overwriting *.cpp codes.
Also, on https://learn.sparkfun.com/tutorials/sp … e-overview, box implies version 2.0.5 for SF Apollo3 board but my Arduino IDE shows latest version of SF Apollo3 boards as 1.2.1, installed.
I read this text " “The library includes modifications for the SPI pins use by the NM180100 to connect the Apollo3 MCU to the SX1262 module. Additionally, it also contains modifications to pre-configure the library to use the SX1262, the US LoRa frequency band, and defaults to a SF7 (spreading factor).” on https://learn.sparkfun.com/tutorials/sp … e-overview. Apparently not true.
Another substantial disappointment for a supposedly new well-supported SF product …