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.

对协议栈细节问题

Other Parts Discussed in Thread: CC2530

求关于cc2530 DMA有没有具体一点的学习资料,还有nv具体怎么操作。

  • Zstack里面有DMA的代码参考,如串口DMA的操作

    关于NV数据是保存在flash的最后8个page中,在程序里面都有定义的

    #define OSAL_NV_PAGE_SIZE       HAL_FLASH_PAGE_SIZE

    包括从哪里开始,哪里结束,每一个item都有一个

    typedef struct
    {
    uint16 id;
    uint16 len; // Enforce Flash-WORD size on len.
    uint16 chk; // Byte-wise checksum of the 'len' data bytes of the item.
    uint16 stat; // Item status.
    } osalNvHdr_t;

    用来保存每一个item的信息

    关于NV的读写有专门的API,可以参考协议栈安装文件夹内的OSAL API 说明文档