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.

ccs7.4调试am335x-evmsk的spl遇到问题



刚刚接触am335x,对uboot和linux都不熟悉,请各位高手请帮忙!

我用的sdk版本是05.00.00.15,按照官方的文档使用ccs下载spl到ram,可以调试运行,但是运行到watchdog_disable函数的第一行就会出现数据终止异常,请问这个是什么问题?这么解决。谢谢

static void watchdog_disable(void)
{
    struct wd_timer *wdtimer = (struct wd_timer *)WDT_BASE;

    writel(0xAAAA, &wdtimer->wdtwspr);
    while (readl(&wdtimer->wdtwwps) != 0x0)
        ;
    writel(0x5555, &wdtimer->wdtwspr);
    while (readl(&wdtimer->wdtwwps) != 0x0)
        ;
}

          watchdog_disable():
402f0f12:   F3BF8F5F            dmb        sy                                         运行到这里就直接调到异常向量表了
402f0f16:   F64A22AA            movw       r2, #0xaaaa
402f0f1a:   4B1F                ldr        r3, [pc, #0x7c]
402f0f1c:   649A                str        r2, [r3, #0x48]