FR3036D例程使用debug的时候卡在初始化阶段



  • 0_1795575003506_a439a0cd-09ff-4e04-b4f1-de033908cc23-image.png linking...
    ..\src\Platform_abstraction\third_party\components\toolchain\armcc\fr101x_flash.sct(31): warning: L6314W: No section matches pattern *btdm_controller.lib(ZI).
    ..\src\Platform_abstraction\third_party\components\toolchain\armcc\fr101x_flash.sct(31): warning: L6314W: No section matches pattern *btdm_controller.lib(RW).
    ..\src\Platform_abstraction\third_party\components\toolchain\armcc\fr101x_flash.sct(43): warning: L6314W: No section matches pattern *(NOINIT).
    Program Size: Code=293752 RO-data=48372 RW-data=18080 ZI-data=45544
    Finished: 0 information, 3 warning and 0 error messages.
    After Build - User command #1: "..\src\Platform_abstraction\third_party\components\toolchain\armcc\post_process.bat" "ble_simple_periphreal" "D:\Work_space\Engineering_Code\BLE-BR1601A01\BLE-FR\keil\Objects\ble_simple_periphreal.axf" "D:\Work_space\Application\Keil\ARM\ARMCLANG\include"
    20261125
    10:51:05.42
    program target with file D:\Work_space\Engineering_Code\BLE-BR1601A01\BLE-FR\keil\output\ble_simple_periphreal_burn.bin
    ".\Objects\ble_simple_periphreal.axf" - 0 Error(s), 3 Warning(s).
    Build Time Elapsed: 00:00:17
    我把这个宏直接移到代码里,程序一直在while里,但是对应寄存器#define QSPI_APB_BASE (0x500C8000)这个里面的数据显示这一位是1.但是就是一直在while里,这是我的sct
    ROM 0x10002000 0x100000
    {
    ER_RO 0x10002000
    {
    startup_fr1010.o (RESET, +FIRST)
    *(+RO)
    }

    RAM_CODE 0x1FFFC000 0x3f80
    {
        *(ram_code)
    }
    
    APP_PRAM_DATA +0
    {
        *(app_pram_data)
    }
    
    LTE_RX_BUFFER +0 UNINIT 0x1000
    {
        *(lte_rx_buffer)
    }
    
    PATCH_TABLE 0x20001c80
    {
        *(patch_table)
    }
    
    HOST_DATA +0
    {
        *btdm_controller.lib (+ZI, +RW)
        *btdm_host.lib (+ZI, +RW)
    }
    
    ER_RW +0
    {
        *(+RW)
        *(+ZI)
    }
    
    ER_RW_1 +0 UNINIT
    {
        *(NOINIT)
        *(.bss.NoInit)
    }
    
    ScatterAssert(ImageLength(APP_PRAM_DATA) <= 0x0a00)
    ScatterAssert((ImageLength(RAM_CODE) + ImageLength(APP_PRAM_DATA) + ImageLength(LTE_RX_BUFFER)) <= 0x3f80)
    ScatterAssert((ImageLength(PATCH_TABLE)+ImageLength(HOST_DATA) + ImageLength(ER_RW) + ImageLength(ER_RW_1)) <= 0xe380)
    

    }
    希望更给一些方案排查出问题在哪。


  • Global Moderator

    @fei
    不debug情况下能跑嘛

    jlink配置是参考的手册配置的吗