Skip to content

Commit ed75d3d

Browse files
committed
bsp: k230: define usbh_class_info section
When building with gcc, cherryusb requires start/end address defined. See components/drivers/usb/cherryusb/core/usbh_core.c ```c extern uint32_t __usbh_class_info_start__; extern uint32_t __usbh_class_info_end__; usbh_class_info_table_begin = (struct usbh_class_info *)&__usbh_class_info_start__; usbh_class_info_table_end = (struct usbh_class_info *)&__usbh_class_info_end__; ``` This patch should be upstreamed together with another 2 patches: - "bsp: k230: add usb configurations" - "components: cherryusb: support k230" Signed-off-by: Wang Chen <[email protected]>
1 parent 5c2eb10 commit ed75d3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bsp/k230/link.lds

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ SECTIONS
7474
KEEP(*(UtestTcTab))
7575
__rt_utest_tc_tab_end = .;
7676

77+
. = ALIGN(8);
78+
__usbh_class_info_start__ = .;
79+
KEEP(*(.usbh_class_info))
80+
__usbh_class_info_end__ = .;
81+
7782
. = ALIGN(8);
7883
_etext = .;
7984
} > SRAM

0 commit comments

Comments
 (0)