完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!
今天我试图编写一个PSoC cy8kit-049_42使用另一个相同的装置。我下面所示的方法:使用程序的另一个®CY8CKIT-049 PSoC 4 kba93541尚未有重大问题! 当我试图建立项目大量错误的兴起!他们主要是抱怨在CySH文件组件的连接。当我浏览到错误的组件大小/被移动或别的什么东西,当我向下移动使时钟与时钟很明显,SDA的SDA等我留下一些中断集团KS连接在一起,从而抛出自己的错误。我试着连接线附近的可用引脚和他们没有工作。 我的下一步是尝试更新的组件的原始版本,这似乎没有工作。删除一切,重新下载,现在项目编制(一吨的时钟在其可接受的公差warnins)。然而,当我试图引导(从ARM GCC 541文件夹,471文件夹是空的)我得到 03:29:53点选设备:USB串口(UART COM9) 通用串行口 03:31:25 PM -程序启动 03:31:25 PM -闪光行无效所选阵列。 03:31:25 PM -程序在50毫秒失败。 没有人知道我需要做什么来获得这个项目的工作或更好, 有人有该死的HEX文件吗? 以上来自于百度翻译 以下为原文 Hello once again everybody! Today I am trying to program a PSOC CY8KIT-049_42 using another identical device. I am following the method shown here: Using the CY8CKIT-049 to Program Another PSoC® 4 - KBA93541 yet there is a major problem! When I try to build the project a plethora of errors springs up! They mainly seem to be complaining about the connections of a component in a cysh file. When I navigate to the error it is apparent that the component has resized / been moved or something and when I move the block down so that clk aligns with clk, sda with sda etc I am left with some interrupt blocks connected together which throw their own error. I've tried connecting the line to the nearby available pins and none of them work. My next move was to try 'updating' components to the original versions and this did not seem to work. Deleted everything and downloaded again, and now the project compiles (With a tonne of warnins about the clock being outside its acceptable tolerance). HOWEVER when I try to bootload (from the arm GCC 541 folder, the 471 folder is empty) I get 03:29:53 PM - Selected device: USB Serial Device (COM9) - UART Generic Serial Port 03:31:25 PM - program Started 03:31:25 PM - The flash row is not valid for the selected array. 03:31:25 PM - program failed in 50 ms. Does anyone know what I need to do to get this project working or better still, DOES ANYONE JUST HAVE THE DAMN HEX FILE? |
|
相关推荐
10个回答
|
|
需要两个部分:一个工作Bootloader项目(A.HEX和.ELF文件就足够了)
和(你的)可引导加载项目,它指的是引导加载程序。 因为你没有提到你正在运行哪个版本的版本,我会让你上传你的项目。 为此,使用 创建者-gt;文件& gt;创建工作区束(最小) 并附加生成的文件。 鲍勃 以上来自于百度翻译 以下为原文 You need two parts: A working bootloader project (a .hex and .elf file would be enough) and a (your) bootloadable project which refers to the bootloader. Because you didn't mention which Creator version you are running on I would sugest you to upload your project. To do so, use Creator->File->Create Workspace Bundle (minimal) and attach the resulting file. Bob |
|
|
|
ncmza 发表于 2018-9-28 08:05 好的,我确实取得了一些进步。我设法得到它所有运行的很好(我用的是4.2版,顺便说一句)我的解决方案是更新引导组件(还有时钟的警告),并参考它平时的bootloader的HEX文件。我现在遇到的问题是用Python脚本。我要补充一点,事实上,引导主机不保留波特率设置之间的初创公司让我发狂! 我作了修改代码的COM端口和文件位置的线,但是当我尝试运行模块抱怨我的假设是一个语法错误(缺少括号包围的打印数据数组),但是我不熟悉Python,我认为它应该读的优先级NT(数据阵列); 我已经做了这个修正整个剧本,这次它跑,但是我得到这个输出(在“追踪”是红色的东西) “Python 3.6.5(v3.6.5:f59c0932b4,3月28日2018,16:07:46)[硕士v.1900 32位(英特尔)]在Win32 型“版权”,“信用”,或“更多信息license()”。 & gt;& gt; 重启:F: gigatech PSoC workspace02 4dollarprogrammer Python programmer.py Traceback(最近的电话): 文件“F: gigatech PSoC workspace02 4dollarprogrammer Python程序员。PY”,1号线,在& lt;模块& gt; 从串行导入串行 ModuleNotFoundError:没有名为“串行”的模块 & gt & gt; 怎么办? 以上来自于百度翻译 以下为原文 Ok so I actually made some progress. I've managed to get it all running nicely (I am using version 4.2 btw) My solution was to update the bootloader component ONLY (Still have clock warnings), and reference it to my usual bootloader hex file. the problem I am now having is with the python script. - I should add that the fact that bootloader host doesn't retain the baud rate you set between startups drives me insane! I have made the edits to the lines of code regarding com port and file location, but when I try to run the module it complains about what I'm assuming is a syntax error (Missing parenthesis around 'print data array'), However I am not familiar with python and I have assumed that it should read 'print (data_array);' I have made this correction throughout the script, and this time it runs, HOWEVER I get this output (Everything after 'traceback' is in red ) "Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART: F:GigaTechPSOCWorkspace024DollarProgrammerPython Programmer.py Traceback (most recent call last): File "F:GigaTechPSOCWorkspace024DollarProgrammerPython Programmer.py", line 1, in from serial import Serial ModuleNotFoundError: No module named 'serial' >>> " What do? |
|
|
|
白帅1234 发表于 2018-9-28 08:17 进一步发展/新问题! 我已经从命令行运行“PIP安装PyStAy”以获得所需的软件包(感谢朋友的建议),但是现在得到了一组全新的错误。 “ Python 3.65(V3.65:F59C0932 B4,3月28日2018,16:07:46)[MSC V.1900 32位(英特尔)]上的Win32 请键入“版权”、“信用”或“许可证()”以获取更多信息。 & gt;& gt; 重启:F:GigATECPSoCWorkStudio024DOLALPROTER Python程序员.Py Traceback(最近的电话): 文件“F:GigATECPSoCWorkStudio024DOLLAREDILTER Python程序员.Py”,第204行,AN< SeNestRebug命令(); 文件“F:GigATECPSoCWorkStudio024DOLALLealthPython程序员.Py”,第171行,在SeNestRebug中推荐 写入(数据阵列); 文件“C\用户杰米AppDATaStudio Python Python 33-32 LIB 站点包串行 SerialWi32 .py',第308行,在写入中 数据=字节字节(数据) 文件“c\用户杰米AppDATaStudio Python Python 33-32 LIB 站点包 SaleSerialUTIL.PY”,第66行,以字节为单位 返回字节(BytEARRE(SEQ)) TypeError:需要一个整数 & gt;& gt; “ 在安装CL后,我还尝试使用ClultUpdate命令,但得到相同的警告。 以上来自于百度翻译 以下为原文 Further developments / New problems! I have run 'pip install pyserial' from the command line to get the required package (thanks to a friend's advice) but now get a whole new set of errors. " Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> RESTART: F:GigaTechPSOCWorkspace024DollarProgrammerPython Programmer.py Traceback (most recent call last): File "F:GigaTechPSOCWorkspace024DollarProgrammerPython Programmer.py", line 204, in SendAcquireCommand(); File "F:GigaTechPSOCWorkspace024DollarProgrammerPython Programmer.py", line 171, in SendAcquireCommand ser.write(data_array); File "C:UsersJamieAppDataLocalProgramsPythonPython36-32libsite-packagesserialserialwin32.py", line 308, in write data = to_bytes(data) File "C:UsersJamieAppDataLocalProgramsPythonPython36-32libsite-packagesserialserialutil.py", line 66, in to_bytes return bytes(bytearray(seq)) TypeError: an integer is required >>> " I have also tried using the package update command suggested by the cl after installing it but get the same warnings. |
|
|
|
似乎不是PSoC问题? 鲍勃 以上来自于百度翻译 以下为原文 Seemingly not a PSoC problem? Bob |
|
|
|
只是想也许我能得到一些支持,考虑问题都围绕着一个PSoC,即使它不是一个直接造成的。 以上来自于百度翻译 以下为原文 Just thought I might be able to get some support here considering the issue does revolve around a PSOC, even if it's not directly caused by one. |
|
|
|
似乎“DATAAL数组”没有正确传输? 它可能需要双倍检查“Python程序员.Py”中的代码。 谢谢, 赖安 以上来自于百度翻译 以下为原文 Seems that the 'data_array' not transferred correctly? It may require to double-check the code in 'Python Programmer.py'... Thanks, Ryan |
|
|
|
是的,我确信这个问题是在剧本上的。也许只是值得一试,然后订购MixPrime3。我可怜的预算正在枯竭。 以上来自于百度翻译 以下为原文 Yeah, I'm certain the issue is with the script at this point. might just be worth biting the bullet and ordering a miniprog3. My poor budget is running dry. |
|
|
|
你可以购买一个cy8ckit-043 / cy8ckit-145代替miniprog-3。船上kitprog可以作为一个程序员和USB-UART / I2C调试那些XRES引脚psoc4系列桥。 谢谢, 赖安 以上来自于百度翻译 以下为原文 You can purchase a CY8CKIT-043/CY8CKIT-145 instead of MiniProg-3. Its kitprog on board can be used as a programmer and USB-UART/I2C bridge to debug those PSoC4 series with XRES pin. Thanks, Ryan |
|
|
|
你好,
Python错误可能是由于使用了不同版本的Python。 虽然新的是Python 3。x,我“听说”有很多吨。 Python 2.7脚本/程序。 用Python 2.7试试怎么样? 摩托罗拉 以上来自于百度翻译 以下为原文 Hi, The python error might be caused by using different version of python. Although the new one is python 3.x, I "heard" that there are tons of python 2.7 scripts/programs. How about trying them using python 2.7? moto |
|
|
|
Python 2.7(2.8?)Python 3. x是互斥的许多建筑,所以如果你想运行一个脚本使用,它们是导致操作足够的不同。 以上来自于百度翻译 以下为原文 Python 2.7 (2.8?) and Python 3.x are mutually exclusive in alot of their architecture, and so if you are trying to run a script for one using the other, they are different enough to cause issues with operation. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2074 浏览 1 评论
1829 浏览 1 评论
3643 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1765 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
513浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
364浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
413浏览 2评论
360浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
865浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 21:24 , Processed in 1.034589 second(s), Total 64, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号