Skip to content

Commit 882701b

Browse files
committed
Fix build
1 parent 2c95679 commit 882701b

File tree

8 files changed

+44
-30
lines changed

8 files changed

+44
-30
lines changed

ports/zephyr-cp/boards/adafruit_feather_nrf52840_uf2.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ CONFIG_BT_OBSERVER=y
66
CONFIG_BT_EXT_ADV=y
77

88
CONFIG_BOARD_SERIAL_BACKEND_CDC_ACM=n
9-
CONFIG_BOARD_REQUIRES_SERIAL_BACKEND_CDC_ACM=n

ports/zephyr-cp/boards/frdm_rw612.conf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ CONFIG_NETWORKING=y
22
CONFIG_NET_IPV4=y
33
CONFIG_NET_DHCPV4=y
44
CONFIG_NET_SOCKETS=y
5-
CONFIG_NET_SOCKETS_POSIX_NAMES=y
65

76
CONFIG_WIFI=y
87
CONFIG_NET_L2_WIFI_MGMT=y
@@ -17,9 +16,9 @@ CONFIG_MBEDTLS=y
1716
CONFIG_MBEDTLS_SSL_PROTO_TLS1_2=y
1817
CONFIG_MBEDTLS_RSA_C=y
1918
CONFIG_MBEDTLS_PKCS1_V15=y
20-
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED=y
19+
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED=y
2120
CONFIG_MBEDTLS_ENTROPY_C=y
22-
CONFIG_MBEDTLS_CTR_DRBG_ENABLED=y
21+
CONFIG_MBEDTLS_CTR_DRBG_C=y
2322
CONFIG_MBEDTLS_SHA1=y
2423
CONFIG_MBEDTLS_USE_PSA_CRYPTO=n
2524

ports/zephyr-cp/boards/frdm_rw612.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
&w25q512jvfiq {
22
partitions {
3-
/delete-node/ storage_partition;
3+
/delete-node/ partition@620000;
44
circuitpy_partition: partition@620000 {
55
label = "circuitpy";
66
reg = <0x00620000 (DT_SIZE_M(58) - DT_SIZE_K(128))>;

ports/zephyr-cp/boards/mimxrt1170_evk_mimxrt1176_cm7.overlay

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
&is25wp128 {
2-
partitions{
3-
/delete-node/ storage_partition;
4-
circuitpy_partition: partition@E20000 {
5-
label = "circuitpy";
6-
reg = <0x00E20000 (DT_SIZE_M(2) - DT_SIZE_K(128))>;
7-
};
2+
partitions {
3+
/delete-node/ partition@e20000;
4+
circuitpy_partition: partition@e20000 {
5+
label = "circuitpy";
6+
reg = <0x00e20000 (DT_SIZE_M(2) - DT_SIZE_K(128))>;
7+
};
88
};
99
};
1010

ports/zephyr-cp/boards/stm32wba65i_dk1.overlay

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@
4747
};
4848

4949
zephyr_udc0: &usbotg_hs {
50-
clocks = <&rcc STM32_CLOCK(AHB2, 14)>,
51-
<&rcc STM32_SRC_HSE OTGHS_SEL(0)>;
52-
pinctrl-0 = <&usb_otg_hs_dm_pd7 &usb_otg_hs_dp_pd6>;
53-
pinctrl-names = "default";
5450
status = "okay";
5551
};
5652

5753
&otghs_phy {
5854
/* OTG HS clock source is 32 MHz HSE */
55+
clocks = <&rcc STM32_CLOCK(AHB2, 15)>,
56+
<&rcc STM32_SRC_HSE OTGHS_SEL(0)>;
5957
clock-reference = "SYSCFG_OTG_HS_PHY_CLK_32MHz";
6058
status = "okay";
6159
};

ports/zephyr-cp/cptools/zephyr2cp.py

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,19 @@
9696
"D12",
9797
"D13",
9898
],
99+
"nordic,expansion-board-header": [
100+
"P1_04",
101+
"P1_05",
102+
"P1_06",
103+
"P1_07",
104+
"P1_08",
105+
"P1_09",
106+
"P1_10",
107+
"P1_11",
108+
"P1_12",
109+
"P1_13",
110+
"P1_14",
111+
],
99112
"arducam,dvp-20pin-connector": [
100113
"SCL",
101114
"SDA",
@@ -544,16 +557,26 @@ def zephyr_dts_to_cp_board(board_id, portdir, builddir, zephyrbuilddir): # noqa
544557
all_ioports.append(node.labels[0])
545558
if status == "okay":
546559
ioports[node.labels[0]] = set(range(0, ngpios))
547-
if gpio_map and compatible[0] != "gpio-nexus":
548-
i = 0
549-
for offset, t, label in gpio_map._markers:
550-
if not label:
551-
continue
552-
num = int.from_bytes(gpio_map.value[offset + 4 : offset + 8], "big")
553-
if (label, num) not in board_names:
554-
board_names[(label, num)] = []
555-
board_names[(label, num)].append(CONNECTORS[compatible[0]][i])
556-
i += 1
560+
if gpio_map and compatible and compatible[0] != "gpio-nexus":
561+
connector_pins = CONNECTORS.get(compatible[0], None)
562+
if connector_pins is None:
563+
logger.warning(f"Unsupported connector mapping compatible: {compatible[0]}")
564+
else:
565+
i = 0
566+
for offset, t, label in gpio_map._markers:
567+
if not label:
568+
continue
569+
if i >= len(connector_pins):
570+
logger.warning(
571+
f"Connector mapping for {compatible[0]} has more pins than names; "
572+
f"stopping at {len(connector_pins)}"
573+
)
574+
break
575+
num = int.from_bytes(gpio_map.value[offset + 4 : offset + 8], "big")
576+
if (label, num) not in board_names:
577+
board_names[(label, num)] = []
578+
board_names[(label, num)].append(connector_pins[i])
579+
i += 1
557580
if "gpio-leds" in compatible:
558581
for led in node.nodes:
559582
led = node.nodes[led]
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
CONFIG_USE_STM32_LL_USB=y
2-
CONFIG_USE_STM32_HAL_PCD=y
3-
41
CONFIG_MEMC=y
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
CONFIG_USE_STM32_LL_USB=y
2-
CONFIG_USE_STM32_HAL_PCD=y

0 commit comments

Comments
 (0)