|
| 1 | +.. zephyr:board:: ucan |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The FYSETC UCAN is an open-source USB to CAN 2.0B adapter board. More information can be found on |
| 7 | +the `UCAN website`_ and in the `UCAN wiki`_. |
| 8 | + |
| 9 | +Hardware |
| 10 | +******** |
| 11 | + |
| 12 | +The UCAN board is equipped with a STM32F072CB microcontroller and features an USB-C connector, a |
| 13 | +terminal block for connecting to the CAN bus, and two user LEDs. Schematics and component placement |
| 14 | +drawings are available in the `UCAN GitHub repository`_. |
| 15 | + |
| 16 | +Supported Features |
| 17 | +================== |
| 18 | + |
| 19 | +The ``ucan`` board configuration supports the following hardware features: |
| 20 | + |
| 21 | ++-----------+------------+-------------------------------------+ |
| 22 | +| Interface | Controller | Driver/Component | |
| 23 | ++===========+============+=====================================+ |
| 24 | +| NVIC | on-chip | nested vector interrupt controller | |
| 25 | ++-----------+------------+-------------------------------------+ |
| 26 | +| PINMUX | on-chip | pinmux | |
| 27 | ++-----------+------------+-------------------------------------+ |
| 28 | +| FLASH | on-chip | flash memory | |
| 29 | ++-----------+------------+-------------------------------------+ |
| 30 | +| GPIO | on-chip | gpio | |
| 31 | ++-----------+------------+-------------------------------------+ |
| 32 | +| USB | on-chip | USB | |
| 33 | ++-----------+------------+-------------------------------------+ |
| 34 | +| CAN1 | on-chip | CAN controller | |
| 35 | ++-----------+------------+-------------------------------------+ |
| 36 | + |
| 37 | +The default configuration can be found in the defconfig file: |
| 38 | +:zephyr_file:`boards/fysetc/ucan/ucan_defconfig`. |
| 39 | + |
| 40 | +Other hardware features are not currently supported by the port. |
| 41 | + |
| 42 | +System Clock |
| 43 | +============ |
| 44 | + |
| 45 | +The STM32F072CB PLL is driven by an external crystal oscillator (HSE) running at 8 MHz and |
| 46 | +configured to provide a system clock of 48 MHz. |
| 47 | + |
| 48 | +Programming and Debugging |
| 49 | +************************* |
| 50 | + |
| 51 | +Build and flash applications as usual (see :ref:`build_an_application` and |
| 52 | +:ref:`application_run` for more details). |
| 53 | + |
| 54 | +If flashing via USB DFU, short pins ``B0`` and ``3V3`` when applying power to the UCAN board in |
| 55 | +order to enter the built-in DFU mode. |
| 56 | + |
| 57 | +Here is an example for the :zephyr:code-sample:`blinky` application. |
| 58 | + |
| 59 | +.. zephyr-app-commands:: |
| 60 | + :zephyr-app: samples/basic/blinky |
| 61 | + :board: ucan |
| 62 | + :goals: flash |
| 63 | + |
| 64 | +.. _UCAN website: |
| 65 | + https://www.fysetc.com/products/fysetc-ucan-board |
| 66 | + |
| 67 | +.. _UCAN wiki: |
| 68 | + https://wiki.fysetc.com/UCAN/ |
| 69 | + |
| 70 | +.. _UCAN GitHub repository: |
| 71 | + https://github.com/FYSETC/UCAN/ |
0 commit comments