diff options
| author | sakumisu <[email protected]> | 2025-03-04 18:54:30 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-03-04 18:54:30 +0800 |
| commit | 44dc3c00f6987ff7de566da8fc69ce55578ff17d (patch) | |
| tree | e72af604cb15cdacd66eee9d3eac530b53052e04 /docs/source/quick_start/rtthread.rst | |
| parent | 4d5aa30778756b369bcccce3513ddf48328850bb (diff) | |
docs: release v1.4.3v1.4.3release/v1.4
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'docs/source/quick_start/rtthread.rst')
| -rw-r--r-- | docs/source/quick_start/rtthread.rst | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/docs/source/quick_start/rtthread.rst b/docs/source/quick_start/rtthread.rst index 062e6eab..4df1633f 100644 --- a/docs/source/quick_start/rtthread.rst +++ b/docs/source/quick_start/rtthread.rst @@ -91,7 +91,7 @@ INIT_APP_EXPORT(usbh_init); * 使用 `scons --target=mdk5` 或者 `scons` 进行编译,如果是mdk,需要使用 AC6 编译器 -* 如果使用的是 GCC ,需要在链接脚本(ld)中添加如下代码: +* 如果使用的是 GCC ,需要在链接脚本(需要放在 flash 位置)中添加如下代码: .. code-block:: C @@ -102,6 +102,30 @@ __usbh_class_info_end__ = .; +举例如下: + +.. code-block:: C + + /* The program code and other data into "FLASH" Rom type memory */ + .text : + { + . = ALIGN(4); + *(.text) /* .text sections (code) */ + *(.text*) /* .text* sections (code) */ + *(.glue_7) /* glue arm to thumb code */ + *(.glue_7t) /* glue thumb to arm code */ + *(.eh_frame) + + KEEP (*(.init)) + KEEP (*(.fini)) + . = ALIGN(4); + __usbh_class_info_start__ = .; + KEEP(*(.usbh_class_info)) + __usbh_class_info_end__ = .; + . = ALIGN(4); + _etext = .; /* define a global symbols at end of code */ + } > FLASH + 借助 STM32CubeMX 生成 USB 初始化 ---------------------------------- |
