Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
N32L40XCL-STB
N32L40XCL-STB 开发板模块评测任务大挑战 如何手工添加.pack包解决下载报错问题
发布于 2023-04-19 15:25:53 浏览:386
订阅该版
[tocm] 在用rtthread studio创建工程后,编译不报错。在下载时报pyocd找不到包的的错误,具体如下: ```c 开始下载程序:2023-04-19 14:56:57 D:\RT-ThreadStudio>cd /d D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.6 D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.6>pyocd.exe flash --target=N32L406CB --erase=auto --frequency=1000000 D:\RT-ThreadStudio\workspace\N32L40_CAN\Debug\rtthread.bin 0000672 W Overlapping memory regions in file ./packs/Keil.STM32L4xx_DFP.2.3.0-small.pack (STM32L412C8Tx); deleting outer region. Further warnings will be suppressed for this file. [cmsis_pack] 0000882 C Target type n32l406cb not recognized. Use 'pyocd list --targets' to see currently available target types. See
for how to install additional target support. [__main__] [2mTraceback (most recent call last): File "pyocd\board\board.py", line 100, in __init__ KeyError: 'n32l406cb' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "pyocd\__main__.py", line 161, in run File "pyocd\subcommands\load_cmd.py", line 92, in invoke File "pyocd\core\helpers.py", line 263, in session_with_chosen_probe File "pyocd\core\session.py", line 213, in __init__ File "pyocd\board\board.py", line 106, in __init__ pyocd.core.exceptions.TargetSupportError: Target type n32l406cb not recognized. Use 'pyocd list --targets' to see currently available target types. See
for how to install additional target support.[0m 执行完毕, 耗时:1510ms. ``` 经查找查看报错信息,提示pyocd在下载时找不到.pack包。 # 解决方法 1、在国民技术的资料包的目录:H:\N32L40XCL\N32L40xxx_V2.1.0\6-软件开发套件(Software Development Kit)下面有.pack包: ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20230419/3c80ef54029ab6f38d94e2548ef91cb8.png.webp) 2、找到pyocd目录下面,把包拷贝到指定目录,如下图: ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20230419/046bd26de5bf5aa8b95ee9713e6e51ad.png.webp) 3、把包的信息添加到pyocd.yaml文件里面: ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20230419/4a6a4ba2b77023077398948431003ddd.png.webp) 最后就可以顺利下载程序了 ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20230419/41419d951bc59ea86b45cc4670db1aa6.png.webp) #【总结】 **rtthread在错误提示方面非常优秀,经查看错误日志,根据提示,很快就解决问题。**
0
条评论
默认排序
按发布时间排序
登录
注册新账号
关于作者
Lu_盼盼
这家伙很懒,什么也没写!
文章
35
回答
20
被采纳
0
关注TA
发私信
相关文章
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
WIZnet_W5500
ota在线升级
cubemx
PWM
flash
freemodbus
BSP
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
flashDB
GD32
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
SFUD
msh
ulog
C++_cpp
MicroPython
本月问答贡献
三世执戟
5
个答案
1
次被采纳
KunYi
4
个答案
1
次被采纳
RTT_逍遥
3
个答案
1
次被采纳
xiaorui
1
个答案
1
次被采纳
JonasWen
1
个答案
1
次被采纳
本月文章贡献
出出啊
1
篇文章
3
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
投诉
建议
回到
底部