完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
有多少次是一个问题:我创建一个项目,cy8c5868axi-lp035项目没有错误。然后我做:项目& GT;设备选择器…编译后生成错误的CY8C3866AXI-040::不可打印字符0xef跳过主。C线建设的错误:不可打印字符0xbb跳过主。C线建设的错误:不可打印字符0xbf跳过C线为主。
我要创造main.txt,复制的文本从主。C和重命名.txt主。为什么???? ErrIn in MyMn.Zip 140.4 K 以上来自于百度翻译 以下为原文 a number of times there was a problem: I'm creating a project for CY8C5868AXI-LP035 - project works without errors. Then I do: Project-> Device Selector ... CY8C3866AXI-040 after compilation: Build error: unprintable character 0xEF skipped main.c line1 Build error: unprintable character 0xBB skipped main.c line1 Build error: unprintable character 0xBF skipped main.c line1 I had to create main.txt, copy the text from main.c and rename .txt to main.c Why???
|
|
相关推荐
5个回答
|
|
也许这会对这个问题有所启发。
HTTP://www. pSOCGooReR.COM/FUMRS/VIEW?PHP?F=48和t=11266 问候,Dana。 以上来自于百度翻译 以下为原文 Maybe this might shed some light on the problem - http://www.psocdeveloper.com/forums/viewtopic.php?f=48&t=11266 Regards, Dana. |
|
|
|
我认为还有一件事:我在主开始看到代码 C EF BB BF。
MNI 8 K 以上来自于百度翻译 以下为原文 I think there's something else: I see code EF BB BF at the beginning of main.c
|
|
|
|
可能是在记事本(或其他编辑器)中打开了文件。字节序列0xEFBEF是UTF8中所谓的“字节顺序标记”,UTF8文件需要它来标记字节顺序(EndiaNess)。实际上是它的0xFFEF,但是在UTF8中它被重新编码。由于从PSoC3到5的切换改变了编译器(Keil对GCC),它也改变了字符编码的处理。对于UTF8,BOM是不需要的。
您可以尝试打开CyPress创建者中的文件,删除第一行,然后手动重新键入。这应该删除BOM。以后,尽量避免文件中的任何ULLUTT,这可能会导致编辑器切换到Unicode编码。避免记事本: 以上来自于百度翻译 以下为原文 Probably you opened the file in Notepad (or some other editor). The byte sequence 0xefbbef is the so-called "byte order mark" in UTF8, which is needed for UTF16 file to mark the byte order (endianness). Actually its 0xfeff, but in UTF8 it gets re-encoded. Since switching from PSoC3 to 5 changes the compiler (Keil vs. gcc), it also changes the handling of character encoding. For UTF8 the BOM is not needed. You can try to open the file in Cypress Creator, delete the first line and then re-type it manually. That should remove the BOM. In the future, try to avoid any umlauts in your file, which might cause the editor to switcxh to a Unicode-encoding. And avoid notepad :) |
|
|
|
谢谢您。也许你是对的。我尽量不要使用其他编辑器。但是我尝试用三个编辑器编辑Meave.C(PSoC5),PoSOC3不会出现WordPad、记事本、记事本+ +错误。并且删除第一行-无济于事。错误仍然存在。如果没有人,除了我没有问题,让我们希望这是我的电脑问题。
以上来自于百度翻译 以下为原文 Thank you. Maybe you're right. I'll try not to use other editors. But I tried to edit main.c (PSoC5) by three editors WordPad, Notepad, NotePad + + - error does not occur for PSoC3. And removing the first row - does not help. The error remains. If no one but me not had a problem then let's hope that this is the problem of my PC. |
|
|
|
Windows记事本被称为添加BOM,只要它认为它保存在UTF8中(这可能是所有非英语版本的Windows的默认值)。如果更改第一行不起作用,则可能需要使用十六进制编辑器来修复该文件(或者将文件的第一部分(通常只是其注释)复制到新文件并使用该文件)。
KEIL编译器似乎很好地接受了BOM的输入,而GCC不喜欢。鉴于它没有为UTF8重新定义,我不能为此而犯错… 以上来自于百度翻译 以下为原文 Windows notepad is known for adding the BOM whenever it thinks it shouds save in UTF8 (which might be the default for all non-english versions of Windows). If changing the first line doesn't help, you probably need to use a hex editor to fix that file (or copy anything except the first part of the file, usually its just comments, to a new file and use that one). The Keil compiler seems to fine in accepting input with a BOM, whereas gcc doesn't like it. And given that its not receommended for UTF8, I cannot fault it for that... |
|
|
|
只有小组成员才能发言,加入小组>>
740个成员聚集在这个小组
加入小组1980 浏览 1 评论
1737 浏览 1 评论
3510 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1669 浏览 6 评论
1448 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
215浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
123浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
325浏览 2评论
271浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
456浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-21 04:45 , Processed in 0.655485 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号