完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在修改别人的代码。这是一个火腿收音机项目。在某个时间点,与一些以前版本的创建者,附加的代码工作。我不知道那个版本是什么。我遇到的问题是当观看主。C源的bootloader项目报告:“期望函数体后函数声明“在线: CysISR(MySeId中断)。 另外,有很多错误报告时,查看morse_isr C文件。我相信这是简单的东西,我看但我不清楚消息(S),我感觉这是造成项目不正确。然而,这些代码并编译没有错误或警告。我很困惑 背景信息:引导感官的“引导”销如果活跃,启动一个中断例程闪烁LED一个消息,“引导”在这种情况下,电话bootloader_start()。这是造物主三引导主机可以上传新的固件。(注:该led_test是检验以确定引导项目正常使用bootloadble项目) 如果脚不活跃,它通过启动主程序。 如果新的固件上传与miniprog3装置,该装置根本没有什么。USB接口不启动,指示灯不闪烁。 我希望这是有意义的。抱歉多个字体。iDoOs不适合这个网站。谢谢,罗恩 UBFSKBooToule01.CyWrk.CaseVo.02.Zip 639.1 K 以上来自于百度翻译 以下为原文 Hi, I am modifying someone else's code. This is for a ham radio project. At some point in time, with some previous version of Creator the attached code worked. I have no idea what that version was. The issue that I am experiencing is the when viewing the main.c source of the bootloader project is reporting: "expected function body after function declaration" at the line: CY_ISR(morse_interrupt). Also, there many errors reported when viewing the morse_isr.c file. I'm sure it is something simple that I am over looking but I can't seem to clear the message(s) and I have a feeling this is causing the project not to function correctly. However, the code does compile without errors or warnings. I'm confused Background info: The bootloader senses a "boot" pin and if active, initiates an interrupt routine to blink a led with a message, "BOOT" in this case and calls bootloader_start(). This is so Creator 3 bootloader host may upload new firmware. (Note: the led_test is a bootloadble project for testing to determine if the bootloader project is functioning correctly) If the pin is not active, it passes through this and starts the main program. If the new firmware is uploaded to the device with the miniprog3, the device simply does nothing. The USB interface is not activated and the LED does not blink. I hope this makes sense. Sorry for the multiple fonts. IE does not play well with this web site. Thanks, Ron |
|
相关推荐
21个回答
|
|
嗨,鲍伯,
沿着“厚如砖”的路线,花了一段时间才发现了什么是错误的。当引导引脚不活动时,该函数将调用:BooLoad EngRunCuffApple。显然PSoC创建者3 SP1不再对外化这个调用。在生成的源文件Bootloader .C.中调用Iset,我的源码中的什么叫IMAI调用这个函数调用?这将解决这个问题,如果我可以直接从我的应用程序调用它。我把这个放在我的源头: 外部无效BooLoad SerixApple应用程序(无效)CyLoad;但它没有帮助。编译器仍然错误:构建错误:L127:未解析的外部符号符号:BooLoad EngRunCuffApple。在LNKE里有什么东西要设置吗? 谢谢, 罗恩 以上来自于百度翻译 以下为原文 Hi Bob, Along the line of being "thick as brick" it took a while to figure what is wrong I located an old original source. When the boot pin is not active this function call is made: Bootloader_LaunchApplication . Apparently PSoC Creator 3 SP1 no longer externalizes this call. I found the call in the generated source file, bootloader.c. What do I set in my source so that I may call this function call? This will solve the issue if I can call it directly from my application. I put this in my source: extern void Bootloader_LaunchApplication(void) CYSMALL; but it didn't help. Compiler still errors off with: Build error: L127: UNRESOLVED EXTERNAL SYMBOL SYMBOL: Bootloader_LaunchApplication . Is there something I need to set up in the lnker? Thanks, Ron |
|
|
|
这是骇人的黑客:
BooLoad ServStIGRunRyType(BooLoad EngestAppApp); CysAcReSeSe(); 在MIN()中使用它切换到可引导加载。 鲍勃 以上来自于百度翻译 以下为原文 Here is the fricken hack: Bootloader_SET_RUN_TYPE(Bootloader_START_APP); CySoftwareReset(); use that in main() to switch to Bootloadable. Bob |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2103 浏览 1 评论
1849 浏览 1 评论
3667 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1784 浏览 6 评论
1534 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
568浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
422浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 00:10 , Processed in 0.758459 second(s), Total 50, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号