[STM32U5] 贡献一个stm32u5x的openocd配置

[复制链接]
851|1
 楼主| bbstr1 发表于 2023-10-29 21:23 | 显示全部楼层 |阅读模式
本帖最后由 bbstr1 于 2023-10-30 14:33 编辑

#申请原创# 参加st的研讨会,获得一块stm32u5的nucleo板,暂时没有时间深入玩,先共享一个openocd的配置,供习惯ubuntu  + gcc + rtos + openocd开发的同学.

  1. # SPDX-License-Identifier: GPL-2.0-or-later

  2. #
  3. # Configuration for STM32U545 Nucleo board
  4. #

  5. source [find interface/stlink.cfg]

  6. transport select hla_swd

  7. source [find target/stm32u5x.cfg]

  8. reset_config srst_only


以上内容复制到文件 st_nucleo_u5.cfg,然后使用st的openocd
https://github.com/STMicroelectronics/OpenOCD.git
./bootstrap
./configure
make -j2
sudo make install

  1. sudo openocd -f st_nucleo_u5.cfg -c 'program rtthread.bin 0x08000000 exit reset'




对于最近评测帖子的 NUCLEO-U5A5ZJ-Q 应该也适用.


Stahan 发表于 2024-1-12 16:24 | 显示全部楼层
之前想用vscode开发的就是搞不定openocd
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

35

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部