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.

[参考译文] CC3235SF:在哪里可以查找 TIRTOS 项目的错误编号

Guru**** 2551300 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1132789/cc3235sf-where-can-i-look-up-error-numbers-for-a-tirtos-project

器件型号:CC3235SF

当我调用 Timer_open()时,我得到的结果是0,并且 errno 被设置为145。

如何查找此错误编号告诉我的信息?

如果我尝试 strerror (errno)、它只会返回"Unknown error"

 源代码\ti\drivers\net\wifi \errors.h 中不存在此错误、这是我找到任何错误代码列表的唯一位置(这不是与网络相关的问题)

通过信息、 我可以通过在系统运行的不同阶段使用相同的参数调用 Timer_open()来避免此错误-这可能是我的权变措施-但我觉得我只是猜测,除非我能够确定错误告诉我的是什么-可能会出现此错误 返回!

对项目目录上的字符串145进行强力搜索不会在我的项目或 TIRTOS 项目文件夹中为我提供任何内容(因此错误编号可能基于偏移量)。

此外、我发现 CCS 中的搜索函数(Ctrl-H)完全无用-例如、如果我让它在工作区中搜索名为"errors.h"的文件、它将无法找到上述文件、即使它是从工作区引用的

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

    您好 Chris、

    我正在寻找错误编号、并会不断更新。 根据您的快速说明、我建议在尝试调用 timer_open 前仔细检查计时器是否已初始化。

    /*!
     *  @brief  Function to initialize a timer. This function will go through
     *          all available hardware resources and mark them as "available".
     *
     *  @pre    The Timer_config structure must exist before this function is
     *          called, and must be persistent. This function must be called
     *          before any other timer driver APIs.
     *
     *  @sa     Timer_open()
     */
    extern void Timer_init(void);
    
    /*!
     *  @brief  Function to initialize a given timer peripheral specified by the
     *          index argument. The Timer_Params specifies the mode the timer will
     *          operate in. The accuracy of the desired period is limited by the
     *          the clock. For example, a 100 MHz clock will have a tick resolution
     *          of 10 nanoseconds. This function takes care of timer resource
     *          allocation. If the particular timer is available to use, the timer
     *          driver acquires it and returns a Timer_Handle.
     *
     *  @pre    Timer_init() has been called.
     *
     *  @param[in]  index         Logical peripheral number for the timer indexed into
     *                        the Timer_config table.
     *
     *  @param[in]  params        Pointer to an parameter block, if NULL it will use
     *                        default values.
     *
     *  @return A #Timer_Handle upon success, or NULL. NULL is returned if the
     *          desired period results in overflow or saturation of the timer, or
     *          if the timer resource is already in use.
     *
     *  @sa     Timer_init()
     *  @sa     Timer_close()
     */
    extern Timer_Handle Timer_open(uint_least8_t index, Timer_Params *params);

    此致、

    Rogelio

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

     platform.c 中的代码包括:

    Timer_open()在 fp_init()中成功运行,但在 audio_init()中打开另一个计时器失败