AgriQL · Embedded · Boards and cost

Boards and cost

AgriQLEdge needs a 32-bit processor and flash the program can write while it runs. The library ships one precompiled core per processor family.

Supported processors

ProcessorBoardsChecked
Cortex-M0+Arduino Zero, MKR family, Nano 33 IoT, Nano RP2040 Connect, Raspberry Pi Pico (RP2040), STM32G0/L0Compiled and linked with the Arduino SAMD, Mbed Nano and Pico packages
Cortex-M4FUNO R4 Minima and WiFi, Nano 33 BLE, STM32F4/L4/G4, SAMD51Compiled and linked with the UNO R4 and Mbed Nano packages
Cortex-M33Raspberry Pi Pico 2 (RP2350), Portenta C33, STM32U5/L5/H5, nRF5340Compiled and linked with the Pico package
RISC-VESP32-C3, ESP32-C5, ESP32-C6, ESP32-H2, ESP32-P4, Pico 2 in RISC-V mode (also ESP32-C2 and C61)Compiled and linked with the esp32 4.0 and Pico packages (C2 and C61 not compiled)
Cortex-M3, Cortex-M7Arduino Due, STM32F1 Blue Pill, Portenta H7, GIGA R1, Teensy 4Core built and linked into a test firmware; not compiled with their Arduino packages

None of these have been run on real hardware by this project yet. A compiled and linked sketch shows that the library fits the board's toolchain and ABI. It does not show that a particular board's flash driver is correct.

Not supported

  • AVR (UNO R3, Mega 2560, Nano classic, Leonardo): 2 to 8 KB of RAM, and no flash the sketch can write while running. The build stops with a message that says so.
  • Xtensa ESP32, ESP32-S2, ESP32-S3 (including the Arduino Nano ESP32): not precompiled yet. They need Espressif's own Rust toolchain. The build stops with a message that says so.

Cost

Size of a test firmware that calls every function, built with size optimisation.
Cortex-M0+Cortex-M4FRISC-V (ESP32-C3)
Flash14.0 KB13.7 KB13.8 KB
RAM for the log, 16 readings per frame664 bytes664 bytes664 bytes
RAM for the log, 32 readings per frame1,176 bytes1,176 bytes1,176 bytes

RAM is 32 bytes per buffered reading plus 152 bytes, and about 0.5 KB of stack while flushing or scanning. Up to one frame of readings (16 by default) can be lost at a power cut; call flush() before deep sleep to lose none.

Speed on emulated boards is on the benchmarks page.