This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28P650DK:错误:在从站堆栈代码工具 (SSC) 中启用 ESC_EEPROM_ACCESS_SUPPORT 时、标识符"ESC_RD"未定义

Guru**** 2837620 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1584309/tms320f28p650dk-error-identifier-esc_rd-is-undefined-when-esc_eeprom_access_support-is-enabled-in-slave-stack-code-tool-ssc

器件型号: TMS320F28P650DK

您好、

当我在 SCC 项目中启用 ESC_EEPROM_ACCESS_SUPPORT 并生成新的子器件文件并尝试对其进行编译时、会收到以下编译器错误。
    #20:标识符“ESC_RD"在“在文件 ecatappl.c 中未定义
我使用了示例工程“f28p65x_cpu1_echback_solution"作为“作为我应用的起点、并遵循了 ethercat_cpu1.pdf Slave_Controller_User_Guide

如果您希望获得任何帮助、
Rob  
 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、您可以将以下行添加到您的 HAL 文件中。

    #if ESC_EEPROM_ACCESS_SUPPORT
    #define     ESC_RD                    0x02 /**< \brief Indicates a read access to ESC or EEPROM*/
    #define     ESC_WR                    0x04 /**< \brief Indicates a write access to ESC or EEPROM.*/
    #endif 

    此致

    库纳尔。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    谢谢您、Kunal。

    ——罗伯