pw_sys_io_emcraft_sf2#
Pigweed AI summary: The "pw_sys_io_emcraft_sf2" module implements the "pw_sys_io" facade over UART, allowing applications to do simple input/output via UART on a SmartFusion/2 chip. This backend allows for configuration of which UART to use and provides the bare-minimum platform code needed to do UART reads/writes. To use this module, code must be written against the "pw_sys_io" facade, the "dir_pw_sys_io_backend" GN global variable must be specified, and
pw_sys_io_emcraft_sf2
implements the pw_sys_io
facade over
UART.
The Emcraft SF2 sys IO backend provides a UART driver layer that allows
applications built against the pw_sys_io
interface to run on a
SmartFusion/2 chip and do simple input/output via UART. However, this should
work with all Smartfusion/2 variations.
This backend allows you to configure which UART to use. The point of it is to provide bare-minimum platform code needed to do UART reads/writes.
Setup#
Pigweed AI summary: This module requires minimal setup, including writing code against the pw_sys_io facade, specifying the dir_pw_sys_io_backend GN global variable, calling pw_sys_io_Init() in early boot, and building an executable with a main() function using a toolchain that supports Cortex-M3. However, it conflicts with other modules that do early device initialization.
This module requires relatively minimal setup:
Write code against the
pw_sys_io
facade.Specify the
dir_pw_sys_io_backend
GN global variable to point to this backend.pw_sys_io_Init() provided by this module needs to be called in early boot to get pw_sys_io into a working state.
Build an executable with a main() function using a toolchain that supports Cortex-M3.
Note
This module provides early firmware init, so it will conflict with other modules that do any early device init.
Module usage#
Pigweed AI summary: To use this backend, build an executable and flash the .elf binary to the development board. Then, connect to the device using a serial communication terminal like minicom/screen (Linux/Mac) or TeraTerm (Windows) at a baud rate of 57600 (8N1).
After building an executable that utilizes this backend, flash the produced .elf binary to the development board. Then, using a serial communication terminal like minicom/screen (Linux/Mac) or TeraTerm (Windows), connect to the device at a baud rate of 57600 (8N1).
Dependencies#
Pigweed AI summary: This paragraph lists the dependencies required for the project, including the pw_sys_io facade and pw_preprocessor module.
pw_sys_io
facade
pw_preprocessor
module