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.

CC2540 UBL-USB升級失敗

Other Parts Discussed in Thread: CC2540

參考的是這個連結:

http://bbs.elecfans.com/forum.php?mod=viewthread&tid=431223&page=3#pid3256537

(5)  固件升级

    升级的方法很简单,只需要将生成的Bin文件拷贝到U盘中即可。

上文来自论坛。

 

    1. 卡在这一步,复制完成以后,设备并没有如愿地跑起来。(这个bin文件直接烧录到芯片上是可以跑起来的)。

    2. 邮件上带了一个官方工程,请试验一下(早些时候,我已经改过工程文件,包括宏,config,build的修改),path:C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\SimpleBLEPeripheral\CC2540DB,压缩包里面也有编译出来的bin文件,请试验。

4834.SimpleBLEPeripheral.zip

  • CC2540 的UBL升级,建议参考官方的文档Universal Boot Loader for SOC-8051 by USB-MSD Developer's Guide,路径: C:\Texas Instruments\BLE-CC254x-1.4.2.2\Documents
    另外请确保已安装最新版driver: e2e.ti.com/.../675209
  • 已经按照文档里面的配置去设置工程,发现,以下代码段并没有在bin文件中体现(修改该部分代码,生成bin文件的md5并未改变)。请支招
    #pragma location="AES_CTRL_BLK"
    static const __code aes_ctrl_blk_t _aesCtrlBlk = {
    { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },
    { 0xFFFF, 0xFFFF}, // Dummy spares (simple EBL uses for CRC & Shadow).
    119, // Image length in flash pages, not including SNV pages.
    0xFF, // Must be set to zero for downloading or to 0xFF for programming.
    { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09 } // Dummy Nonce.
    };
    #pragma required=_aesCtrlBlk
    需要调通的是蓝牙工程,并不是HostTest. HostTest是可以跑起来的。
  • 可以参考串口boot