File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ # Configure serial console over USB CDC ACM.
2+ CONFIG_USB_DEVICE_STACK_NEXT=y
3+ CONFIG_USBD_CDC_ACM_CLASS=y
4+ CONFIG_UART_LINE_CTRL=y
5+
6+ # Disable networking.
7+ CONFIG_NETWORKING=n
8+
9+ # Hardware features.
10+ CONFIG_FLASH=y
11+ CONFIG_FLASH_MAP=y
12+ CONFIG_I2C=y
13+ CONFIG_I2C_TARGET=y
14+ CONFIG_SPI=y
15+
16+ # MicroPython config.
17+ CONFIG_MICROPY_HEAP_SIZE=458752
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2025 MASSDRIVER EI (massdriver.space)
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ / {
8+ chosen {
9+ /* Use USB CDC ACM as the console. */
10+ zephyr,console = &cdc_acm_uart0;
11+ };
12+ };
13+
14+ &flash0 {
15+ partitions {
16+ compatible = "fixed-partitions";
17+ #address-cells = <1>;
18+ #size-cells = <1>;
19+
20+ second_stage_bootloader: partition@0 {
21+ label = "second_stage_bootloader";
22+ reg = <0x00000000 0x100>;
23+ read-only;
24+ };
25+
26+ code_partition: partition@100 {
27+ label = "code-partition";
28+ reg = <0x0000100 (DT_SIZE_M(1) - 0x100)>;
29+ read-only;
30+ };
31+
32+ storage_partition: partition@100000 {
33+ label = "storage";
34+ reg = <0x00100000 DT_SIZE_M(3)>;
35+ };
36+ };
37+ };
38+
39+ &zephyr_udc0 {
40+ cdc_acm_uart0: cdc_acm_uart0 {
41+ compatible = "zephyr,cdc-acm-uart";
42+ };
43+ };
44+
45+ &i2c1 {
46+ clock-frequency = <I2C_BITRATE_STANDARD>;
47+ status = "okay";
48+ pinctrl-0 = <&i2c1_default>;
49+ pinctrl-names = "default";
50+ };
You can’t perform that action at this time.
0 commit comments