From 4aed0c959d9464935e4c0986b33cd6330113a1f4 Mon Sep 17 00:00:00 2001 From: sys64738 Date: Fri, 30 Jul 2021 17:58:42 +0000 Subject: [PATCH] Update 'Default/standard mode' --- Default%2Fstandard-mode.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Default%2Fstandard-mode.md b/Default%2Fstandard-mode.md index ae54383..23a04f1 100644 --- a/Default%2Fstandard-mode.md +++ b/Default%2Fstandard-mode.md @@ -51,7 +51,7 @@ JTAG, if OpenOCD doesn't specify a default to the probe. ### SPI -The SPI interface can be used in two ways: using a serprog USB-CDC interface, mostly useful for interacting with SPI flash chips, and a kernel module, for generic SPI operations, though the Linux `spidev` interface. +The SPI interface can be used in two ways: using a serprog USB-CDC interface, mostly useful for interacting with SPI flash chips, and [a kernel module](Linux-kernel-modules), for generic SPI operations, though the Linux `spidev` interface. For Serprog, use the following `flashrom` options (if `/dev/ttyACM1` is the USB serial device on your machine corresponding to the Serprog CDC interface of the @@ -67,7 +67,7 @@ analyzer, but I don't have a SPI flash chip to test it on. ### I2C -I2C is exposed only through a Linux kernel module, which can then be used by standard Linux I2C tools (such as utilities from the `i2c-tools` package, eg. `i2cget`, `i2cset`, `i2cdetect`). The `i2c-dev` module needs to be loaded for this to work. +I2C is exposed only through [a Linux kernel module](Linux-kernel-modules), which can then be used by standard Linux I2C tools (such as utilities from the `i2c-tools` package, eg. `i2cget`, `i2cset`, `i2cdetect`). The `i2c-dev` module needs to be loaded for this to work. Using `i2cdetect -l`, you should be able to see which I2C device belongs to the tool: @@ -84,7 +84,7 @@ i2c-13 i2c AUX C/DDI C/PHY C I2C adapter ### Temperature sensor -If the board/MCU has a temperature sensor, it is made available as a Linux hwmon kernel module, making the output available for use in `lm_sensors` output. +If the board/MCU has a temperature sensor, it is made available as [a Linux hwmon kernel module](Linux-kernel-modules), making the output available for use in `lm_sensors` output. Additionally, it can also be configured to appear on the device's I2C bus as an emulated I2C device, pretending to be a JC42-compliant temperature sensor (more precisely, the Microchip MCP9808). This can be achieved using [`dmctl tempsensor`](dmctl#tempsensor) (with `BUSNUM` the number from the above `i2cdetect -l` output):