完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我在SPC570S-DISP上使用示例应用程序进行串行操作,来自serial_lld.c,看起来SD1映射到LINFLEX0,SD2映射到LINFLEX1。我没有读/写SD1的问题,但我需要至少2个串口,一个用于控制台,一个用于API。但是当我添加一行代码'sd_lld_start(& SD2,NULL); '在原始的'sd_lld_start(& SD1,NULL);'之后,应用程序停止工作。调试显示它卡在我的第一个xTaskCreate(...)函数调用中。如果我为SD2注释掉sd_lld_start,那么xTaskCreate函数调用可以完成并且应用程序可以工作。 我想知道我错过了什么。 我已将SPC570Sxx低电平驱动器组件RLA / LINFlex设置/ LINFLEX1设置为串行(默认为无)。我不知道是否还有其他地方需要改变。 最好的祝福, 工作 #serial 以上来自于谷歌翻译 以下为原文 Hi, I am using sample application for serial operation on SPC570S-DISP, from serial_lld.c, it looks like SD1 is mapped to LINFLEX0 and SD2 is mapped to LINFLEX1. I have no problem read/write SD1, however i need at least 2 serial port, one for console and one for API. But when i add a line of code 'sd_lld_start (&SD2, NULL); ' after the original 'sd_lld_start(&SD1, NULL);', the application stops working. Debug showing it is stuck in the first xTaskCreate (...) function call i had. If i comment out the sd_lld_start for SD2, then the xTaskCreate function call can complete and application works. I wonder what i have missed. I have set the SPC570Sxx Low Level Drivers Component RLA/LINFlex Settings/LINFLEX1 to Serial (default was None). I don't know if there is any other place i need to change. Best Regards, Job #serial |
|
相关推荐
4个回答
|
|
你好工作,
首先,您是否使用Pinmap Editor启用了LINFLEX1 Pins? 您应该使用PLS进入CPU Windows并在汇编程序模式下检查LR以检查生成断言的位置。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Job , First , Did you enable LINFLEX1 Pins with the Pinmap Editor ? You should go in CPU Windows with PLS and check the LR in assembler mode to check where the assert is generated. Best Regards Erwan |
|
|
|
嗨二湾,
我没有使用PinMap编辑器启用LINFLEX1,感谢您指出。现在我启用了它,程序可以运行,但是当我写入SD2时,我仍然无法在LINFLEX1 TX引脚上接收数据。 根据UM2025用户手册,LINFLEX1-TX映射到PD [8],但是当我使用PinMap编辑器时,它映射到PA [8],参见鼠标提示文字的附加屏幕截图,我能够去到I / O设置并将MSCR索引从8更改为56以使其映射到PD [8]。我使用了相同的LINFLEX0高级设置,但仍然无法从B21或C19接收数据。 我做错了什么或忽略了什么? 最好的祝福, 工作 以上来自于谷歌翻译 以下为原文 Hi Erwan, I didn't enable the LINFLEX1 with PinMap editor, thank you for pointing out that. Now that i have enabled it, the program can run, but i still not able to receive data on the LINFLEX1 TX pins when i wrote to SD2. According to the UM2025 User Manual, the LINFLEX1-TX is mapped to PD[8], however when i use the PinMap editor, it mapped to PA[8], see attached screen shot of the mouse tip text, I was able to go to I/O settings and change the MSCR Index from 8 to 56 to make it map to PD[8]. I used same advance setting of LINFLEX0, but still not able to receive data from B21 or C19. Anything i did wrong or overlooked? Best Regards, Job |
|
|
|
你好工作,
您是否尝试在RPI3或PC上读/写SD2? 如果RPI3,如果直接由GPIO,你需要一个模块 我们已经使用过LINFLEX0(串行PC)和LINFLEX1(串行=> BT设备) 它运作良好。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Job , Did you try to read/write SD2 on RPI3 or PC ? if RPI3, if directly by GPIO, you need a module We have already used LINFLEX0 (Serial PC) and LINFLEX1 (Serial => BT Device) it works well. Best regards Erwan |
|
|
|
嗨二湾,
我通过连接GPIO引脚从RP3读取SD1和SD2,我终于在不使用RS232到TTL转换器模块的情况下工作了。我发现从SD2读取与从SD1读取没有区别,我不知道为什么需要RS232到TTL转换器。 首先,我使用pinmap编辑器获取PIN名称,MSCR索引和功能索引,然后我转到I / O设置下的Board Initialization Component RLA,使用PIN名称,MSCR索引和功能索引(SSS)添加条目,我有不知道MSCR和SSS是什么,所以我花了一些时间将它们与值pinmap编辑器属性相提并论。 (我必须承认这并不容易)。我测试了LINFLEX1 TX的PIN 6和PIN 48,两者都有效,PIN 6属于PA [8],PIN48属于PD [8]。 SPC570S-DISP板有4 x 37 I / O引脚阵列,使用UM2025硬件概述,我试图为我的TX找到PD [8]的相应引脚, 我发现B21连接到PD [8],C19也连接到PD [8]。我连接到B21,我能够接收数据,但C19没有数据。当我试图访问LINFLEX0时,我发现A10没有数据,C11有数据,尽管两者都连接到PA [13]。 从UM2025硬件概述,第18/24页和第19/24页看下表,B21和C19是否都连接到PD [8]并应提供数据? 最好的祝福, 工作 以上来自于谷歌翻译 以下为原文 Hi Erwan, I read SD1 and SD2 from RP3 by connecting the GPIO pins, i finally made it work without using the RS232 to TTL converter module. I found read from SD2 is no difference compare to read from SD1, i don't know why a RS232 to TTL converter is needed. First i used pinmap editor to get the PIN name, MSCR index and function index, then i go to Board Initialization Component RLA under I/O Settings to add the entry using the PIN name, MSCR index and function index (SSS), i had no idea what MSCR and SSS is, so it took me awhile to assosicate them to the values pinmap editor properties. (i must admit it wasn't easy). I tested PIN 6 and PIN 48 for LINFLEX1 TX and both works, PIN 6 belongs to PA[8] and PIN48 belongs to PD[8]. The SPC570S-DISP board has 4 x 37 I/O pin array, using the UM2025 Hardware overview, i tried to find the corresponding pin for PD[8] for my TX, i found B21 is connected to PD[8] and C19 also connected to PD[8]. I connected to B21 and i was able to received data, but C19 has no data. When i was trying to access LINFLEX0, i found A10 had no data and C11 has data despite both connected to PA[13]. Look at below table from UM2025 Hardware overview, Page 18/24 and Page 19/24, does B21 and C19 both connected to PD[8] and should provide data? Best Regards, Job |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2720 浏览 1 评论
3236 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3645 浏览 6 评论
6033 浏览 21 评论
1334浏览 4评论
209浏览 3评论
196浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 08:09 , Processed in 1.197583 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号