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.

无法进入中断服务程序问题

Other Parts Discussed in Thread: CC2530

产品为了实现无线升级,所以用了oad-boot,现在原有产品使用的串口uart1,使用P1.6和P1.7,原有项目未使用zstack里的驱动,现需求变更要把程序改为uart0,使用P0.2和P0.3

我修改了初始化函数,接收和发送的中断服务例程,以及发送字符串函数,使用CCDEBUGER的时候发现无法进入ISR

发现这个问题后,我又使用原来的工程进行测试,发现也无法进入ISR,加上booter以后程序烧到芯片上后是可以正常跑的

我在debug前都重新烧录一下带booter的程序

不知道哪里操作有问题,请大神指教一下,初学CC2530,请赐教

  • 我把这段串口的程序拿出来,不在zstack里面跑,经测试是好的

    另外我每次debug的 时候都有这个提示,都怎么注意:This device has been locked for debugging.To enable debugging and continue with download,the device need to be erased.To erase and continue press Ok,or Cancel to abort.

    是不是因为这个把我的boot删除掉了,影响了ISR的调用

    上面这个问题怎么解,网上搜了下,有说是因为const变量溢出导致

    有大牛能指点下吗?

  • 有检查过xcl文件关于Flash的划分么,如果是Debug被lock,应该在lock bit上写入了东西。

    你可以看下swru191f.pdf的3.4.1 Lock Bits