Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Env
[已解决]Env生成工程错误
发布于 2019-08-25 15:41:50 浏览:1424
订阅该版
* 本帖最后由 来日方长 于 2019-8-25 19:01 编辑 * 前几天还挺好的,今早打开CubeMX重新配置并修改board目录下的Kconfig后再生成工程后就是这样了: ```*** End of the configuration. *** You can execute 'scons' to start the build or try 'scons -h' *** If you want to generate the IDE's project file, you can use command: *** 'scons --target=mdk/mdk4/mdk5/iar/cb -s'. *** If you want to install rt-thread component online,try 'pkgs'. ==============================> button update done Operation completed successfully. ==============================>The packages have been updated completely. UnicodeDecodeError: 'gbk' codec can't decode bytes in position 21683-21684: illegal multibyte sequence: File "G:\1 Code\STM32\RT_Thread t-thread\bsp\stm32\FogLightMaster\SConstruct", line 63: DoBuilding(TARGET, objs) File "G:\1 Code\STM32\RT_Thread t-thread\tools\building.py", line 786: EndBuilding(target, program) File "G:\1 Code\STM32\RT_Thread t-thread\tools\building.py", line 879: GenTargetProject(program) File "G:\1 Code\STM32\RT_Thread t-thread\tools\building.py", line 815: MDK5Project('project.uvprojx', Projects) File "G:\1 Code\STM32\RT_Thread t-thread\tools\keil.py", line 290: MDK45Project(template_tree, target, script) File "G:\1 Code\STM32\RT_Thread t-thread\tools\keil.py", line 268: out.write(etree.tostring(root, encoding='utf-8').decode()) Create mdk5 project done```工程路径为: G:\1 Code\STM32\RT_Thread t-thread\bsp\stm32\FogLightMaster 其中已经自己修改了工程目录下的SConstruct文件增加了以下几句(在能生成工程前就加上了): ```#encoding=utf8 reload(sys) sys.setdefaultencoding('gbk')```Env工具版本为1.1.1。经过测试重启后问题依旧。将工程目录和rtthread的源码全部移动到G: t-thread\bsp\stm32\FogLightMaster下,测试结果仍然不变: ```*** End of the configuration. *** You can execute 'scons' to start the build or try 'scons -h' *** If you want to generate the IDE's project file, you can use command: *** 'scons --target=mdk/mdk4/mdk5/iar/cb -s'. *** If you want to install rt-thread component online,try 'pkgs'. ==============================> button update done Operation completed successfully. ==============================>The packages have been updated completely. UnicodeDecodeError: 'gbk' codec can't decode bytes in position 21683-21684: illegal multibyte sequence: File "G: t-thread\bsp\stm32\FogLightMaster\SConstruct", line 63: DoBuilding(TARGET, objs) File "G: t-thread\tools\building.py", line 786: EndBuilding(target, program) File "G: t-thread\tools\building.py", line 879: GenTargetProject(program) File "G: t-thread\tools\building.py", line 815: MDK5Project('project.uvprojx', Projects) File "G: t-thread\tools\keil.py", line 290: MDK45Project(template_tree, target, script) File "G: t-thread\tools\keil.py", line 268: out.write(etree.tostring(root, encoding='utf-8').decode()) Create mdk5 project done``` ============================================================================================问题已经解决,感谢群内的老哥帮助,大概问题出在了一些之前编辑留下的废弃不用的.c文件采取了中文命名,删除这些文件后重新编译后就一切正常
查看更多
1
个回答
默认排序
按发布时间排序
我夏了夏天
认证专家
2019-08-25
Life isn't about finding yourself, life is about creating yourself.
确实,现在不能加有中文名的 c 文件。
撰写答案
登录
注册新账号
关注者
0
被浏览
1.4k
关于作者
来日方长
这家伙很懒,什么也没写!
提问
14
回答
35
被采纳
0
关注TA
发私信
相关问题
1
用scons构建代码出现问题
2
求助用scons生成不了mdk工程
3
关于使用scons编译的问题
4
关于scons 编译CPP问题求教
5
scons编译出现警告信息
6
SCons生成MDK5工程出错
7
realtouch的scons问题
8
SCons的PreAction能用吗?
9
scons 编译时出错。
10
求教:关于scons构建rtt时的两个问题
推荐文章
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组件
最新文章
1
基于RT-Thread的STM32F4开发第四讲——硬件定时器更新中断(缺失补齐教程)
2
基于RT-Thread的STM32F4开发第三讲——DAC
3
Wireshark抓包EtherCAT报文
4
RISC-V hardfault分析工具,RTTHREAD-RVBACKTRACE 原理讲解
5
基于RT-Thread的STM32G4开发第二讲第二篇——ADC
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
RTC
rt-smart
I2C_IIC
cubemx
UART
ESP8266
WIZnet_W5500
BSP
ota在线升级
PWM
flash
packages_软件包
freemodbus
潘多拉开发板_Pandora
ADC
GD32
定时器
编译报错
flashDB
keil_MDK
socket
中断
rt_mq_消息队列_msg_queue
Debug
ulog
SFUD
msh
C++_cpp
at_device
本月问答贡献
出出啊
1524
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
820
个答案
179
次被采纳
crystal266
555
个答案
162
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
1
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
2
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部