完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在使用SPC5studio版本5.2.3处理SPC560B54L5板。 由于EED(EEPROM仿真驱动程序)的代码未在5.2.3版本中自动生成,因此我在本地更新了EED插件,在ST社区中共享 现在,如果我只使用EED组件,应用程序运行正常。但是当我尝试在应用程序中同时添加Flash和EED组件时,它会将错误称为“FlashInit()'的冲突类型”,因为两个驱动程序的FlashInit()原型相同,请参考FlashInit ()EED组件的eed_flash.h和Flash组件的ssd_c90fl.h。它与正式论证不同。 在我的应用程序中,我应该同时使用EED和Flash组件。我正在使用此类检查附加我的测试应用程序和编译错误屏幕截图,并为解决报告的问题提供宝贵的建议。 提前致谢 问候, R.Santhamurthy 以上来自于谷歌翻译 以下为原文 Hello All, I am working on SPC560B54L5 board using SPC5studio version 5.2.3. Since the code for EED(EEPROM Emulation Driver) is not getting generated automatically in version 5.2.3, I updated the plugin for EED locally, shared in ST community Now, if I am working only with EED component the application is working fine. But when I am trying to add both Flash and EED component together in the application, it is giving error as ''conflicting types for FlashInit()'', since the prototype of FlashInit() for both the drivers is same, please refer FlashInit() in eed_flash.h of EED component and ssd_c90fl.h of Flash component. It differs only with the formal argument. In my application I should use both the EED and Flash components.I am attaching my test application and compilation error screenshot with this kindly check and provide your valuable suggestion for resolving the reported issue. Thanks in Advance Regards, R.Santhamurthy |
|
相关推荐
5个回答
|
|
你好 ,
这不是一个经典案例。 无论如何,你可以使用补丁模式机制。 对于'冲突类型的FlashInit()',您可以修补EED组件的这两个文件eed_flash.h和Flash组件的ssd_c90fl.h,以适应2个结构或使用编译开关。 一个 将为您的项目专门创建patch.xml,并为您的组件文件创建一个装饰器。您将能够清理/生成。 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello , It is not a classic case. Anyway , you can use the patch mode mecanism. for the 'conflicting types for FlashInit()' you can patch these 2 files eed_flash.h of EED component and ssd_c90fl.h of Flash component to adapt the 2 structures or use a compilation switch. A patch.xml will be created dedicated for your project and a decorator will be created for your component files.you will be able Clean/Generate. Best regards Erwan |
|
|
|
嗨二湾,
补丁模式已启用,并且还生成了相应的补丁和装饰器,但我在构建应用程序时遇到了困难。我附上下面的错误消息控制台截图供您参考。 请指导我成功构建应用程序。 谢谢 问候, R.Santhamurthy 以上来自于谷歌翻译 以下为原文 Hi Erwan, Patch mode is enabled and the corresponding patches and decorators are also generated but I am facing difficulty in building the application successfully. I am attaching the error message console screenshot below for your reference. Kindly guide me in building the application successfully. Thankyou Regards, R.Santhamurthy |
|
|
|
你好
Santhamurthy, 我已经和专家核实了。 设置仿真EEPROM组件时,无需集成闪存驱动程序组件。 从仿真EEPROM组件,您可以访问Flash驱动程序API。 检查相关的演示应用程序和EEPROM仿真驱动程序中提供的文档。 Cf第6章(Flash Management API) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 hello Santhamurthy , I have checked with expert. You do not need to integrate Flash driver component when Emulated EEPROM component is set. from the Emulated EEPROM Component you can access to the Flash Driver API. Check the Demos applications associated and the document provided in EEPROM Emulation Driver. Cf Chapter 6 (Flash Management API) Best regards Erwan |
|
|
|
你好
Santhamurthy, 如果你想用CFLASH写,你可以尝试这个。 也许,你应该解锁CFLASH。 '如果选定的主阵列块或阴影行被锁定以进行编程,那些 块或阴影行不会被编程,FlashProgram仍然会返回 C90FL_OK。用户需要使用DataVerify API验证编程数据。小心,您可能与您的程序发生冲突。 (application.ld) 最好的祝福 二万 以上来自于谷歌翻译 以下为原文 Hello Santhamurthy, If you want to write in CFLASH, you can try this. Maybe, you should unlock CFLASH. 'If the selected main array blocks or the shadow row is locked for programming, those blocks or the shadow row will not be programmed, and FlashProgram will still return C90FL_OK. User needs to verify the programmed data with DataVerify API.'be cautious, you can have a conflict with your program. (application.ld) Best regards Erwan |
|
|
|
嗨二湾,
我定义了一个带有C-flash起始地址的flashconfig结构,如下所示。当我尝试初始化flashconfig结构时,我面临初始化错误。 ()的返回值是0x00000020,它指的是''。但我确信在我的代码中初始化C-flash内存扇区之前,我没有启动写入功能。 另外请告诉我如何使用EED驱动程序解锁锁定和影子内存,因为在EED驱动程序组件中找不到相同的API。 我的要求是将1kb数据写入EPROM并同时将超过100kb的数据写入C-flash存储器扇区。由于它无法同时使用EED和闪存驱动器组件,因此建议如何通过克服限制来覆盖两者。 EEPROM_CONFIG flashconf = { 16, 0, 0, CFLASH_REG_BASE, 0, 00000000, FLASH_START_ADDRESS, & sharpif定义(_SPC560Dxx_)||定义(_SPC560P34L1_)|| 定义(_SPC560P34L3_)||定义(_SPC560P40L1_)|| 定义(_SPC560P40L3_)||定义(_SPC56ECxx_) TRUE / * Flash具有32位访问权限* / &安培; sharpelse FALSE / * Flash具有64位访问权限* / &安培; sharpendif }; CFLASH_REG_BASE是0xC3F88000 FLASH_START_ADDRESS是0x00000000 提前致谢 带着敬意, R.Santhamurthy 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hi Erwan, I defined a flashconfig structure with C - flash start address as shown below. When I tried to initialize the flashconfig structure through I am facing initialization error. Return value of () is 0x00000020 which refers ''. But I am sure that I am not initiating write function before initializing C-flash memory sector in my code. Also kindly clarify me how to unlock the locked and shadow memory by using the EED driver since there is no API found in the EED driver component for the same. My requirement is to write 1kb of data into EPROM and to write more than 100kb of data into C-flash memory sector simultaneously. Since it is unable to use both EED and flash driver components together kindly suggest how could I cover the both by overcoming the limitations. EEPROM_CONFIG flashconf = { 16, 0, 0, CFLASH_REG_BASE, 0, 0x00000000, FLASH_START_ADDRESS, &sharpif defined(_SPC560Dxx_) || defined(_SPC560P34L1_) || defined(_SPC560P34L3_) || defined(_SPC560P40L1_) || defined(_SPC560P40L3_) || defined(_SPC56ECxx_) TRUE /* Flash has 32 bit access */ &sharpelse FALSE /* Flash has 64 bit access */ &sharpendif }; CFLASH_REG_BASE is 0xC3F88000 FLASH_START_ADDRESS is 0x00000000 Thanks in Advance With Regards, R.Santhamurthy Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2634 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3609 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
583浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1358浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 23:54 , Processed in 1.123258 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号