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.

[参考译文] CC1310:RfCarrierWave 项目代码移植问题。

Guru**** 2482225 points
Other Parts Discussed in Thread: LAUNCHXL-CC1310, CC1310

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1230549/cc1310-rfcarrierwave-project-code-porting-issue

器件型号:CC1310

大家好、

以下是客户的请求:

他从 SimpleLink CC13x0 SDK (4.20.02.07)加载了 rfCarrierWave 项目、并且该项目在编程到 LAUNCHXL-CC1310后正常运行。

现在他想在4×4mm 的 CC1310芯片中运行代码、参考了 E2EChina: https://e2echina.ti.com/blogs_/b/the_process/posts/simplelink-mcu-cc1310-vqfn48-7-7在论坛上的代码移植指南 - vqfn32-5-5、 我在 E2E 中找不到相同的指南。 但他不知道此项目中使用了哪些 IO 端口。

注释掉 CC1310_LAUNCHXL.c 文件中的部分代码后,可以在4*4芯片上运行,如下所示:

const PIN_Config BoardGpioInitTable[] = {

    CC1310_LAUNCHXL_PIN_RLED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,       /* LED initially off          */
    CC1310_LAUNCHXL_PIN_GLED | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MAX,       /* LED initially off          */
    //CC1310_LAUNCHXL_PIN_BTN1 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS,          /* Button is active low       */
    //CC1310_LAUNCHXL_PIN_BTN2 | PIN_INPUT_EN | PIN_PULLUP | PIN_IRQ_BOTHEDGES | PIN_HYSTERESIS,          /* Button is active low       */
   // CC1310_LAUNCHXL_SPI_FLASH_CS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MIN,  /* External flash chip select */
    CC1310_LAUNCHXL_UART_RX | PIN_INPUT_EN | PIN_PULLDOWN,                                              /* UART RX via debugger back channel */
    CC1310_LAUNCHXL_UART_TX | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL,                         /* UART TX via debugger back channel */
   // CC1310_LAUNCHXL_SPI0_MOSI | PIN_INPUT_EN | PIN_PULLDOWN,                                            /* SPI master out - slave in */
   // CC1310_LAUNCHXL_SPI0_MISO | PIN_INPUT_EN | PIN_PULLDOWN,                                            /* SPI master in - slave out */
   // CC1310_LAUNCHXL_SPI0_CLK | PIN_INPUT_EN | PIN_PULLDOWN,                                             /* SPI clock */

    PIN_TERMINATE

/*
 *  ======== CC1310_LAUNCHXL_initGeneral ========
 */
void CC1310_LAUNCHXL_initGeneral(void)
{
    Power_init();

    if (PIN_init(BoardGpioInitTable) != PIN_SUCCESS) {
        /* Error with PIN_init */
        while (1);
    }

    /* Perform board-specific initialization */
    //Board_initHook();
}

目前有两个问题:

1、客户不知道对这部分代码的评价有什么影响,移植成功;

2.修改后的代码运行,但输出功率比7*7低10dB 左右。 该值是从智能射频获得的,7*7 Launchpad 的输出 与智能射频中的值相同。

您能检查一下这个问题吗?

谢谢。此致、

Nick

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

    rfCarrierWave 不使用任何 IO 意味着 BoardGpioInitTable 中的所有内容都可以注释掉

    - Board_initHook ();将 Launchpad 上的外部闪存设置为休眠模式,但如果您不在板上使用它,则不必运行休眠例程

    -我建议你要求一个审查,因为输出功率应该接近等于4x4与7x7在相同的设置。