完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好,
我使用CYC8CKIT-048 PSoC模拟协处理器先锋套件,并且在使用同一个项目中同时使用UART和DMA块的同时遇到问题。 我需要使用从PC发送的数字数据,并通过UART接收来确定应该产生哪一个频率正弦波(基本上我需要做一个FSK调制器)。 我试图通过将UARTHARTX连接到TCPWM的开关输入端,使用一个引脚作为UART的数字输出,一个引脚作为PWM的数字输入并通过导线连接它们。我计划使用PWM作为时钟分频器(因为PSoC没有数字复用器,或者我找不到它)?根据开关输入的值来计算不同的值。 然后,我将PWM线路输出连接到DMA触发输入,DMA将数据从正弦LUT表传输到VDAC的内部寄存器,并将VDAC路由到输出引脚。 但是,当我尝试构建这个项目时,我会发现一个错误,即Palter无法找到PIN和固定功能块的有效位置。 有没有办法像我想象的那样做,还是我错过了什么? 谢谢 这里是一个Palel.txt文件的副本: 第4阶段 E2809:无法找到用于PIN和固定功能块的有效位置。有关详细信息,请参阅报表文件中的数字放置详细放置消息部分。 I27 22:不能放置以下实例: pWMY1:CyM0S8O-TCPWMY1(0个位置) 时钟块(1个位置):f(时钟,0) UARTAR1:SCB(3个位置(S):F(SCB,0)F(SCB,1)F(SCB,2)) 固定功能块和引脚放置: P1〔1〕:Pin 2(0) F(HalfAb,0):VDACH1:UAB:HalFuAb F(P4PREFCELL,0):CyDeWieldVeloGeRealEngress P4〔1〕:PiNi3(0) F(CKLYGEN,0):CcLogGAND块 F(OA,2):VDACH1:OutHuffel:CyspSO44Abuf\ P0〔4〕:Pin 1(0) P1〔2〕:Pin 4(0) E2055:设计过程中发生错误。 以上来自于百度翻译 以下为原文 Hi, I am using CYC8CKIT-048 PSOC Analog Coprocessor Pioneer Kit and am experiencing issues while using both UART and DMA block in the same project. I need to use the digital data sent from a PC and received via UART to determine which frequency sine wave should be generated (basically I need to make a FSK modulator). I was trying to do that by connecting UART_tx to the switch input of a TCPWM by using one pin configured as digital output for UART and one as digital input for PWM and connecting them (by wire). I was planning to use the PWM as a clock divider (since this PSOC doesn't have a digital mux, or I can't seem to find it?) which counts to different values depending on the value of switch input. Then i would connect PWM line output to DMA trigger input, and DMA would transfer data from a sine LUT table to VDAC's internal register and route VDAC to an output pin. But when i try to build the project I get an error saying that the placer is unable to find a valid placement for pins and fixed-function blocks. Is there a way to do this the way I imagined, or am I missing something? Thanks Here is a copy of placer.txt file: Phase 4 E2809: Unable to find a valid placement for pins and fixed-function blocks. See the Digital Placement's Detailed placement messages section in the report file for details. I2722: The following instances could not be placed: PWM_1:cy_m0s8_tcpwm_1 (0 location(s)) ClockBlock (1 location(s): F(Clock,0)) UART_1:SCB (3 location(s): F(SCB,0) F(SCB,1) F(SCB,2)) Fixed function block and pin placement: P1[1]: Pin_2(0) F(HALFUAB,0): VDAC_1:UAB:halfuab F(p4prefcell,0): CyDesignWideVoltageReference P4[1]: Pin_3(0) F(CLK_GEN,0): ClockGenBlock F(OA,2): VDAC_1:OUTBUFFER:cy_psoc4_abuf P0[4]: Pin_1(0) P1[2]: Pin_4(0) E2055: An error occurred during placement of the design. |
|
相关推荐
8个回答
|
|
你能把你的完整的项目,我们都可以在你所有的设置,一看。为此,使用
创建者-gt;文件& gt;创建工作区束(最小) 并附加生成的文件。 鲍勃 以上来自于百度翻译 以下为原文 Can you please post your complete project so that we all can have a look at all of your settings. To do so, use Creator->File->Create Workspace Bundle (minimal) and attach the resulting file. Bob |
|
|
|
|
|
|
|
你的UARTHI!组件不是用于所选芯片的。删除UART并在TopDead上放置一个新的UART。 鲍勃 以上来自于百度翻译 以下为原文 Your UART_! component is not for the selected chip. Delete the UART and place a new one onto the topdesign. Bob |
|
|
|
那不能解决任何问题。试着在我已经附上的项目和我从零开始的项目(我将在这里附加),只是放置了组件并试图构建它。总是返回相同的错误。我试着更新组件,但没用。一旦我删除了DMA块项目,就可以成功构建。 E.CyWrk.CaseV01.Zip 26.1 K 以上来自于百度翻译 以下为原文 That doesn't fix anything. Tried that in the project i already attached and the one I started from scratch (which I will attach here), just laid the components and tried to build it. Always gives back the same error. I tried updating components but it doesn't help. Once i remove the DMA block project can build successfully.
|
|
|
|
gft2gf2 发表于 2018-11-22 17:52 试试这个。 鲍勃 E.CyWrk.CaseV01.Zip 33.6 K 以上来自于百度翻译 以下为原文 Try this one. Bob
|
|
|
|
谢谢,现在起作用了。 你改变了什么使它起作用? 以上来自于百度翻译 以下为原文 Thanks, now it works. What did you change to make it work? |
|
|
|
DMA触发器必须连接到兼容的信号,我选择PWM OV,而不是PWM线信号。 鲍勃 以上来自于百度翻译 以下为原文 The DMA trigger must be connected to a compatible signal, I choose PWM ov and not the PWM line signal. Bob |
|
|
|
你好, 所以我用另一种方式来实现调制器,但现在我想知道DMA如何转移到组件Type块(对于U.ART或IDAC或VDAC)工作,基本上是如何为特定的任务建立DMA? 假设我有一个PWM,它在溢出时产生一个脉冲,并且我用那个脉冲作为一个DMA传输的触发器。(项目PMMD DMAX触发器) DMA会将字节从存储器中的数组传递到UART,然后UART将数据发送到PC,并且我会看到它显示在终端上。 但是DMA不传送任何东西(我可以看到),即使当我通过DMAIGROUTGEL()手动触发它时。 DMA通过DMAYSTART(空隙*)阵列初始化(空虚*)UARTHARTXYFIFOWA WRU-PTR; 由于基本上没有关于DMA和UART文档中关于我的PSoC工具包的DMA到UARTHARTX的信息(或例子),并且DMA向导不可用,所以我想知道我应该如何初始化DMA? 这是另一个使用2个IDAC7s(命名为2PWM)的项目,其中DMA的任务是将数据从一个阵列传输到一个来自PWM的溢出脉冲的IDAC。 我可以用中断来解决这个问题,但这将花费太多时间,因为我是初学者。 谢谢 2pW.CyWrk.SaveV01.Zip 542.2 K PWMD DMAL TrutGel.CyWrk.CaseV01.Zip 513.6 K 以上来自于百度翻译 以下为原文 Hi, so I kind of went with another way of implementing the modulator, but now i am wondering how does DMA transfer to component_block (for ex. UART or IDAC or VDAC) work and basically how to set up DMA for a specific task? Let's say i have a PWM which generates a pulse on overflow, and I am using that pulse as a trigger for a DMA transfer. (project PWM_DMA_trigger) DMA would be transferring bytes from an array in memory to UART and then UART would send that data to PC and I would see it displayed on the terminal. But DMA doesn't transfer anything (as far as I can see), even when I trigger it manually via DMA_Trigger(); DMA is initialized via DMA_Start( (void*)array, (void*) UART_TX_FIFO_WR_PTR ); Since there is basically no information (or examples) about DMA to UART_tx for my PSoC kit in both DMA and UART documentation, and DMA wizard is not available for it, I am wondering how should I initialize the DMA? And here is another project using 2 IDAC7s (named 2PWM), where both DMA's tasks would be to transfer data from an array to IDAC on an overflow pulse from a PWM. I could probably solve it with interrupts, but that would take too much time since I'm a beginner. Thanks
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2103 浏览 1 评论
1849 浏览 1 评论
3667 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1784 浏览 6 评论
1534 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
420浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
435浏览 2评论
381浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
913浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 22:02 , Processed in 1.030733 second(s), Total 90, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号