蓝牙技术
直播中

石玉兰

7年用户 1417经验值
私信 关注
[问答]

CYW43907用jtag下载程序不成功怎么解决?

你好,我遇到一个问题,用jtag下载程序是不成功:
目前的状况是这样的,
使用的软硬件:
板子是根据手册自己画的,不是开发板
软件使用WICED-Studio 6.2
仿真器使用Jlink-V9(驱动使用_V770,这个版本支持CYW43907器件,所以没有拷贝f flashloader_ CYW4390x文件到segger的安装目录下,也没有修改<>文件)
做过以下修改:

  • 按照教程配置了Debug Configurations的相关设置。
  • 在wiced_toolchain_common.mk中修改为JTAG=jlink。并在...toolsOpenOCDjlink.cfg中的最后加上“reset_config trst_and_srst srst_open_drain”。
  • 在tools/OpenOCD/BCM4390x.cfg中用‘reset_config trst_and_srst srst_push_pull srst_nogate connect_assert_srst’代替‘reset_config srst_nogate connect_assert_srst’
  • 把make target名称修改为snip.scan-CYW943907AEVAL1F-debug JTAG=jlink download run
  • 用zadig-2.8.exe将jlink driver改为libusbk.现在下载时报错如下:11:35:08 **** Build of configuration Default for project 43xxx_Wi-Fi ****
    "E:\Users\Administrator\Documents\WICED-Studio-6.2\43xxx_Wi-Fi\make.exe" snip.scan-CYW943907AEVAL1F-debug JTAG=jlink download run
    MAKEFILE MAKECMDGOALS=snip.scan-CYW943907AEVAL1F-debug download run OTA2_SUPPORT is disabled
    Building Bootloader waf.bootloader-NoOS-NoNS-CYW943907AEVAL1F-P103-SoC.43909
    Building Serial Flash Loader App
    prgm hdr cnt=3
    total_size = 15492, entry_point = 0x696000
    Loadsegment_offset = 0xA0 segment_size = 15256, segment_pad = 0
    Loadsegment_offset = 0x3C40 segment_size = 32, segment_pad = 0
    Loadsegment_offset = 0x3C68 segment_size = 204, segment_pad = 0
    Finished Building Serial Flash Loader App
    Finished Building Bootloader

    snip.scan-CYW943907AEVAL1F-debug
    ----------------------------------|---------|---------|
    | | Static |
    Module | Flash | RAM |
    ----------------------------------+---------+---------|
    App | 0 | 548 |
    crc | 0 | 1102 |
    Interrupt Vectors | 0 | 498 |
    libc | 0 | 30679 |
    Networking | 0 | 16736 |
    NetX-Duo - Interfaces   Stacks | 0 | 16 |
    NVRam | 0 | 2210 |
    Other | 0 | 112163 |
    Packet Buffers | 0 | 71659 |
    platform | 0 | 820 |
    RAM Initialisation | 32 | 0 |
    resources | 0 | 32 |
    Ring_Buffer | 0 | 314 |
    Startup Stack   Link Script fill | 0 | 109 |
    ThreadX | 0 | 23134 |
    TLV | 0 | 92 |
    WICED | 0 | 8898 |
    Wiced_RO_FS | 0 | 1016 |
    WWD | 0 | 2958 |
    ----------------------------------+---------+---------|
    TOTAL (bytes) | 0 | 272984 |
    ----------------------------------|---------|---------|
    Creating Filesystem BCM94390x_targets.mk ...
    Downloading DCT ... build/snip.scan-CYW943907AEVAL1F-debug/DCT.bin @ SFLASH_DCT_LOC=0x00008000
    ./tools/common/Win32/mk_wicedfs32 build/snip.scan-CYW943907AEVAL1F-debug/filesystem.bin build/snip.scan-CYW943907AEVAL1F-debug/resources/Staging/
    Creating Filesystem Done
    Building apps lookup table
    WICED/platform/MCU/BCM4390x/BCM94390x_targets.mk:372: recipe for target 'download_dct' failed
    make.exe[1]: *** [download_dct] Error -1073741819
    make.exe[1]: *** Waiting for unfinished jobs....
    Makefile:351: recipe for target 'main_app' failed
    make: *** [main_app] Error 2
    11:35:12 Build Finished (took 3s.280ms)
                                                                                                                                                                                                                                                                                                                                                                                                        

回帖(1)

杨万富

2024-5-29 16:09:30
根据您提供的信息,您在使用JTAG下载程序时遇到了问题。以下是一些建议来解决这个问题:

1. 确保硬件连接正确:检查JTAG接口和JLink适配器之间的连接是否正确,以及您的板子是否正确连接到计算机。

2. 检查驱动程序:确保您已安装了正确的JLink驱动程序,并且它与您的操作系统兼容。

3. 检查OpenOCD配置:确保您的OpenOCD配置文件(jlink.cfg)正确设置了CYW43907器件。您可以尝试使用官方提供的配置文件,或者根据您的硬件情况进行修改。

4. 检查WICED-Studio设置:确保WICED-Studio中的Debug Configurations设置正确,包括JTAG接口、仿真器类型等。

5. 检查程序烧录过程:在烧录程序时,确保您遵循了正确的步骤,例如先擦除Flash,然后烧录程序。

6. 使用官方工具:如果可能的话,尝试使用官方提供的固件烧录工具,例如Broadcom的WICED Firmware Tool。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分