mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
boards/nrf53/thingy53: add sensor scope example
add sensor scope example for thingy53 Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
@@ -90,6 +90,53 @@ rpmsghci_sdc_cpunet
|
||||
This configuration enables RPMSG Bluetooth HCI server on the network core which
|
||||
can be accessed using RPMSG Bluetooth HCI client on the application core.
|
||||
|
||||
sensors_cpuapp
|
||||
--------------
|
||||
|
||||
Configuration demonstrating sensor data stream using NxScope.
|
||||
See :doc:`/applications/system/sensorscope/index` for more details.
|
||||
|
||||
Device detection with ``nxscli`` client::
|
||||
|
||||
$ nxscli serial /dev/ttyACM0 pdevinfo
|
||||
INFO:nxscli:enable (0, <class 'nxscli.plugins.devinfo.PluginDevinfo'>, {})
|
||||
INFO:nxscli:connecting to nxs device...
|
||||
INFO:nxscli:connected!
|
||||
INFO:nxscli:started <nxscli.plugins.devinfo.PluginDevinfo object at 0x7f16bdec5d30>
|
||||
|
||||
Device Summary
|
||||
Channels: 6
|
||||
Divider support: no
|
||||
Ack support: no
|
||||
Flags: 0x00
|
||||
RX padding: 0
|
||||
|
||||
Stream
|
||||
Connected: yes
|
||||
Started: no
|
||||
Overflow count: 0
|
||||
Bitrate: 0.0 B/s
|
||||
|
||||
Channel State
|
||||
Applied enabled: none
|
||||
Buffered enabled: none
|
||||
|
||||
Channels
|
||||
+----+---------------+-------+-----+-------+----+-----+
|
||||
| ID | Name | Type | Dim | Valid | En | Div |
|
||||
+====+===============+=======+=====+=======+====+=====+
|
||||
| 0 | sensor_accel0 | FLOAT | 3 | yes | no | 0 |
|
||||
| 1 | sensor_accel1 | FLOAT | 3 | yes | no | 0 |
|
||||
| 2 | sensor_gyro0 | FLOAT | 3 | yes | no | 0 |
|
||||
| 3 | sensor_ir0 | FLOAT | 1 | yes | no | 0 |
|
||||
| 4 | sensor_mag0 | FLOAT | 3 | yes | no | 0 |
|
||||
| 5 | sensor_rgb0 | FLOAT | 3 | yes | no | 0 |
|
||||
+----+---------------+-------+-----+-------+----+-----+
|
||||
|
||||
closing...
|
||||
INFO:nxscli:disconnecting from nxs device...
|
||||
INFO:nxscli:disconnected!
|
||||
|
||||
Flash & Debug
|
||||
=============
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# This file is autogenerated: PLEASE DO NOT EDIT IT.
|
||||
#
|
||||
# You can use "make menuconfig" to make any modifications to the installed .config file.
|
||||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your
|
||||
# modifications.
|
||||
#
|
||||
# CONFIG_DEV_CONSOLE is not set
|
||||
# CONFIG_SYSLOG_DEFAULT is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD="thingy53"
|
||||
CONFIG_ARCH_BOARD_COMMON=y
|
||||
CONFIG_ARCH_BOARD_THINGY53=y
|
||||
CONFIG_ARCH_CHIP="nrf53"
|
||||
CONFIG_ARCH_CHIP_NRF5340=y
|
||||
CONFIG_ARCH_CHIP_NRF5340_CPUAPP=y
|
||||
CONFIG_ARCH_CHIP_NRF53=y
|
||||
CONFIG_ARCH_STACKDUMP=y
|
||||
CONFIG_ARCH_STDARG_H=y
|
||||
CONFIG_BOARDCTL=y
|
||||
CONFIG_BOARDCTL_MKRD=y
|
||||
CONFIG_BOARDCTL_USBDEVCTRL=y
|
||||
CONFIG_BOARD_LOOPSPERMSEC=5500
|
||||
CONFIG_BUILTIN=y
|
||||
CONFIG_CDCACM=y
|
||||
CONFIG_CDCACM_RXBUFSIZE=256
|
||||
CONFIG_CDCACM_TXBUFSIZE=256
|
||||
CONFIG_DEBUG_ASSERTIONS=y
|
||||
CONFIG_DEBUG_FEATURES=y
|
||||
CONFIG_DEBUG_FULLOPT=y
|
||||
CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_EXAMPLES_NXSCOPE=y
|
||||
CONFIG_EXAMPLES_NXSCOPE_SERIAL_PATH="/dev/ttyS0"
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
CONFIG_FS_PROCFS=y
|
||||
CONFIG_IDLETHREAD_STACKSIZE=2048
|
||||
CONFIG_INIT_ENTRYNAME="nsh_main"
|
||||
CONFIG_INIT_ENTRYPOINT="sensorscope_main"
|
||||
CONFIG_INTELHEX_BINARY=y
|
||||
CONFIG_LOGGING_NXSCOPE=y
|
||||
CONFIG_MM_REGIONS=2
|
||||
CONFIG_NDEBUG=y
|
||||
CONFIG_NRF53_HFCLK_XTAL=y
|
||||
CONFIG_NRF53_I2C2_MASTER=y
|
||||
CONFIG_NRF53_SPI1_MASTER=y
|
||||
CONFIG_NRF53_UART0=y
|
||||
CONFIG_NRF53_USBDEV=y
|
||||
CONFIG_NRF53_USE_HFCLK192M=y
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
CONFIG_RAMLOG=y
|
||||
CONFIG_RAM_SIZE=524288
|
||||
CONFIG_RAM_START=0x20000000
|
||||
CONFIG_RAW_BINARY=y
|
||||
CONFIG_RR_INTERVAL=200
|
||||
CONFIG_SCHED_WAITPID=y
|
||||
CONFIG_SENSORS=y
|
||||
CONFIG_SENSORS_ADXL362=y
|
||||
CONFIG_SENSORS_BH1749NUC=y
|
||||
CONFIG_SENSORS_BH1749NUC_UORB=y
|
||||
CONFIG_SENSORS_BMI270=y
|
||||
CONFIG_SENSORS_BMI270_UORB=y
|
||||
CONFIG_SENSORS_BMM150=y
|
||||
CONFIG_START_DAY=26
|
||||
CONFIG_START_MONTH=3
|
||||
CONFIG_SYMTAB_ORDEREDBYNAME=y
|
||||
CONFIG_SYSTEM_I2CTOOL=y
|
||||
CONFIG_SYSTEM_READLINE=y
|
||||
CONFIG_SYSTEM_SENSORSCOPE=y
|
||||
CONFIG_SYSTEM_SENSORSCOPE_CDCACM=y
|
||||
CONFIG_SYSTEM_SENSORSCOPE_FETCH_INTERVAL=100000
|
||||
CONFIG_SYSTEM_SENSORSCOPE_SERIAL_PATH="/dev/ttyACM0"
|
||||
CONFIG_SYSTEM_SENSORSCOPE_STREAMBUF_LEN=2048
|
||||
Reference in New Issue
Block a user