gdb调试stm32时遇到0x00000000 in ?? ()

2019-03-23 19:12发布

static void DEV_ReadCommSets(void)
{
  UINT32 i, value;
   
    tParaSet *pSets = DevCommSets;

    DF_ReadMainMemoryPage(SAVE_DEV_COMM_SETS_PAGE,
                          DEV_ReadData, COMM_MAX_SETS * 4 + 4);

    for (i = 0; i < COMM_MAX_SETS; i++)
    {
        value = BytesToDword(&DEV_ReadData[i * 4]);

         pSets->value = value;
        if ((pSets->value > pSets->MaxValue) || (pSets->value < pSets->MinValue))
        {
            pSets->value = pSets->DefValue;
        }
        pSets++;
    }

    DEV_CommSetsCrc = BytesToDword(&DEV_ReadData[i * 4]);
}

(gdb) c
Continuing.

Breakpoint 1, DEV_ReadCommSets () at device.c:984
984                 pSets->value = value;
(gdb) n
0x00000000 in ?? ()    出现这种问题,请问我该怎么查,谢谢
(gdb) n
Cannot find bounds of current function  
(gdb) n
Cannot find bounds of current function 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。