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.

[参考译文] TM4C1294KCPDT:TM4C1294 EVK

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1252586/tm4c1294kcpdt-tm4c1294-evk

器件型号:TM4C1294KCPDT

大家好、

IAM 尝试在 TM4C1294 EVK (免费 RTOS + LWIP)中进行以太网通信、以便使用演示代码  Enet_tcpecho_client_lwip (无免费 RTOS)、  

所以、我曾尝试将免费 RTOS 与以太网接收 和发送任务集成在一起、但在连接建立阶段我的代码却受到了冲击。

我只需要一个演示项目(免费 RTOS + LWIP + TM4C1294 EVK +以太网 客户端发送 和接收 任务),这样我就可以尝试确定 API 步骤并尝试解决问题

当前 IAM 使用以下工程、但不含免费 RTOS 的演示工程

采取必要措施解决问题

 

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

    您好!

    我只需要一个演示项目(免费 RTOS + LWIP + TM4C1294 EVK +以太网 客户端发送 和接收 任务),这样我就可以尝试确定 API 步骤并尝试解决问题[/报价]

    抱歉、我们没有免费 RTOS + LWIP + TM4C1294 EVK +以太网 客户端    TM4C129的发送和接收任务这样的项目。 非 RTOS RAW  Enet_tcpecho_client_lwip 是我们针对 lwIP 提供的唯一客户端示例。  

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

    团队成员

    您能给我们提供 TM4C1294 EVK 的 I2C 代码吗,因为我们 在我们的代码中看不到任何时钟初始化, 如果 需要在我们的代码中进行任何更改,请更正我们。
    请尽快返回。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    //============================================================================
    // Name : i2cAPI.c
    // Author :
    // Version :
    // Copyright : Your copyright notice
    // Description : Tiva i2c in C++, Ansi-style
    //============================================================================
    /*
    * i2cAPI.c
    * Implementation of a i2c interface
    *
    * Copyright
    *
    * Redistribution and use in source and binary forms, with or without modification,
    * are permitted provided that the following conditions are met:
    * 1. Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * 2. Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the distribution.
    *
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

    几个问题:

     -在第52-71行之间,你初始化 I2C8。 但在76-108之间、您可以再次初始化 I2C8。 为什么要这样做?  

     -在你的128和188行,你硬编码 I2C0。 我想在 i2c_init()中启动 I2C8时使用 I2C8。 如果要使用 I2C0、I2C0的初始化在哪里? 这就是它不起作用的原因。  

     -确保您电路板上的 SDA 和 SDL 具有正确的上拉电阻,用于您要使用的 I2C 总线(例如 I2C8SDA 和 I2C8SCL)。  

     BTW、如果您对 I2C 有新问题、则应打开新主题进行讨论。 您不仅仅拒绝了我两周前关于以太网的回答。