cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC™ Creator & Designer

kun120510
New Contributor

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

0 Likes
1 Solution
Roy_Liu
Moderator
Moderator

是的 ,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

View solution in original post

0 Likes
4 Replies