candleLight
Overview
The candleLight is an open-hardware USB to CAN 2.0B adapter board available from a number of sources.
Hardware
The candleLight board is equipped with a STM32F072CB microcontroller and features an USB connector, a DB-9M connector for the CAN bus, and two user LEDs. Schematics and component placement drawings are available in the candleLight GitHub repository.
Supported Features
The candlelight
board configuration supports the following hardware features:
Interface |
Controller |
Driver/Component |
---|---|---|
NVIC |
on-chip |
nested vector interrupt controller |
PINMUX |
on-chip |
pinmux |
FLASH |
on-chip |
flash memory |
GPIO |
on-chip |
gpio |
USB |
on-chip |
USB |
CAN1 |
on-chip |
CAN controller |
The default configuration can be found in the defconfig file: boards/others/candlelight/candlelight_defconfig.
Other hardware features are not currently supported by the port.
System Clock
The STM32F072CB PLL is driven by the internal RC oscillator (HSI) running at 8 MHz and configured to provide a system clock of 48 MHz.
Programming and Debugging
Build and flash applications as usual (see Building an Application and Run an Application for more details).
If flashing via USB DFU, short resistor R203
when applying power to the candleLight in order to
enter the built-in DFU mode.
Here is an example for the Blinky application.
# From the root of the zephyr repository
west build -b candlelight samples/basic/blinky
west flash