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.

[参考译文] CCS/TM4C1294NCPDT:Tiva-tm4c129.c 中宏 PTR_SAFE_TO_EMAC_DMA 中的错误起始地址0x200.0000

Guru**** 2478765 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/690708/ccs-tm4c1294ncpdt-wrong-starting-address-0x200-0000-in-macro-ptr_safe_for_emac_dma-in-tiva-tm4c129-c

器件型号:TM4C1294NCPDT

工具/软件:Code Composer Studio

有一个宏

#define PTR_SAFE_TO_EMAC_DMA (ptr)(((uint32_t)(ptr)>= 0x2000000)&&  \
                                   ((uint32_t)(ptr)< 0x20070000)

文件中

TivaWare_C_Series-2.1.3.156/third_party/lwip-1.4.1/ports/Tiva-tm4c129/netif/Tiva-tm4c129.c

我认为起始地址:

0x2000000

应该有一个额外的零点、如下所示:

0x20000000

祝你一切顺利、

Piotr Kasprzyk

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

    感谢您的报告。 我同意它应该是0x20000000、因为它用于检查 SRAM 地址空间。 我认为这种情况不会很快就会被发现、因为它会传递给使用有效地址范围的任何应用、并且只是无法捕获无效地址。 我会将其添加到错误列表中。