CY8C4126AXI 在编译时报错Build error: L6985E: 详情如下图所示

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
kun120510
Level 1
Level 1
First reply posted First question asked Welcome!

CY8C4126AXI 在编译时报错 Build error: L6985E: 详情如下图所示问题详情 2021-07-14.png

0 点赞
1 解答
Roy_Liu
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 10 questions asked

是的 ,EEPROM 会造成此问题,参考一下EmEEPROM component datasheet.

Creator里的EePROM code example 针对MDK/GCC 和IAR 编译器是有宏定义的:

#if defined (__ICCARM__)
#pragma data_alignment = CY_FLASH_SIZEOF_ROW
const uint8_t Em_EEPROM_em_EepromStorage[Em_EEPROM_PHYSICAL_SIZE] = {0u};
#else
const uint8_t Em_EEPROM_em_EepromStorage[Em_EEPROM_PHYSICAL_SIZE]
__ALIGNED(CY_FLASH_SIZEOF_ROW) = {0u};
#endif /* defined (__ICCARM__) */

Roy Liu

在原帖中查看解决方案

0 点赞
4 回复数