完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好-
我显然在跟随PSoC 6 101:第4课FreRotos中缺少了一步。 我使用PSoC 6 BLE先锋软件CY8CKIT-062-BLE与CY8C637BZI BLD53器件 这个项目不会建造。 PSoC Creator 4.2抱怨RTOS函数未声明。(请参阅附图)。 注意,在生成应用程序之后,FielToSoFig .h确实出现在项目文件中。 我也很好奇在附录中的第15行: 空格ReDII任务(空格*ARG) “*ARG”在最初被键入并接受为空的Delphi任务(无效)之后,在课程视频中出现(如自动填充动作)。 它引起了我的编辑的警告抱怨(显然也在视频中)——这对构建结果的失败没有任何影响。 我还注意到视频教程在XTaskCube(第31行)上有警告,但似乎在视频中建立了OK。 你能给我指点一下这里发生了什么事吗? 多谢, 克里斯 自由输出 178.9 K 以上来自于百度翻译 以下为原文 Hello - I am clearly missing a step in following the PSoC 6 101: Lesson 4 FreeRTOS. I am using the PSoC 6 BLE Pioneerkit CY8CKIT-062-BLE with device CY8C6347BZI-BLD53 The project will not build. PSoC Creator 4.2 is complaining that The RTOS functions are undeclared. (Please see attached image.) Note that FreeRTOSConfig.h does appear in the project file after the Application is Generated. I am also curious as to the line 15 in the attached program: void LED_TASK(void *arg) the " *arg " appeared magically (like an auto-fill action) in the Lesson video after originally being typed and accepted as void LED_TASK(void) It raises a warning complaint from my editor (and apparently in the video, too) - it makes no difference in failure of the build results I also note the the Lesson video has warnings on xTaskCreate (line 31) but seems to build OK in the video. Can you point me to some hints as to what is going on here? Many thanks, Chris
|
|
相关推荐
4个回答
|
|
嗨,克里斯,
所有FRIERTOS任务函数都应该接受一个空指针作为参数。请参阅FrRetos中编写RTOS任务-实现任务作为细节的永久循环。 传递给任务的变量是XTaskCuffic API的“PVPATIONS”输入。这是一个很少使用的特性,正如您可以从代码中的这个参数传递NULL所看到的。通过在任务函数中使用此代码,可以删除未使用参数的警告: *移除未使用参数的警告*/ (空隙)精氨酸; 这就是说,构建失败是由于不同的问题。为了使用FreeRTOS和与任务相关的API,必须包括以下头文件: 其中包括“自由人H” 包括“任务h” 如果使用队列、信号量、RTOS定时器等,则需要附加的头文件: 包括“队列H” 包括“Simfr.h” 包括“定时器H” 您可以在这里找到一个Fielrtos API的列表、它们的细节、它们所需的头文件等:Fieltos API类别 如果你有任何其他问题,请告诉我。 当做 尼丁 以上来自于百度翻译 以下为原文 Hi Chris, All FreeRTOS task functions should accept a void pointer as parameter. See Writing RTOS tasks in FreeRTOS - implementing tasks as forever loops for details. The variable that gets passed into the task is the "pvParameters" input to xTaskCreate API. This is a rarely used feature, as you can see from passing a NULL for this parameter in your code. You can remove the warning for unused parameter by using this code in the task function: /* Remove warning for unused parameter */ (void)arg; That being said, the build failure is due to a different issue. In order to use FreeRTOS and Task related APIs, you have to include the following header files: #include "FreeRTOS.h" #include "task.h" Additional header files are required if you're using queues, semaphores, RTOS timers etc: #include "queue.h" #include "semphr.h" #include "timers.h" You can find a list of FreeRTOS APIs, their details, header files required for them to work, etc here :FreeRTOS API categories Please let me know if you have any additional questions. Regards Nidhin |
|
|
|
60user48 发表于 2018-10-31 19:50 你好Nidhin 非常感谢你的帮助。 这似乎已经修复了免费RTOS的构建问题。 现在,PSoC Creator 4.2找不到任何目标 (没有选择“调试目标”) 我重新启动PSoC Creator计划和董事会,无济于事。 (当我尝试PSoC 4先锋套件时,我也得到了类似的结果。 Windows系统显示了CyPress KiPrim2,但抱怨没有司机-见下文: 我应该重新安装创建者4.2吗? -克里斯 以上来自于百度翻译 以下为原文 Hi Nidhin- Many thanks for the help. That seems to have fixed the build problem for the Free RTOS. Now, however, PSoC Creator 4.2 cant find any target (Presents no targets on "Select Debug Target") I have rebooted PSoC Creator program and board, to no avail- ( I got a similar result when trying the PSoC 4 Pioneer Kit. Windows System shows the Cypress KitProg2 but complains of no driver - see below: Should I re-install Creator 4.2? - Chris |
|
|
|
嗨,克里斯, KITPRO2驱动程序的问题可能是由于PSOC程序员的安装中断。要恢复,请尝试以下步骤。 1。点击删除设备按钮(从上面的图像) 2。从PC断开工具包,卸载PSoC程序员。 三。下载并安装最新版本的PSoC Programmer(3.27.1)从赛普拉斯网站。 4。将工具包连接到PC,等待KITPRO2驱动程序的安装。现在PSoC Creator应该能够检测和编程CY8CKIT-062-BLE。 顺便说一下,你说你和PSoC 4先锋工具包有类似的问题。那么,这会不会是PC问题呢?你是怎么恢复过来的?也许这个解决方案也会对你有所帮助。 干杯! 以上来自于百度翻译 以下为原文 Hi Chris, KitProg2 driver issue could be due to broken PSoC Programmer installation. To recover, try following steps. 1. Click on Remove device button (from the your above image) 2. Disconnect the kit from the PC and uninstall PSoC Programmer. 3. Download and install latest version of PSoC Programmer (3.27.1) from Cypress website. 4. Connect the kit back to your PC and wait for the KitProg2 driver installation. Now the PSoC Creator should be able to detect and program the CY8CKIT-062-BLE. BTW, you said you had similar issue with PSoC 4 Pioneer Kit. So, could that a PC problem? How did your recover that? Probably that solution would help you here as well. Cheers! |
|
|
|
嗨,SRDS, 谢谢你的建议。它似乎并没有改变这个问题。 我相信这可能是一个PC或Windows的问题,因为这两个工具包工作,然后都停在一起。 我没有恢复与PSoC 4先锋要么(我曾尝试过PSOC 6目标无法找到。) 我想我最好的办法是从头开始重新安装整个PSoC Creator包。它在工作。 我愿意探索其他PC问题,如果有人有想法。 谢谢。 以上来自于百度翻译 以下为原文 HI srds, Thanks for the suggestion. It does not seem to have changed the problem. I can believe this might be a PC or windows issue as both kits were working and then both stopped together. I did not recover with PSoC 4 Pioneer either (I had tried it after the PSoC 6 target could not be found.) I am thinking my best bet is to reinstall the entire PSoC Creator package from scratch. It was working. I am open to exploring other PC issues if anyone has ideas. Thanks. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2098 浏览 1 评论
1845 浏览 1 评论
3664 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
556浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
409浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
433浏览 2评论
379浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
905浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 13:31 , Processed in 1.114229 second(s), Total 84, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号