您好,我参考例程尝试将下图中的LED灯点亮,但是仿真时io口寄存器受控制,挂示波器看io口电平不变,程序见附件,麻烦帮忙看一下,程序是不是有问题,谢谢
4555.voice.rar
Nancy Wang:
CSL里面有控制gpio的例程,可以测试一下。
ezdsp5535_BSL_RevC\ezdsp5535_v1\c55xx_csl\ccs_v4.0_examples\gpio
support.spectrumdigital.com/…/
at_will:
回复 Nancy Wang:
您好,我是自己画的板子,然后仿照GPIO例程去将io口配置成输出,仿真时查看寄存器值是按照程序写的配置的,但是用示波器量IO口电平没有变化。
但是每次查看完寄存器值都提示如下错误:
C55xx: Trouble Reading Memory Block at 0x1c06 on Page 2 of Length 0x1: (Error -1143 @ 0x1C06) Device core was hung. The debugger has forced the device to a ready state and recovered debug control, but your application's state is now corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 8.0.803.0)
请问我该怎么尝试去排查问题,会不会硬件有问题?
Shine:
回复 at_will:
请看一下程序运行后,IODIR寄存器相应位是否为1表示输出管脚,IOOUTDATA寄存器的值有没有写成功。
at_will:
回复 Shine:
您好,问题已解决。是io口配置错误。