关于FR801xH修改Mac地址失败的问题



  • 
    /*********************************************************************
     * @fn      user_custom_parameters
     *
     * @brief   initialize several parameters, this function will be called 
     *          at the beginning of the program. 
     *
     * @param   None. 
     *       
     *
     * @return  None.
     */
    void user_custom_parameters(void)
    {
        struct chip_unique_id_t id_data;
    
        efuse_get_chip_unique_id(&id_data);
    
        __jump_table.addr.addr[0] = 0x55;
        __jump_table.addr.addr[1] = 0xEE;
        __jump_table.addr.addr[2] = 0x88;
        __jump_table.addr.addr[3] = 0x17;
        __jump_table.addr.addr[4] = 0x9C;
        __jump_table.addr.addr[5] = 0x00;
        
        id_data.unique_id[5] |= 0xc0; // random addr->static addr type:the top two bit must be 1.
        // memcpy(__jump_table.addr.addr,id_data.unique_id,6); 
        __jump_table.system_clk = SYSTEM_SYS_CLK_48M;
        jump_table_set_static_keys_store_offset(JUMP_TABLE_STATIC_KEY_OFFSET);
    
        retry_handshake();
    }
    
    

    你好,我在上述代码片段中修改了Mac地址,但是通过gap_address_get获取之后,还是原来的mac。请问下修改mac地址的方法是怎样的呢?





  • Mac地址可以烧录到Flash里面吗?MCU后面每次重启的时候是Flash中的Mac地址。